Authorizations
This is the authorization token used to authenticate the request. You must pass the access token generated from the system app. For more information, see the Making your first API request section.
Headers
A header retrieved from your Copilot Account Details that's used by the API to identify the tenant making the request. Tenant ID must be included in the authentication header for API requests to access any of fabric’s endpoints.
Unique request ID
Query Parameters
The language code, which is a combination of language (ISO 639 format) and country (ISO 3166 format).
The default value is en-US.
A flag indicating whether the products associated with a bundle should be excluded from the response. Set it to true
to exclude products of a bundle and false
to include them in the response.
A flag indicating whether the collections should be excluded from the response. Set it to true
to exclude collections and false
to include them in the response.
A flag indicating whether the categories should be excluded from the response. Set it to true
to exclude categories and false
to include them in the response.
A flag indicating whether item variants should be excluded from the response. Set it to true
to exclude variants and false
to include them in the response.
A flag indicating whether attributes should be excluded from the response. Set it to true
to exclude attributes and false
to include them in the response.
Body
The search criteria to find products.
{
"keyword": { "op": "CONTAINS", "value": "NIKE237765" },
"id": {
"op": "IN",
"value": ["6482b9524ffa4978fd9cbf5c"]
},
"sku": { "op": "IN", "value": ["NIKE237765"] },
"productName": {
"op": "IN",
"value": ["Nike runner shoes"]
},
"image": {
"op": "IN",
"value": [
"https://myawsomestore.com/is/image/nike/8801290_s7"
]
},
"itemId": { "op": "IN", "value": [2700537] },
"type": { "op": "IN", "value": ["ITEM"] },
"parentSku": { "op": "CONTAINS", "value": "NIKE237765" },
"parentId": {
"op": "IN",
"value": ["6482e47771609dfca2beb29f"]
},
"categoryId": {
"op": "IN",
"value": ["648014741adc8a9de14e1a68"]
},
"categoryName": { "op": "CONTAINS", "value": "Shoes" },
"collectionName": { "op": "CONTAINS", "value": "Flash Sale" },
"bundleProductSku": { "op": "CONTAINS", "value": "BUNDLE237765" },
"bundleProductName": { "op": "CONTAINS", "value": "nike" },
"bundleProductId": {
"op": "IN",
"value": ["60ad7e9d858eb50007abbb19#123124"]
},
"bundleProductCount": { "op": "GTE", "value": 10 },
"attributes": [
{
"name": "Color",
"op": "IN",
"value": ["black"]
}
],
"attributeIds": {
"op": "IN",
"value": [
"60ad7e9d858eb50007abbb19",
"4aqz7e9d858eb5000cdeas12"
]
},
"attributeTypes": {
"op": "IN",
"value": ["TEXT", "BOOLEAN", "LOV", "NUMBER"]
},
"createdAt": {
"op": "LTE",
"value": "2021-12-13T13:56:09.006Z"
},
"updatedAt": {
"op": "LTE",
"value": "2021-12-13T13:56:09.006Z"
}
}
The sorting criteria. Currently, the supported values are sku
, type
, productName
, itemId
, categoryName
, and createdAt
. Use -
to view the results in a descending order and +
for ascending.
"+sku,-productName"
The number of records to skip before returning records. For example, when the offset is 20 and limit is 10, the system returns records from 21 to 30.
2
The maximum number of records per page.
10
Response
OK
Product Search Result list by IDs The pagination data.
The number of records to skip before returning records. For example, with offset of 20 and limit of 10, the system returns the records from 21-30.
5
The maximum number of records per page.
10
The total number of records.
100