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); one of the two is required. If an entry already exists for the combination of product, company, partner type and warehouse, it is updated, otherwise a new one is created. Both dot and comma are accepted as decimal separator.
POST fields - data object
| Field | Type | Required | Description |
|---|---|---|---|
product_id | int | Product identifier. Required if partnumber is not provided | |
partnumber | string | Part number (min. 3 characters). Required if product_id is not provided | |
id | int | Price list entry identifier. Not required: the system identifies the existing record by product, company_id, partner_type_id and store_id (see below) | |
company_id | int | Company identifier (default: 1) | |
partner_type_id | int | Partner type identifier for partner type specific prices. If omitted, the price is general | |
store_id | int | Warehouse identifier for warehouse specific prices. If omitted, the price is general | |
price | float | Net selling price | |
currency_id | int | Currency identifier of the selling price | |
tax_id | int | VAT rate identifier of the selling price | |
price_discount | float | Discount in percent (%) | |
price_on_sale | float | Net sale price | |
price_on_sale_date_end | datetime | Expiry date and time of the sale price (YYYY-MM-DD HH:MM:SS) | |
incoming_price | float | Net purchase price | |
incoming_currency_id | int | Currency identifier of the purchase price | |
incoming_tax_id | int | VAT rate identifier of the purchase price | |
incoming_cost_price | float | Purchase cost price (purchase price increased by additional costs) | |
list_price | float | Net list price | |
list_currency_id | int | Currency identifier of the list price | |
list_tax_id | int | VAT rate identifier of the list price |
Record identification
The system looks up the existing entry by the combination of product_id (or partnumber), company_id, partner_type_id and store_id. If partner_type_id or store_id is omitted, the general price (independent of partner type or warehouse) is saved. Only the fields included in the request are modified. On update, the data.id field of the response contains the identifier of the modified entry.
Example request
POST /api/price_list/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"product_id": 5,
"company_id": 1,
"partner_type_id": 2,
"store_id": 1,
"price": 9500,
"currency_id": 1,
"tax_id": 1,
"price_discount": 5,
"price_on_sale": 8900,
"price_on_sale_date_end": "2026-12-31 23:59:59",
"incoming_price": 6200,
"incoming_currency_id": 1,
"incoming_tax_id": 1,
"incoming_cost_price": 6350,
"list_price": 10500,
"list_currency_id": 1,
"list_tax_id": 1
}
}
/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!