POST
/
v1
/
price
/
get-by-sku

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Body

application/json

Prices conditions

traceId
string

Trace ID, used to trace logs

priceList
string[]

List of price list IDs which items or SKUs belong to

sku
string[]

A list of Stock Keeping Units (SKUs) for items whose prices needs to be retrieved. Specify either SKUs or itemIds. If both are provided, the SKU takes precedence.

itemId
integer[]

List of item IDs for items whose prices needs to be retrieved. Specify either SKUs or itemIds. If both are provided, the SKU takes precedence.

userId
string

User ID

userProfile
object

Segment the user belongs to

isLoggedIn
boolean

true if the user logged in<br /> false if the user is not logged in

channel
integer[]

List of channel ID from where the request is coming

date
string

Date for which the prices are to be retrieved

priceParams
object[]

Various price parameters to calculate final price

audit
boolean

true if audit is required. Response body will have an audit object with details about how the dynamic pricing engine obtained the result.<br /> false if audit is not required.

Response

200 - application/json
priceList
string

Price List ID

sku
string

Item SKU

itemId
integer

Item SKU

offers
object

Offers on the price

audit
object