Price List

Get all price lists

Retrieves a paginated list of all price lists.

get/api-offers/price-list

Request

Query parameters

limitnumber

The maximum number of records per page.

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.

sortBy'updatedAt' | 'name' | 'priceListId'

Field by which you want to sort the records

sortOrder'asc' | 'desc'

Sorting order of the records

filter'not_expired'

Value by which price lists are filtered

isDefaulttrue | false

If set to true, this endpoint returns the default price list

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": 150
  },
  "data": [
    {
      "_id": "614b58924e92f6861ac9d43b",
      "priceListId": 10000003,
      "name": "BuildMuscles-CONTRACT123",
      "currency": "USD",
      "startDate": "2021-05-04T09:23:51.459Z",
      "endDate": "2021-06-09T09:23:51.459Z",
      "createdAt": "2020-12-14T12:15:43.646Z",
      "updatedAt": "2021-12-14T12:15:43.646Z"
    }
  ]
}

Changes

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