Retrieving prices

GET {{api-url}}/price/{{tenant}}/prices

Retrieves prices for the given criteria.
The endpoint is available in the following versions: v1 and v2.
The second version of the endpoint introduces new fields in the response. Moreover, some fields known from version v1 become deprecated. In order to check details of changes for version v2 check data schema of the response body.

Request Params

KeyDatatypeRequiredDescription
siteCodestringA list of site codes should be passed. <b>This attribute is available for Price V1 and Price V2.</b>
currencystringA list of currency should be passed. <b>This attribute is available for Price V1 and Price V2.</b>
effectiveDatestringThe date in ISO 8601 format to get the prices which are effective at the specified date. <b>This attribute is available for Price V1 and Price V2.</b>
sortstringThe list of comma-separated properties used to sort the results.
By default, the column values are sorted in ascending order.
Can either be in the form of fieldName or fieldName:asc,fieldName:desc.
If you want to sort by localized attributes, you must use the following form:
fieldName.language or fieldName.language:asc,fieldName.language:desc.
pageNumbernumberThe page number to be retrieved where the size of the pages must be specified by the pageSize parameter.
The number of the first page is 1.
pageSizenumberThe number of documents being retrieved on the page.
itemIdstringA list of itemId should be returned. <b>This attribute is only available for Price V2.</b>
itemTypestringA list of item types that should be returned. <b>This attribute is only available for Price V2.</b>
countrystringA list of countries that should be returned. <b>This attribute is only available for Price V2.</b>
principalIdnull
priceModelIdnull

HEADERS

KeyDatatypeRequiredDescription
X-VersionstringThe version of the schema that should be used in the request/response payload
Acceptstring

RESPONSES

status: OK

[{&quot;id&quot;:&quot;622f334aaa933c3be1f8eba0&quot;,&quot;productId&quot;:&quot;53a358901b2e9dd2718b5c4e&quot;,&quot;itemId&quot;:{&quot;itemType&quot;:&quot;PRODUCT&quot;,&quot;id&quot;:&quot;53a358901b2e9dd2718b5c4e&quot;},&quot;siteCode&quot;:&quot;1111&quot;,&quot;currency&quot;:&quot;USD&quot;,&quot;country&quot;:&quot;USA&quot;,&quot;originalAmount&quot;:99.99,&quot;measurementUnit&quot;:{&quot;quantity&quot;:1,&quot;unitCode&quot;:&quot;kg&quot;},&quot;salePrice&quot;:{&quot;discountRate&quot;:20,&quot;description&quot;:&quot;20% OFF, Amazing!&quot;},&quot;wholesale&quot;:{&quot;minQuantity&quot;:2,&quot;maxQuantity&quot;:10},&quot;priceModelId&quot;:&quot;622f11d76825075ab563ed79&quot;,&quot;restrictions&quot;:{&quot;principals&quot;:[{&quot;type&quot;:&quot;USER&quot;,&quot;id&quot;:&quot;4a1c3058b9ce48459daca560915549c5&quot;}],&quot;validity&quot;:{&quot;from&quot;:&quot;2021-08-31T00:07:42.518Z&quot;,&quot;to&quot;:&quot;2022-08-31T00:07:42.518Z&quot;},&quot;siteCodes&quot;:[&quot;1111&quot;]},&quot;tierValues&quot;:[{&quot;priceValueWithMarkup&quot;:&quot;13.34&quot;,&quot;priceValueWithoutMarkup&quot;:&quot;13.34&quot;}],&quot;mixins&quot;:{&quot;test2&quot;:{&quot;atr1&quot;:&quot;test&quot;,&quot;atr2&quot;:&quot;test2&quot;},&quot;test1&quot;:{&quot;atr1&quot;:&quot;test&quot;,&quot;atr2&quot;:&quot;test2&quot;}},&quot;metadata&quot;:{&quot;version&quot;:1,&quot;createdAt&quot;:&quot;2022-03-14T12:21:30.589Z&quot;,&quot;modifiedAt&quot;:&quot;2022-03-14T12:21:30.589Z&quot;}},{&quot;id&quot;:&quot;622f436e51b949194bdf6191&quot;,&quot;productId&quot;:&quot;53a358901b2e9dd2718b5c4e&quot;,&quot;itemId&quot;:{&quot;itemType&quot;:&quot;PRODUCT&quot;,&quot;id&quot;:&quot;53a358901b2e9dd2718b5c4e&quot;},&quot;siteCode&quot;:&quot;1111&quot;,&quot;currency&quot;:&quot;USD&quot;,&quot;country&quot;:&quot;USA&quot;,&quot;originalAmount&quot;:99.99,&quot;measurementUnit&quot;:{&quot;quantity&quot;:1,&quot;unitCode&quot;:&quot;kg&quot;},&quot;salePrice&quot;:{&quot;discountRate&quot;:20,&quot;description&quot;:&quot;20% OFF, Amazing!&quot;},&quot;wholesale&quot;:{&quot;minQuantity&quot;:2,&quot;maxQuantity&quot;:10},&quot;priceModelId&quot;:&quot;622f11d76825075ab563ed79&quot;,&quot;restrictions&quot;:{&quot;principals&quot;:[{&quot;type&quot;:&quot;USER&quot;,&quot;id&quot;:&quot;4a1c3058b9ce48459daca560915549c5&quot;}],&quot;validity&quot;:{&quot;from&quot;:&quot;2021-08-31T00:07:42.518Z&quot;,&quot;to&quot;:&quot;2022-08-31T00:07:42.518Z&quot;},&quot;siteCodes&quot;:[&quot;1111&quot;]},&quot;tierValues&quot;:[{&quot;priceValueWithMarkup&quot;:&quot;13.34&quot;,&quot;priceValueWithoutMarkup&quot;:&quot;13.34&quot;}],&quot;mixins&quot;:{&quot;test2&quot;:{&quot;atr1&quot;:&quot;test&quot;,&quot;atr2&quot;:&quot;test2&quot;},&quot;test1&quot;:{&quot;atr1&quot;:&quot;test&quot;,&quot;atr2&quot;:&quot;test2&quot;}},&quot;metadata&quot;:{&quot;version&quot;:1,&quot;createdAt&quot;:&quot;2022-03-14T13:30:22.032Z&quot;,&quot;modifiedAt&quot;:&quot;2022-03-14T13:30:22.032Z&quot;,&quot;mixins&quot;:{&quot;test2&quot;:&quot;url2&quot;,&quot;test1&quot;:&quot;url1&quot;}}}]