GET
/
api-offers
/
price
/
{priceId}
/
priceList
/
{priceListId}

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.

Path Parameters

priceId
string
required

Value for this field can be database ID (_id) of the price or itemSku or itemId based on the type mentioned in the type query parameter.<br /> If a type is not specified in the type query parameter, you must provide itemSku in this priceId field.

priceListId
number
required

ID of the priceList to search the price for.

Query Parameters

type
enum<string>

The priceId path parameter will be treated as itemSku, itemId or _id based on the value of this field. The default search will be done by itemSku.

Available options:
itemSku,
itemId,
_id
limit
number
default: 10

The maximum number of records per page. If the isActive flag is sent, the limit will be ignored.

page
number

Number of pages you wish to retrieve when selecting records in the price offers array. Default is 1. If the isActive flag is true, page will be ignored.

isActive
boolean

If isActive is false, offers array response based on limit and page parameters.<br /> If isActive is true, only the offer object whose price is active will be returned in the offers array.<br /> Default value is false.

Response

200 - application/json
_id
string
required

fabric internal ID

itemId
number
required

Item ID

priceListId
number
required

ID of the priceList related to the SKU or item

offers
object[]
required

Prices of the SKU/priceListId.

createdAt
string
required

Date of creation of the price.

updatedAt
string
required

Last updated date of the price.

isSoftDeleted
boolean

true: record is deleted<br /> false: record is not deleted

itemSku
string

SKU of the item

job
boolean

true: Job is running<br /> false: Job operation is either completed or not running for some reason

offerId
number

ID of the created offer for the itemId or itemSku

query
object

Pagination details of Offers array. This field will only exist if the isActive flag is false.