Logo
Emporix Digital Commerce Platform API Documentation

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.

 

Body PARAM

Key Datatype Required Description 
siteCode
string A list of site codes should be passed. <b>This attribute is available for Price V1 and Price V2.</b>
currency
string A list of currency should be passed. <b>This attribute is available for Price V1 and Price V2.</b>
effectiveDate
string The 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>
sort
string The 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.
pageNumber
number The 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.
pageSize
number The number of documents being retrieved on the page.
itemId
string A list of itemId should be returned. <b>This attribute is only available for Price V2.</b>
Curl
curl -X GET 'api-url/price/tenant/prices?siteCode=main&currency=commodo aliquip veniam consequat est&effectiveDate=YYYY-MM-DDTHH:MM:SSZ&sort=commodo aliquip veniam consequat est&pageNumber=1&pageSize=16&itemId=commodo aliquip veniam consequat est&itemType=commodo aliquip veniam consequat est&country=commodo aliquip veniam consequat est&principalId=&priceModelId=' -H 'X-Version: v2' -H 'Accept: application/json'

ENDPOINTS