POST
/
v1
/
price
/
get-by-sku

Authorizations

Authorization
string
header
required

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

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.

channel
integer[]

List of channel ID from where the request is coming

date
string

Date for which the prices are to be retrieved

isLoggedIn
boolean

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

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.

priceList
string[]

List of price list IDs which items or SKUs belong to

priceParams
object[]

Various price parameters to calculate final price

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.

traceId
string

Trace ID, used to trace logs

userId
string

User ID

userProfile
object

Segment the user belongs to

Response

200 - application/json
audit
object
itemId
integer

Item SKU

offers
object

Offers on the price

priceList
string

Price List ID

sku
string

Item SKU