Base URL
https://{tenant}.logzi.com/api/price_list/
Every request returns a JSON response. On success result.code == 1, on error result.code == 0. If neither product_id nor partnumber is provided to the get endpoint, the prices of all products are returned.
/api/price_list/get
Retrieve a product's price based on filter criteria. If neither product_id nor partnumber is provided, the prices of all products are returned.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
product_id | int | Product identifier | |
company_id | int | Company identifier | |
partner_id | int | Filter by partner-specific price | |
currency_id | int | Currency identifier | |
store_id | int | Warehouse identifier | |
price_list_id | int | Price list identifier |
Example request
GET /api/price_list/get?product_id=5¤cy_id=1
X-API-KEY: {your_api_key}
/api/price_list/list
Paginated retrieval of price list entries with filtering options.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_count | int | Number of records per page | |
list_condition | array | Filter criteria as an associative array | |
list_params | array | Additional query parameters |
Example request
GET /api/price_list/list?list_offset=0&list_count=50
X-API-KEY: {your_api_key}
/api/price_list/save
Create or modify a price list entry. The product can be specified by product_id or partnumber (part number). For a new record use data[id] = 0.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new entry, >0 = update | |
company_id | int | Company identifier | |
currency_id | int | Currency identifier | |
price | float | Net price | |
product_id | int | Product identifier | |
partnumber | string | Part number (alternative to product_id) | |
partner_id | int | Partner identifier, if this is a partner-specific price |
Example request
POST /api/price_list/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"company_id": 1,
"product_id": 5,
"currency_id": 1,
"price": 9500
}
}
/api/price_list/save_avg
Record a product's average price.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
product_id | int | Product identifier | |
price | float | Average price to record |
Example request
POST /api/price_list/save_avg
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "product_id": 5, "price": 8750.50 } }
/api/price_list/delete
Delete a price list entry by identifier.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the price list entry to delete |
Example request
POST /api/price_list/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 12 } }
Create your account now,
pay later!