Item

Get Skus and itemIds in a specific pricelist

Retrieves Skus and itemIds for which there is a price entry in a specific pricelist. The pricelist is identified by priceListId.

get/api-offers/items/priceListId/{priceListId}

Request

Path parameters

priceListIdstring required

ID of the pricelist from which the items are to be returned

Query parameters

offsetnumber

The number of records to skip before returning records. For example, when offset is 20 and limit is 10, this endpoint returns records from 21 to 30.

limitnumber

The maximum number of records per page.

sortBy'itemId' | 'updatedAt'

Field using which you want to sort the records

sortOrder'desc, asc'

Sorting order of the records- ascending or descending

Headers

x-site-contextstring required
Example:{"date": "2023-01-01T00:00:00.000Z", "channel": 12, "account": "1234abcd5678efgh9ijklmno","stage":"production"}

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.

Response

OK

Example response

{
  "query": {
    "limit": 10,
    "count": 80
  },
  "data": [
    {
      "itemId": 1000000011,
      "itemSku": "10112_SKU"
    }
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.