Simple Products
1 min
Following is a sample payload with required data points to index products:
Add Products API
PUT
https://indexing-api.ksearchnet.com/v2/batch
[
{
"id": "1",
"type": "KLEVU_PRODUCT",
"attributes": {
"name": { "default": "Product 1" },
"image":
{
"default":{
"url": "https://4.imimg.com/data4/AO/DA/MY-24693421/comfortable-office-chair.jpg"
}
},
"price": {
"USD":{
"defaultPrice": 100,
"salePrice":80
},
"GBP":{
"defaultPrice": 90,
"salePrice":70
}
},
"url": "https://test.myshopify.com/products/comfy-chair-001",
"inStock": true,
"shortDescription": { "default": "Comfortable Chair" },
"description": { "default": "This is a very very comfortable Chair" }
}
},
{
"id": "2",
"type": "KLEVU_PRODUCT",
"attributes": {
"name": { "default": "Product 2" },
"image":
{
"default":{
"url": "https://4.imimg.com/data4/AO/DA/MY-24693421/comfortable-office-chair.jpg"
}
},
"price": {
"USD":{
"defaultPrice": 90,
"salePrice":80
},
"GBP":{
"defaultPrice": 70,
"salePrice":60
}
},
"url": "https://test.myshopify.com/products/comfy-chair-002",
"inStock": true,
"shortDescription": { "default": "Comfortable Chair" },
"description": { "default": "This is a very very comfortable Chair" }
}
}
]The payload is an array of objects, meaning, you can submit multiple items for indexing in a single request and recommended too. There is no limit to the number of objects in a request, but the total size of the request should be under 2MB. Please plan your batch size accordingly.