curl --request POST \
--url https://live.copilot.fabric.inc/api-offers/items/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-site-context: <x-site-context>' \
--data '
{
"offset": 0,
"limit": 10,
"keyword": "CAN",
"sku": true,
"isListView": true,
"priceListId": 123
}
'{
"query": {
"limit": 10,
"offset": 0,
"count": 50
},
"results": [
{
"variants": [
"VARIANT-01",
"VARIANT-55"
],
"itemId": 1000002411,
"channel": [
12,
13
],
"isDefault": true,
"state": "READY",
"createdAt": "2020-12-14T12:15:43.646Z",
"updatedAt": "2020-12-14T12:15:43.646Z",
"startDate": "2020-12-14T12:14:35.331Z",
"endDate": "2020-12-14T12:14:35.331Z",
"isActive": true,
"sku": "WALL123",
"title": "wall posters",
"images": [
{
"id": "5fd7577251a93f0007e48383",
"order": 0,
"label": "https://abchome-xpm-images.s3.amazonaws.com/12.01.20+Giving+Tuesday/Homepage/HP_HolidaySix_GI_1.jpg?w=1067",
"source": [
{
"id": "5fd7577251a93f0007e48383",
"url": "https://abchome-xpm-images.s3.amazonaws.com/12.01.20+Giving+Tuesday/Homepage/HP_HolidaySix_GI_1.jpg?w=1067"
}
]
}
],
"price": {
"sale": 2800,
"cost": 2500,
"currency": "USD",
"base": 3000
},
"kind": {
"priceKindId": 12,
"name": "Clearance",
"channel": 12
},
"priceStartDate": "2021-01-06T19:00:00+00:00",
"priceEndDate": "2099-12-31T18:59:00+00:00",
"priceLastUpdatedAt": "2099-12-31T18:59:00+00:00",
"status": "ACTIVE",
"basePriceRange": {
"min": 100,
"max": 300
},
"salePriceRange": {
"min": 100,
"max": 300
},
"costPriceRange": {
"min": 100,
"max": 300
},
"items": [
{
"variants": [
"VARIANT-01",
"VARIANT-55"
],
"itemId": 1000002411,
"channel": [
12,
13
],
"isDefault": true,
"state": "READY",
"createdAt": "2020-12-14T12:15:43.646Z",
"updatedAt": "2020-12-14T12:15:43.646Z",
"startDate": "2020-12-14T12:14:35.331Z",
"endDate": "2020-12-14T12:14:35.331Z",
"isActive": true,
"sku": "WALL123",
"title": "wall posters",
"images": [
{
"id": "5fd7577251a93f0007e48383",
"order": 0,
"label": "https://abchome-xpm-images.s3.amazonaws.com/12.01.20+Giving+Tuesday/Homepage/HP_HolidaySix_GI_1.jpg?w=1067",
"source": [
{
"id": "5fd7577251a93f0007e48383",
"url": "https://abchome-xpm-images.s3.amazonaws.com/12.01.20+Giving+Tuesday/Homepage/HP_HolidaySix_GI_1.jpg?w=1067"
}
]
}
],
"price": {
"sale": 2800,
"cost": 2500,
"currency": "USD",
"base": 3000
},
"kind": {
"priceKindId": 12,
"name": "Clearance",
"channel": 12
},
"priceStartDate": "2021-01-06T19:00:00+00:00",
"priceEndDate": "2099-12-31T18:59:00+00:00",
"status": "ACTIVE"
}
]
}
]
}Retrieves a paginated list of products and assigned prices in a specific price list based on priceListId and other search parameters as passed in the request body. If price list ID is not provided, default price list is selected for the search.
curl --request POST \
--url https://live.copilot.fabric.inc/api-offers/items/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-site-context: <x-site-context>' \
--data '
{
"offset": 0,
"limit": 10,
"keyword": "CAN",
"sku": true,
"isListView": true,
"priceListId": 123
}
'{
"query": {
"limit": 10,
"offset": 0,
"count": 50
},
"results": [
{
"variants": [
"VARIANT-01",
"VARIANT-55"
],
"itemId": 1000002411,
"channel": [
12,
13
],
"isDefault": true,
"state": "READY",
"createdAt": "2020-12-14T12:15:43.646Z",
"updatedAt": "2020-12-14T12:15:43.646Z",
"startDate": "2020-12-14T12:14:35.331Z",
"endDate": "2020-12-14T12:14:35.331Z",
"isActive": true,
"sku": "WALL123",
"title": "wall posters",
"images": [
{
"id": "5fd7577251a93f0007e48383",
"order": 0,
"label": "https://abchome-xpm-images.s3.amazonaws.com/12.01.20+Giving+Tuesday/Homepage/HP_HolidaySix_GI_1.jpg?w=1067",
"source": [
{
"id": "5fd7577251a93f0007e48383",
"url": "https://abchome-xpm-images.s3.amazonaws.com/12.01.20+Giving+Tuesday/Homepage/HP_HolidaySix_GI_1.jpg?w=1067"
}
]
}
],
"price": {
"sale": 2800,
"cost": 2500,
"currency": "USD",
"base": 3000
},
"kind": {
"priceKindId": 12,
"name": "Clearance",
"channel": 12
},
"priceStartDate": "2021-01-06T19:00:00+00:00",
"priceEndDate": "2099-12-31T18:59:00+00:00",
"priceLastUpdatedAt": "2099-12-31T18:59:00+00:00",
"status": "ACTIVE",
"basePriceRange": {
"min": 100,
"max": 300
},
"salePriceRange": {
"min": 100,
"max": 300
},
"costPriceRange": {
"min": 100,
"max": 300
},
"items": [
{
"variants": [
"VARIANT-01",
"VARIANT-55"
],
"itemId": 1000002411,
"channel": [
12,
13
],
"isDefault": true,
"state": "READY",
"createdAt": "2020-12-14T12:15:43.646Z",
"updatedAt": "2020-12-14T12:15:43.646Z",
"startDate": "2020-12-14T12:14:35.331Z",
"endDate": "2020-12-14T12:14:35.331Z",
"isActive": true,
"sku": "WALL123",
"title": "wall posters",
"images": [
{
"id": "5fd7577251a93f0007e48383",
"order": 0,
"label": "https://abchome-xpm-images.s3.amazonaws.com/12.01.20+Giving+Tuesday/Homepage/HP_HolidaySix_GI_1.jpg?w=1067",
"source": [
{
"id": "5fd7577251a93f0007e48383",
"url": "https://abchome-xpm-images.s3.amazonaws.com/12.01.20+Giving+Tuesday/Homepage/HP_HolidaySix_GI_1.jpg?w=1067"
}
]
}
],
"price": {
"sale": 2800,
"cost": 2500,
"currency": "USD",
"base": 3000
},
"kind": {
"priceKindId": 12,
"name": "Clearance",
"channel": 12
},
"priceStartDate": "2021-01-06T19:00:00+00:00",
"priceEndDate": "2099-12-31T18:59:00+00:00",
"status": "ACTIVE"
}
]
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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.
"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"
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.
0
The maximum number of records per page.
10
Search parameter to filter the query
"CAN"
If SKU is true then this endpoint returns products that have SKU value mentioned.
true indicates that the response data will be displayed in list
false indicates that the response data will be displayed in a tile view
ID of the priceList for which the price and product information are to be retrieved
OK
Show child attributes
The maximum number of records per page.
10
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.
0
The total number of records.
50
Show child attributes
Variants of the product
["VARIANT-01", "VARIANT-55"]Item ID
1000002411
Sales channel of the product
[12, 13]false for parent product
If a parent product has child items, true represents the default child item to be displayed, under the parent product, on the product listing page.
Status of the product. READY indicates the product is ready to be published on the product listing page for shopper's consumption.
"READY"
Creation date of the record
"2020-12-14T12:15:43.646Z"
Last updated date of the record
"2020-12-14T12:15:43.646Z"
Start date of the product
"2020-12-14T12:14:35.331Z"
End date of the product
"2020-12-14T12:14:35.331Z"
true if the item is active and displayed in the catalog. isActive will be true only when state is READY
false if the state is DRAFT, and item is not displayed in the catalog
SKU of the product
"WALL123"
Title of the product
"wall posters"
Details of images of item to be displayed on the copilot UI
Show child attributes
"5fd7577251a93f0007e48383"
0
"https://abchome-xpm-images.s3.amazonaws.com/12.01.20+Giving+Tuesday/Homepage/HP_HolidaySix_GI_1.jpg?w=1067"
Price of the product, it will only exist if the price was set up for the product.
Show child attributes
Start date of the active price
"2021-01-06T19:00:00+00:00"
End date of the active price
"2099-12-31T18:59:00+00:00"
Last updated date of the price
"2099-12-31T18:59:00+00:00"
Status of the price
"ACTIVE"
Show child attributes
Child item variants
["VARIANT-01", "VARIANT-55"]Child item ID
1000002411
[12, 13]true: child item is the default child item to be displayed, under the parent product, on the product listing page.
false: child item is not the default item of the parent product
Child item's state. READY indicates the child item is active and ready to be consumed by the shoppers.
"READY"
Creation date of the child itemn
"2020-12-14T12:15:43.646Z"
Last updated date of the child item
"2020-12-14T12:15:43.646Z"
Date from which the child item is available to be sold
"2020-12-14T12:14:35.331Z"
Date from which the child item is not available to be sold
"2020-12-14T12:14:35.331Z"
true if the item is active and displayed in the catalog. isActive will be true only when state is READY
false if the state is DRAFT, and item is not displayed in the catalog
Child item sku
"WALL123"
Title of the child item
"wall posters"
Image details of the child item
Show child attributes
"5fd7577251a93f0007e48383"
0
"https://abchome-xpm-images.s3.amazonaws.com/12.01.20+Giving+Tuesday/Homepage/HP_HolidaySix_GI_1.jpg?w=1067"
Price details of the child item
Show child attributes
Price at which the product is offered for sale
2800
Cost of item if any
2500
3 letter currency code for price
"USD"
Minimum fixed price of the product
3000
Start date of active price
"2021-01-06T19:00:00+00:00"
End date of active price
"2099-12-31T18:59:00+00:00"
Item status
"ACTIVE"
Was this page helpful?