---
title: Simple Products
slug: indexing-apis/simple-products
docTags: 
createdAt: 2023-10-12T15:17:03.776Z
---

Following is a sample payload with required data points to index products:

:::ApiMethodV2
```json
{
  "name": "Add Products API",
  "method": "PUT",
  "url": "https://indexing-api.ksearchnet.com/v2/batch",
  "description": "",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "xOBGdm4j1d4of8rZLyuHq",
        "language": "json",
        "code": "[\n  {\n    \"id\": \"1\",\n    \"type\": \"KLEVU_PRODUCT\",\n    \"attributes\": {\n      \"name\": { \"default\": \"Product 1\" },\n       \"image\": \n       {  \n        \"default\":{\n          \"url\": \"https://4.imimg.com/data4/AO/DA/MY-24693421/comfortable-office-chair.jpg\"\n        }\n      },\n      \"price\": {\n        \"USD\":{\n          \"defaultPrice\": 100,\n          \"salePrice\":80\n        },\n        \"GBP\":{\n         \"defaultPrice\": 90,\n         \"salePrice\":70\n        }\n      },\n      \"url\": \"https://test.myshopify.com/products/comfy-chair-001\",\n      \"inStock\": true,\n      \"shortDescription\": { \"default\": \"Comfortable Chair\" },\n      \"description\": { \"default\": \"This is a very very comfortable Chair\" }\n    }\n  },\n  {\n    \"id\": \"2\",\n    \"type\": \"KLEVU_PRODUCT\",\n    \"attributes\": {\n      \"name\": { \"default\": \"Product 2\" },\n      \"image\": \n       {  \n        \"default\":{\n          \"url\": \"https://4.imimg.com/data4/AO/DA/MY-24693421/comfortable-office-chair.jpg\"\n        }\n      },\n      \"price\": {\n        \"USD\":{\n          \"defaultPrice\": 90,\n          \"salePrice\":80\n        },\n        \"GBP\":{\n         \"defaultPrice\": 70,\n         \"salePrice\":60\n        }\n      },\n      \"url\": \"https://test.myshopify.com/products/comfy-chair-002\",\n      \"inStock\": true,\n      \"shortDescription\": { \"default\": \"Comfortable Chair\" },\n      \"description\": { \"default\": \"This is a very very comfortable Chair\" }\n    }\n  }\n]",
        "customLabel": "Request Body (JSON)"
      }
    ],
    "selectedLanguageId": "xOBGdm4j1d4of8rZLyuHq"
  },
  "results": {
    "languages": [
      {
        "id": "blif1oGwvbqovmU2FClQc",
        "language": "200",
        "customLabel": "",
        "code": "{\n  \"message\": \"Job submitted successfully.\",\n  \"jobId\": \"job-123\"\n}"
      }
    ],
    "selectedLanguageId": "blif1oGwvbqovmU2FClQc"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "name": "X-KLEVU-AUTH-ALGO",
        "kind": "required",
        "type": "string",
        "description": "This is the algorithm used to create the security bearer token. ",
        "children": []
      },
      {
        "name": "X-KLEVU-TIMESTAMP",
        "kind": "required",
        "type": "string",
        "description": "This should be your current time while generating the request. It is used to keep the request secured and discourage request relays.",
        "children": []
      },
      {
        "name": "X-KLEVU-APIKEY",
        "kind": "required",
        "type": "string",
        "description": "This is the API Key of your store. Please refer to the Klevu Merchant Centre manual to understand where to get this key from.",
        "children": []
      },
      {
        "name": "Content-Type",
        "kind": "required",
        "type": "string",
        "description": "This needs to be application/JSON as this request body contains a JSON.",
        "children": []
      }
    ],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Header Parameter",
    "value": "headerParameters"
  },
  "autoGeneratedAnchorSlug": "add-products-api",
  "legacyHash": "DFqrJS2SUSvkCRhPAtENT"
}
```
:::

:::hint{type="info"}
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.
:::

