Price List API

Retrieve and set product prices by partner, currency, and warehouse

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.

GET /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

ParameterTypeRequiredDescription
product_idintProduct identifier
company_idintCompany identifier
partner_idintFilter by partner-specific price
currency_idintCurrency identifier
store_idintWarehouse identifier
price_list_idintPrice list identifier

Example request

GET /api/price_list/get?product_id=5¤cy_id=1
X-API-KEY: {your_api_key}
GET /api/price_list/list

Paginated retrieval of price list entries with filtering options.

Query parameters

ParameterTypeRequiredDescription
list_offsetintPagination offset (default: 0)
list_countintNumber of records per page
list_conditionarrayFilter criteria as an associative array
list_paramsarrayAdditional query parameters

Example request

GET /api/price_list/list?list_offset=0&list_count=50
X-API-KEY: {your_api_key}
POST /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

FieldTypeRequiredDescription
idint0 = new entry, >0 = update
company_idintCompany identifier
currency_idintCurrency identifier
pricefloatNet price
product_idintProduct identifier
partnumberstringPart number (alternative to product_id)
partner_idintPartner 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
  }
}
POST /api/price_list/save_avg

Record a product's average price.

POST fields — data object

FieldTypeRequiredDescription
product_idintProduct identifier
pricefloatAverage 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 } }
POST /api/price_list/delete

Delete a price list entry by identifier.

POST fields — data object

FieldTypeRequiredDescription
idintIdentifier 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 } }

Get in touch with us

Interested in our software? Feel free to write to us!

Need help?

If you can't find the answer and need assistance

Create your account now,
pay later!

Try it free for 3 days, no risk, no obligation!