{"info":{"_postman_id":"4b120ef7-ff65-4b3c-91a9-f574ca55a35b","name":"JioMart  -> Haptik","description":"<html><head></head><body><p>Collection of API functions to add and update catalog data into Haptik Commerce Platform.</p>\n<p>Notes:</p>\n<p>We use Signature based API authentication. You need to sign the body before you send the response to haptik.</p>\n<p>For client side security:</p>\n<p>Postman script</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>var body = pm.request.body.toString(); \nvar secret = pm.environment.get(\"secret\") \nconst hmac = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(body, secret))\npm.environment.set(\"hmac\", hmac);\n</code></pre><p>Python code</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>from hashlib import sha256\nimport requests\nimport hmac\nurl = \"https://dev.buzzo.ai/api/jiomart/add\" #shared with you over mail\n#refer product_list from the above format\npayload= json.dumps(product_list)\n\nSHARED_SECRET = \"XXXXXXXXXXXXXXXXXXXXXXXXX\"\nmac = hmac.new(SHARED_SECRET.encode('utf-8'), msg=payload.encode('utf-8'), digestmod=sha256).hexdigest()\nheaders = {\n'X-HUB-Signature': mac \n}\nresponse = requests.request(\"POST\", url, headers=headers, data = payload)\nif response.status_code == 200:\n    print(\"success\")\nelif response.status_code == 400:\n    print(response.json())\nelif response.status_code == 403:\n    print(response.text.encode('utf8'))\nelse:\n    print(\"Contact Haptik\")\n</code></pre><p>Error message details</p>\n<p>-status - 403 : authorization error You don't have access to the endpoints contact haptik in case you are not registered or you have the wrong access token</p>\n<p>-status - 400 Error in the incoming request, could be a missing paramter or incorrect datatype</p>\n<p>Eg:</p>\n<p>product[0][\"reviews\"][0][\"datetime\"] the format is not what you have expected</p>\n<p>{ \"message\": \"index : 0.reviews.0.datetime -&gt; we expect datetime as %Y-%m-%dT%H:%M:%S format :::: please refer <a href=\"https://docs.google.com/document/d/1degQ6Qm1TzyFbc6FncsDITGsXTVIRKjsw8yELDLiNrI\">https://docs.google.com/document/d/1degQ6Qm1TzyFbc6FncsDITGsXTVIRKjsw8yELDLiNrI</a>\" }</p>\n<p>name is a mandatory key in this API need to provide it / the product[0][\"name\"] is missing</p>\n<p>{ \"message\": \"index : 0.name -&gt; Is a mandatory key, please send the key as per the document shared :::: please refer <a href=\"https://docs.google.com/document/d/1degQ6Qm1TzyFbc6FncsDITGsXTVIRKjsw8yELDLiNrI\">https://docs.google.com/document/d/1degQ6Qm1TzyFbc6FncsDITGsXTVIRKjsw8yELDLiNrI</a>\" }</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"12030808","collectionId":"4b120ef7-ff65-4b3c-91a9-f574ca55a35b","publishedId":"T1LLGUcF","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-08-12T05:36:39.000Z"},"item":[{"name":"add","event":[{"listen":"prerequest","script":{"id":"ae7c0332-0967-4c5b-8266-6e48fe822ae3","exec":["var body = pm.request.body.toString(); ","var secret = pm.environment.get(\"secret\"); ","const hmac = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(body, secret));","pm.environment.set(\"hmac\", hmac);"],"type":"text/javascript"}}],"id":"63e48d0c-99c8-40cb-ad9f-405eece88b21","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-HUB-SIGNATURE","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"[\n    {\n        \"id\": \"AB491215020test\",\n        \"name\":\"test product\",\n        \"display_name\":\"test product\",\n        \"store_wise_information\": [\n            {\n                \"store_id\": \"100\",\n                \"price_info\": {\n                    \"selling_price\": 300,\n                    \"mrp\": 270,\n                    \"currency\": \"inr\",\n                    \"price_without_tax\": 230,\n                    \"tax_pct\": \"5\",\n                    \"discount_pct\": 10,\n                    \"discount\": 30\n                },\n                \"availabile\": true\n            }\n        ],\n        \"images\": [\n            {\n                \"image\": \"https://www.jiomart.com/images/product/150x150/491215020/gala-super-scrub-0-20200522.png\",\n                \"thumbnail\": \"https://www.jiomart.com/images/product/150x150/491215020/gala-super-scrub-0-20200522.png\"\n            },\n            {\n                \"image\": \"https://www.jiomart.com/images/product/150x150/491215020/gala-super-scrub-0-20200522.png\"\n            },\n            {\n                \"image\": \"https://www.jiomart.com/images/product/150x150/491215020/gala-super-scrub-0-20200522.png\"\n            }\n        ],\n        \"brand\": \"Gala\",\n        \"units_sold\": 200,\n        \"rank\": 1,\n        \"popularity\": null,\n        \"url\": \"https://www.jiomart.com/good-life-jeera-100-g-491185109\",\n        \"summary\": \"this is a scrub\",\n        \"description\": \"this is a super scrub\",\n        \"haptik_category\": \"grocery\",\n        \"categories\":[\n            {\n                \"category\":\"Scrubs1\",\n                \"hierarchy_level\": 1\n            },\n            {\n                \"category\": \"Scrubs2\",\n                \"hierarchy_level\": 2\n            },\n            {\n                \"category\": \"Scrubs3\",\n                \"hierarchy_level\": 3\n            }\n        ],\n        \"features\": {\n            \"is_veg\": true,\n            \"spicy_level\": 1,\n            \"Ingredient Type\": [\n                \"poly ethylene\",\n                \"sponge\"\n            ]\n        },\n        \"maximum_order_quantity\": 4,\n        \"minimum_order_quantity\": 0,\n        \"search_keywords\": [\n            \"srub\",\n            \"dishwash\"\n        ],\n        \"tags\": [\n            \"zomato premium\",\n            \"Monsooon cleaning\",\n            \"Shower of Savings\"\n        ],\n        \"relaxed_search_keywords\": [\n            \"srotch brite\",\n            \"srub\"\n        ],\n        \"review_count\": 11,\n        \"rating\": 5,\n        \"max_rating\": 5,\n        \"reviews\": [\n            {\n                \"title\": \"the product is really good\",\n                \"rating\": 5,\n                \"author\": \"sachit\",\n                \"url\": \"https://www.jiomart.com/good-life-jeera-100-g-491185109\",\n                \"max_rating\": 5,\n                \"text\": \"Its very long lasting\",\n                \"id\": \"11\",\n                \"datetime\": \"2020-12-11T10:10:10\",\n                \"upvotes\": 1,\n                \"downvotes\": 1\n            }\n        ]\n    }\n]","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/add","description":"<p>This endpoint adds or replaces the data provided about products. Data of multiple products can be passed in one go in a list.</p>\n<p>For each product data provided, if the id is already present then we will replace the previous product data with the new one, else a fresh record will be created.</p>\n<p>To make changes to only few fields within a particular product data you might want to look at the update endpoint.</p>\n<p><em><strong>id</strong></em></p>\n<p>(Required) A unique id of type string identifying the product.</p>\n<p><em><strong>name</strong></em></p>\n<p>(Required) Name of the product.</p>\n<p><em><strong>display_name</strong></em></p>\n<p>(Optional) Name to be used when displaying the product. Required only if different from name.</p>\n<p><em><strong>store_wise_information</strong></em></p>\n<p>(Optional) It is a list of dictionaries containing store wise information. Please note that in the context of Jiomart, store is nothing but region. Each dictionary entry inside the list has following keys</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>-store_id: (Required) id of the store in string format\n\n-price_info: (Required) dictionary with price related information.\n\n    -selling_price (Required, Numeric)\n        (The final price to be shown to customer.)\n\n    -mrp (Optional, Numeric)\n    (The published MRP of the product. Calculated automatically if selling_price and discount_percentage or discount are provided.)\n\n    -currency (Optional, String)\n    (String - inr / usd. Default is inr.)\n\n    -tax_percent (Optional, Numeric)\n    (The tax applicable on the product.)\n\n    -price_without_tax (Optional, Numeric)\n    (If selling price includes tax, then the price without tax can also be specified separately.)\n\n    -discount_percent (Optional, Numeric)\n    (The discount being provided in percentage. Calculated automatically if selling price and mrp or discount are provided.)\n\n    -discount (Optional, Numeric)\n    (The discount being provided in absolute numbers. Calculated automatically if selling price and mrp or discount percentage are provided.)\n\n-available: (Required, Boolean) \n(Whether the item is currently available at the store or not.)\n</code></pre><p></p>\n\n<p><em><strong>variant</strong></em></p>\n<p>(Optional) It can be a list of dictionaries where each dictionary has\n    -id: (string) Id from the list of ids shared by client\n    -subtitle: (string)</p>\n<p><em><strong>images</strong></em></p>\n<p>(Required) It can either be list of dictionaries or list of image urls. If you have thumbnails for images, you can send as a list of dictionaries with each dictionary containing following keys</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>-image\n-thumbnail\n</code></pre><p><em><strong>image</strong></em></p>\n<p>(Optional) The primary image for the product. If this is not provided but \"images\" is, then we will take the first image from that to be the primary image of the product.</p>\n<p><em><strong>thumbnail</strong></em></p>\n<p>(Optional) The primary thumbnail image of the product.</p>\n<p><em><strong>brand</strong></em></p>\n<p>(Optional) Simplest way to provide is to provide the brand name as a string. However, if you also have information about aliases (alternative names) used for this brand, you can provide a dictionary containing following keys</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>-brand_name (String)\n-aliases (List of Strings)\n</code></pre><p><em><strong>units_sold</strong></em></p>\n<p>(Optional) Total number of units sold. This will help us prioritise higher selling products.</p>\n<p><em><strong>rank</strong></em></p>\n<p>(Optional) Rank of the product in client search results. Useful if you want search order in assistant to be similar to website / app.</p>\n<p><em><strong>popularity</strong></em></p>\n<p>(Optional) Popularity score of the product. Used for prioritising more popular products. Could be the unit sales, the number of votes, number of reviews or any other factor indicative of the popularity as per you.</p>\n<p><em><strong>url</strong></em></p>\n<p>(Required) Product link.</p>\n<p><em><strong>android_deeplink</strong></em></p>\n<p>(Required for Android SDK Integration, else optional) Deep link to the product to be opened in case of Android App.</p>\n<p><em><strong>ios_deeplink</strong></em></p>\n<p>(Required for IOS SDK Integration, else optional) Deep link to the product to be opened in case of IOS App.</p>\n<p><em><strong>summary</strong></em></p>\n<p>(Optional) Short summary describing the product.</p>\n<p><em><strong>description</strong></em></p>\n<p>(Optional) Longer description of the product.</p>\n<p><em><strong>haptik_category</strong></em></p>\n<p>(Required) Category of the product from the haptik category list. For jiomart integration, this is \"grocery\".</p>\n<p><em><strong>categories</strong></em></p>\n<p>(Optional) These are the categories that the product belongs to as per your classification system. The simplest way is to pass a list of category strings. If you also have a hierarchy level at your end, then you can pass that information by sending a list of dictionaries for the \"categories\" field with each dictionary containing the following keys.</p>\n<p>-category (String)\n-hierarchy_level (Number e.g. 1 / 2 etc)</p>\n<p><em><strong>features</strong></em></p>\n<p>(Optional) A dictionary of features of the product. Please note that completely freeform keys and values are allowed here. You can include whatever data you have available about the product. If the data is in a format of Label and Value - you can add the label value pairs as key and value in the dictionary of features. If some data is in long text format, just put key as \"text_section\" and the entire text in it's values. The values can be text or list of strings or numeric or even boolean. The more data about the product present in the Haptik Commerce platform, the better the understanding that the Haptik Commerce platform will create to serve you customers, so make sure all data is being send across in this field.</p>\n<p><em><strong>maximum_order_quantity</strong></em></p>\n<p>(Optional) Maximum quantity that can be ordered of this product in one go.</p>\n<p><em><strong>minimum_order_quantity</strong></em></p>\n<p>(Optional) Minimum quantity that can be ordered of this product.</p>\n<p><em><strong>search_keywords</strong></em></p>\n<p>(Optional) List of keywords whose search results should include this product.</p>\n<p><em><strong>tags</strong></em></p>\n<p>(Optional) If you maintain any additional classifications beyond categories for grouping products, those can be shared here.</p>\n<p><em><strong>relaxed_search_keywords</strong></em></p>\n<p>(Optional) List of search keywords that this product does not really belong do, but it would be ok to show this product saying - \"That's all the products exactly matching what you asked. Here are some related products\".</p>\n<p><em><strong>review_count</strong></em></p>\n<p>(Optional) Total number of ratings/reviews.</p>\n<p><em><strong>rating</strong></em></p>\n<p>(Optional) Aggregated average rating of the product.</p>\n<p><em><strong>max_rating</strong></em></p>\n<p>(Optional) What is the rating for the product out of? This means the Maximum rating that a customer can give to any product.</p>\n<p><em><strong>reviews</strong></em></p>\n<p>(Optional) A list of dictionaries where each dictionary entry representing 1 review contains following keys</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>-id : (Required, String) Review id\n-text (Required, String) : Review text\n-title (Optional, String) : Title of the review\n-rating : (Optional, Number) Rating given by the user\n-max_rating : (Optional, Number) Max allowed rating for any review\n-author : (Optional, String) Name of the author of review\n-url : (Optional, String) Link to the review\n-datetime : (Optional, String) Datetime format used YYYY-MM-DDTHH:mm:ss.ss\n-upvotes : (Optional, Number) Total number of upvotes given to the review\n-downvotes : (Optional, Number) Total number of downvotes given to the review\n</code></pre>","urlObject":{"path":["api","{{client}}","add"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"27104c5a-79d8-42f3-8d35-f8b97cf47c7b","name":"add","originalRequest":{"method":"POST","header":[{"key":"X-HUB-Signature","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"id\": \"491215020\",\r\n        \"display_name\": \"Gala Super Scrub\",\r\n        \"name\": \"Gala Super Scrub (10 cm x 10 cm)\",\r\n        \"store_wise_information\": [\r\n            {\r\n                \"store_id\": \"100\",\r\n                \"price_info\": {\r\n                    \"selling_price\": 300,\r\n                    \"mrp\": 270,\r\n                    \"currency\": \"inr\",\r\n                    \"price_without_tax\": 230,\r\n                    \"tax_pct\": 5,\r\n                    \"discount_pct\": 10,\r\n                    \"discount\": 30\r\n                },\r\n                \"available\": true\r\n            }\r\n        ],\r\n        \"images\": [\r\n            {\r\n                \"image\": \"https://www.jiomart.com/images/product/150x150/491215020/gala-super-scrub-0-20200522.png\",\r\n                \"thumbnail\": \"https://www.jiomart.com/images/product/150x150/491215020/gala-super-scrub-0-20200522.png\"\r\n            },\r\n            {\r\n                \"image\": \"https://www.jiomart.com/images/product/150x150/491215020/gala-super-scrub-0-20200522.png\"\r\n            },\r\n            {\r\n                \"image\": \"https://www.jiomart.com/images/product/150x150/491215020/gala-super-scrub-0-20200522.png\"\r\n            }\r\n        ],\r\n        \"brand\": \"Gala\",\r\n        \"units_sold\": 200,\r\n        \"rank\": 1,\r\n        \"popularity\": 200,\r\n        \"url\": \"https://www.jiomart.com/good-life-jeera-100-g-491185109\",\r\n        \"summary\": \"this is a scrub\",\r\n        \"description\": \"this is a super scrub\",\r\n        \"haptik_category\": \"grocery\",\r\n        \"categories\":[\r\n            {\r\n                \"category\":\"Scrubs1\",\r\n                \"hierarchy_level\": 1\r\n            },\r\n            {\r\n                \"category\": \"Scrubs2\",\r\n                \"hierarchy_level\": 2\r\n            },\r\n            {\r\n                \"category\": \"Scrubs3\",\r\n                \"hierarchy_level\": 3\r\n            }\r\n        ],\r\n        \"features\": {\r\n            \"is_veg\": true,\r\n            \"spicy_level\": 1,\r\n            \"Ingredient Type\": [\r\n                \"poly ethylene\",\r\n                \"sponge\"\r\n            ]\r\n        },\r\n        \"maximum_order_quantity\": 4,\r\n        \"minimum_order_quantity\": 0,\r\n        \"search_keywords\": [\r\n            \"srub\",\r\n            \"dishwash\"\r\n        ],\r\n        \"tags\": [\r\n            \"zomato premium\",\r\n            \"Monsooon cleaning\",\r\n            \"Shower of Savings\"\r\n        ],\r\n        \"relaxed_search_keywords\": [\r\n            \"srotch brite\",\r\n            \"srub\"\r\n        ],\r\n        \"review_count\": 11,\r\n        \"rating\": 5,\r\n        \"max_rating\": 5,\r\n        \"reviews\": [\r\n            {\r\n                \"title\": \"the product is really good\",\r\n                \"rating\": 5,\r\n                \"author\": \"sachit\",\r\n                \"url\": \"https://www.jiomart.com/good-life-jeera-100-g-491185109\",\r\n                \"max_rating\": 5,\r\n                \"text\": \"Its very long lasting\",\r\n                \"id\": \"11\",\r\n                \"datetime\": \"2020-12-11T10:10:10\",\r\n                \"upvotes\": 1,\r\n                \"downvotes\": 1\r\n            }\r\n        ]\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/add"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Thu, 16 Jul 2020 09:07:42 GMT"},{"key":"Server","value":"X"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Mod-Pagespeed","value":"1.13.35.2-0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Content-Security-Policy","value":"frame-src 'self';"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"POST,GET,OPTIONS,PUT,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,*"},{"key":"Cache-Control","value":"max-age=0, no-cache"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"text/html; charset=utf-8"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"63e48d0c-99c8-40cb-ad9f-405eece88b21"},{"name":"update","event":[{"listen":"prerequest","script":{"id":"61c35a1e-609b-4da7-a6f6-d8a4c72c24f9","exec":["var body = pm.request.body.toString(); ","var secret = pm.environment.get(\"secret\") ","const hmac = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(body, secret))","pm.environment.set(\"hmac\", hmac);"],"type":"text/javascript"}}],"id":"c405a5a2-0a86-4d39-b353-ff6c04e2f65c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-HUB-Signature","type":"text","value":"{{hmac}}"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"id\": \"AB491215020\",\r\n        \"display_name\": \"Gala Super Scrub\",\r\n        \"name\": \"Gala Super Scrub (10 cm x 10 cm)\",\r\n        \"store_wise_information\": [\r\n            {\r\n                \"store_id\": \"100\",\r\n                \"price_info\": {\r\n                    \"selling_price\": 300,\r\n                    \"mrp\": 270,\r\n                    \"currency\": \"inr\",\r\n                    \"price_without_tax\": 230,\r\n                    \"tax_pct\": \"5\",\r\n                    \"discount_pct\": 10,\r\n                    \"discount\": 30\r\n                },\r\n                \"availabile\": true\r\n            }\r\n        ],\r\n        \"images\": [\r\n            {\r\n                \"image\": \"https://www.jiomart.com/images/product/150x150/491215020/gala-super-scrub-0-20200522.png\",\r\n                \"thumbnail\": \"https://www.jiomart.com/images/product/150x150/491215020/gala-super-scrub-0-20200522.png\"\r\n            },\r\n            {\r\n                \"image\": \"https://www.jiomart.com/images/product/150x150/491215020/gala-super-scrub-0-20200522.png\"\r\n            },\r\n            {\r\n                \"image\": \"https://www.jiomart.com/images/product/150x150/491215020/gala-super-scrub-0-20200522.png\"\r\n            }\r\n        ],\r\n        \"brand\": \"Gala\",\r\n        \"units_sold\": 200,\r\n        \"rank\": 1,\r\n        \"popularity\": 200,\r\n        \"url\": \"https://www.jiomart.com/good-life-jeera-100-g-491185109\",\r\n        \"summary\": \"this is a scrub\",\r\n        \"description\": \"this is a super scrub\",\r\n        \"haptik_category\": \"grocery\",\r\n        \"categories\":[\r\n            {\r\n                \"category\":\"Scrubs1\",\r\n                \"hierarchy_level\": 1\r\n            },\r\n            {\r\n                \"category\": \"Scrubs2\",\r\n                \"hierarchy_level\": 2\r\n            },\r\n            {\r\n                \"category\": \"Scrubs3\",\r\n                \"hierarchy_level\": 3\r\n            }\r\n        ],\r\n        \"features\": {\r\n            \"is_veg\": true,\r\n            \"spicy_level\": 1,\r\n            \"Ingredient Type\": [\r\n                \"poly ethylene\",\r\n                \"sponge\"\r\n            ]\r\n        },\r\n        \"maximum_order_quantity\": 4,\r\n        \"minimum_order_quantity\": 0,\r\n        \"search_keywords\": [\r\n            \"srub\",\r\n            \"dishwash\"\r\n        ],\r\n        \"tags\": [\r\n            \"zomato premium\",\r\n            \"Monsooon cleaning\",\r\n            \"Shower of Savings\"\r\n        ],\r\n        \"relaxed_search_keywords\": [\r\n            \"srotch brite\",\r\n            \"srub\"\r\n        ],\r\n        \"review_count\": 11,\r\n        \"rating\": 5,\r\n        \"max_rating\": 5,\r\n        \"reviews\": [\r\n            {\r\n                \"title\": \"the product is really good\",\r\n                \"rating\": 5,\r\n                \"author\": \"sachit\",\r\n                \"url\": \"https://www.jiomart.com/good-life-jeera-100-g-491185109\",\r\n                \"max_rating\": 5,\r\n                \"text\": \"Its very long lasting\",\r\n                \"id\": \"11\",\r\n                \"datetime\": \"2020-12-11T10:10:10\",\r\n                \"upvotes\": 1,\r\n                \"downvotes\": 1\r\n            }\r\n        ]\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/update","description":"<p>This endpoint should only be used to make partial changes in the data for a product or a set of products. In this endpoint, changes in the product data are made only to the provided keys, all other existing information about the product is left untouched. To refresh the entire product data for one or more products you might want to look at add endpoint. </p>\n<p>The allowed keys for this endpoint are the same as the keys defined in the \"add\" endpoint. You can refer to the same.</p>\n","urlObject":{"path":["api","{{client}}","update"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"2fa0dd70-f4a1-4b60-aaa0-37043bea6d91","name":"update","originalRequest":{"method":"POST","header":[{"key":"X-HUB-Signature","type":"text","value":"{{hmac}}"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"id\": \"AB491215020\",\r\n        \"display_name\": \"Gala Super Scrub\",\r\n        \"name\": \"Gala Super Scrub (10 cm x 10 cm)\",\r\n        \"store_wise_information\": [\r\n            {\r\n                \"store_id\": \"100\",\r\n                \"price_info\": {\r\n                    \"selling_price\": 300,\r\n                    \"mrp\": 270,\r\n                    \"currency\": \"inr\",\r\n                    \"price_without_tax\": 230,\r\n                    \"tax_pct\": \"5\",\r\n                    \"discount_pct\": 10,\r\n                    \"discount\": 30\r\n                },\r\n                \"availabile\": true\r\n            }\r\n        ],\r\n        \"images\": [\r\n            {\r\n                \"image\": \"https://www.jiomart.com/images/product/150x150/491215020/gala-super-scrub-0-20200522.png\",\r\n                \"thumbnail\": \"https://www.jiomart.com/images/product/150x150/491215020/gala-super-scrub-0-20200522.png\"\r\n            },\r\n            {\r\n                \"image\": \"https://www.jiomart.com/images/product/150x150/491215020/gala-super-scrub-0-20200522.png\"\r\n            },\r\n            {\r\n                \"image\": \"https://www.jiomart.com/images/product/150x150/491215020/gala-super-scrub-0-20200522.png\"\r\n            }\r\n        ],\r\n        \"brand\": \"Gala\",\r\n        \"units_sold\": 200,\r\n        \"rank\": 1,\r\n        \"popularity\": 200,\r\n        \"url\": \"https://www.jiomart.com/good-life-jeera-100-g-491185109\",\r\n        \"summary\": \"this is a scrub\",\r\n        \"description\": \"this is a super scrub\",\r\n        \"haptik_category\": \"grocery\",\r\n        \"categories\":[\r\n            {\r\n                \"category\":\"Scrubs1\",\r\n                \"hierarchy_level\": \"1\"\r\n            },\r\n            {\r\n                \"category\": \"Scrubs2\",\r\n                \"hierarchy_level\": \"2\"\r\n            },\r\n            {\r\n                \"category\": \"Scrubs3\",\r\n                \"hierarchy_level\": \"3\"\r\n            }\r\n        ],\r\n        \"features\": {\r\n            \"is_veg\": true,\r\n            \"spicy_level\": 1,\r\n            \"Ingredient Type\": [\r\n                \"poly ethylene\",\r\n                \"sponge\"\r\n            ]\r\n        },\r\n        \"maximum_order_quantity\": 4,\r\n        \"minimum_order_quantity\": 0,\r\n        \"search_keywords\": [\r\n            \"srub\",\r\n            \"dishwash\"\r\n        ],\r\n        \"tags\": [\r\n            \"zomato premium\",\r\n            \"Monsooon cleaning\",\r\n            \"Shower of Savings\"\r\n        ],\r\n        \"relaxed_search_keywords\": [\r\n            \"srotch brite\",\r\n            \"srub\"\r\n        ],\r\n        \"review_count\": 11,\r\n        \"rating\": 5,\r\n        \"max_rating\": 5,\r\n        \"reviews\": [\r\n            {\r\n                \"title\": \"the product is really good\",\r\n                \"rating\": 5,\r\n                \"author\": \"sachit\",\r\n                \"url\": \"https://www.jiomart.com/good-life-jeera-100-g-491185109\",\r\n                \"max_rating\": 5,\r\n                \"text\": \"Its very long lasting\",\r\n                \"id\": \"11\",\r\n                \"datetime\": \"2020-12-11T10:10:10\",\r\n                \"upvotes\": 1,\r\n                \"downvotes\": 1\r\n            }\r\n        ]\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/update"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Thu, 16 Jul 2020 09:14:39 GMT"},{"key":"Server","value":"X"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Mod-Pagespeed","value":"1.13.35.2-0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Content-Security-Policy","value":"frame-src 'self';"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"POST,GET,OPTIONS,PUT,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,*"},{"key":"Cache-Control","value":"max-age=0, no-cache"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"text/html; charset=utf-8"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"c405a5a2-0a86-4d39-b353-ff6c04e2f65c"},{"name":"delete","event":[{"listen":"prerequest","script":{"id":"0a979952-27ba-49a6-bdbf-51ac2742e11c","exec":[""],"type":"text/javascript"}}],"id":"920cbe43-10fa-43b1-aecd-96d9baa7819e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-HUB-Signature","type":"text","value":"{{hmac}}"}],"body":{"mode":"raw","raw":"[\"491215020\"]","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/delete","description":"<p>This end point will delete the entire data associated with the passed ids. This is useful if one or more products is being deleted from the catalog. Expected input is a list of ids to be deleted.</p>\n","urlObject":{"path":["api","{{client}}","delete"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"e7e22aa7-d64e-489f-842c-f3d4dc102b5f","name":"delete","originalRequest":{"method":"POST","header":[{"key":"X-HUB-Signature","type":"text","value":"{{hmac}}"}],"body":{"mode":"raw","raw":"[\"491215020\"]","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/delete_data"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Wed, 15 Jul 2020 12:53:59 GMT"},{"key":"Server","value":"X"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Content-Security-Policy","value":"frame-src 'self';"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"POST,GET,OPTIONS,PUT,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,*"},{"key":"Cache-Control","value":"max-age=0, no-cache"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=99"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"text/html; charset=utf-8"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"920cbe43-10fa-43b1-aecd-96d9baa7819e"},{"name":"store-specific-update","event":[{"listen":"prerequest","script":{"id":"a791f028-6b54-4fd2-a8ac-74ddda27e921","exec":[""],"type":"text/javascript"}}],"id":"2f939a74-c242-48f9-a679-6a6a41f717a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-HUB-Signature","type":"text","value":"{{hmac}}"}],"body":{"mode":"raw","raw":"[{\r\n\t\t\t\"store_id\":\"100\",\r\n            \"product_id\":\"491215020\",\r\n\t\t\t\"price_info\":{\r\n\t\t\t\t\"selling_price\": 300,\r\n\t\t\t\t\"mrp\": 270,\r\n\t\t\t\t\"currency\": \"inr\",\r\n\t\t\t\t\"price_without_tax\": 230,\r\n\t\t\t\t\"tax_pct\": \"5\",\r\n\t\t\t\t\"discount_pct\": 10,\r\n\t\t\t\t\"discount\": 30\r\n\t\t\t},\r\n\t\t\t\"availabile\":true\r\n\t\t\t}\r\n]","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/store-specific-update","description":"<p>If the store specific availability or price information is changing, then just that information can be communicated to Haptik via this endpoint. The entire product data does not need to be updated and sent in this case.</p>\n<p><em><strong>product_id</strong></em>\n </p><p>(Required, String) id of the product for which this update is.</p><p></p>\n<p><em><strong>store_id</strong></em>\n </p><p>(Required, String) id of the store.</p><p></p>\n<p><em><strong>price_info</strong></em></p>\n<p>(Required, Dictionary) Dictionary with price related information\nFor details of dictionary structure, please refer to same section in the documentation for \"add\" endpoint.\n</p> \n\n\n<p><em><strong>available</strong></em> \n </p><p>(Required, Boolean) Whether the product is available in the store or not.</p><p></p>\n","urlObject":{"path":["api","{{client}}","store-specific-update"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"d66906cc-19de-4964-8af0-ac01c090b6ff","name":"store-specific-update","originalRequest":{"method":"POST","header":[{"key":"X-HUB-Signature","type":"text","value":"{{hmac}}"}],"body":{"mode":"raw","raw":"[{\r\n\t\t\t\"store_id\":\"100\",\r\n            \"product_id\":\"491215020\",\r\n\t\t\t\"price_info\":{\r\n\t\t\t\t\"selling_price\": 300,\r\n\t\t\t\t\"mrp\": 270,\r\n\t\t\t\t\"currency\": \"inr\",\r\n\t\t\t\t\"price_without_tax\": 230,\r\n\t\t\t\t\"tax_pct\": \"5\",\r\n\t\t\t\t\"discount_pct\": 10,\r\n\t\t\t\t\"discount\": 30\r\n\t\t\t},\r\n\t\t\t\"availabile\":true\r\n\t\t\t}\r\n]","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/store-specific-update"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Thu, 16 Jul 2020 09:21:45 GMT"},{"key":"Server","value":"X"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Mod-Pagespeed","value":"1.13.35.2-0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Content-Security-Policy","value":"frame-src 'self';"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"POST,GET,OPTIONS,PUT,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,*"},{"key":"Cache-Control","value":"max-age=0, no-cache"},{"key":"Content-Length","value":"0"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"text/html; charset=utf-8"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"2f939a74-c242-48f9-a679-6a6a41f717a4"},{"name":"get-product","event":[{"listen":"prerequest","script":{"id":"9964941f-cf5d-42ae-915f-26b2aaaa40f6","exec":["var body = pm.request.body.toString(); ","var secret = pm.environment.get(\"secret\") ","const hmac = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(body, secret))","pm.environment.set(\"hmac\", hmac);"],"type":"text/javascript"}}],"id":"034b8b63-38d6-41aa-9803-89be404e7d86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-HUB-Signature","type":"text","value":"{{hmac}}"}],"body":{"mode":"raw","raw":"{\r\n    \"id\":\"491334892\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/get-product","description":"<p>This endpoint gets the details of product</p>\n<p><em><strong>id</strong></em></p>\n<p>(Required) A unique id of type string identifying the product.</p>\n","urlObject":{"path":["api","{{client}}","get-product"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"49beb508-d8d6-49ee-8d11-e0fd46c8ff0c","name":"get-product","originalRequest":{"method":"POST","header":[{"key":"X-HUB-Signature","type":"text","value":"{{hmac}}"}],"body":{"mode":"raw","raw":"{\r\n    \"id\":\"491334892\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/get-product"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 11 Aug 2020 14:49:50 GMT"},{"key":"Server","value":"WSGIServer/0.1 Python/2.7.11"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"POST,GET,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"432"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Content-Security-Policy","value":"frame-ancestors 'self' https://www.jiomart.com https://*.buzzo.ai https://localhost:* http://localhost:* https://3792c816659d.ngrok.io/ ;"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"display_name\": \"Green Valley Club Soda 650 ml\",\n    \"name\": \"Green Valley Club Soda 650 ml\",\n    \"tags\": [],\n    \"url\": \"https://www.jiomart.com/\",\n    \"brand\": {\n        \"alias\": \"Green Valley Bevereges India Pvt Limited\"\n    },\n    \"minimum_order_quantity\": 0,\n    \"haptik_category\": \"grocery\",\n    \"store_wise_information\": [],\n    \"images\": [\n        \"https://www.jiomart.com/images/product/150x150/491334852/good-life-kachi-ghani-mustard-oil-1-l-pouch-0-20200628.jpg\"\n    ],\n    \"maximum_order_quantity\": 4,\n    \"id\": \"491334892\",\n    \"features\": {\n        \"article description\": \"Green Valley Club Soda 650 ml\",\n        \"dot label\": \"Green Dot\",\n        \"family\": \"Soda & Flavoured Water\",\n        \"sbu\": \"Beverages\",\n        \"search key words\": \"\",\n        \"article code\": \"491334892\",\n        \"brand_id\": \"Green Valley\",\n        \"subcategories\": \"Beverages,,\",\n        \"keyword\": [],\n        \"class\": \"Soda & Tonic Water\"\n    }\n}"}],"_postman_id":"034b8b63-38d6-41aa-9803-89be404e7d86"},{"name":"list-products","event":[{"listen":"prerequest","script":{"id":"e2505d09-9fcc-4b6e-b8b3-f54e85f78a27","exec":["var body = pm.request.body.toString(); ","var secret = pm.environment.get(\"secret\") ","const hmac = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(body, secret))","pm.environment.set(\"hmac\", hmac);"],"type":"text/javascript"}}],"id":"0c3c7af3-6671-4bcf-9feb-f198c26c132f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-HUB-Signature","type":"text","value":"{{hmac}}"}],"body":{"mode":"raw","raw":"{\r\n    \"page_size\":10, \r\n    \"page_number\" : 1,\r\n    \"haptik_category\":\"grocery\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/list-products","description":"<p>This endpoint gets the details of product catalog </p>\n<p><em><strong>page_size</strong></em></p>\n<p>(Optional) Number of products in the retrieved API call default page_size is 10 and maximum page_size is 100.</p>\n<p><em><strong>page_number</strong></em></p>\n<p>(Optional) Page number to return - useful for pagination across all products - Default page_number is 1. Each response also contains next_pagination.page_number and next_pagination.page_size to get the next set of products.</p>\n<p><em><strong>haptik_category</strong></em></p>\n<p>(Optional) Category of the product from the haptik category list. For jiomart integration, currently this is \"grocery\".</p>\n","urlObject":{"path":["api","{{client}}","list-products"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"793abf8e-b8ed-427e-bdd3-d09c85b0f2eb","name":"list_products","originalRequest":{"method":"POST","header":[{"key":"X-HUB-Signature","type":"text","value":"{{hmac}}"}],"body":{"mode":"raw","raw":"{\r\n    \"page_size\":1, \r\n    \"page_number\" : 10,\r\n    \"haptik_category\":\"grocery\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/list_products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 11 Aug 2020 14:50:46 GMT"},{"key":"Server","value":"WSGIServer/0.1 Python/2.7.11"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"POST,GET,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1194"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Content-Security-Policy","value":"frame-ancestors 'self' https://www.jiomart.com https://*.buzzo.ai https://localhost:* http://localhost:* https://3792c816659d.ngrok.io/ ;"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"next_pagination\": {\n        \"page_number\": 1,\n        \"page_size\": 10\n    },\n    \"products\": [\n        {\n            \"display_name\": \"Green Valley Club Soda 650 ml\",\n            \"name\": \"Green Valley Club Soda 650 ml\",\n            \"tags\": [],\n            \"url\": \"https://www.jiomart.com/\",\n            \"brand\": {\n                \"alias\": \"Green Valley Bevereges India Pvt Limited\"\n            },\n            \"minimum_order_quantity\": 0,\n            \"haptik_category\": \"grocery\",\n            \"store_wise_information\": [],\n            \"images\": [\n                \"https://www.jiomart.com/images/product/150x150/491334852/good-life-kachi-ghani-mustard-oil-1-l-pouch-0-20200628.jpg\"\n            ],\n            \"maximum_order_quantity\": 4,\n            \"id\": \"491334892\",\n            \"features\": {\n                \"article description\": \"Green Valley Club Soda 650 ml\",\n                \"dot label\": \"Green Dot\",\n                \"family\": \"Soda & Flavoured Water\",\n                \"sbu\": \"Beverages\",\n                \"search key words\": \"\",\n                \"article code\": \"491334892\",\n                \"brand_id\": \"Green Valley\",\n                \"subcategories\": \"Beverages,,\",\n                \"keyword\": [],\n                \"class\": \"Soda & Tonic Water\"\n            }\n        },\n        {\n            \"display_name\": \"Haldiram`s Delhi Diet Mixture 250 g (Pouch)\",\n            \"name\": \"Haldiram`s Delhi Diet Mixture 250 g (Pouch)\",\n            \"tags\": [],\n            \"url\": \"https://www.jiomart.com/\",\n            \"brand\": {\n                \"alias\": \"Haldiram Foods International Limited\"\n            },\n            \"minimum_order_quantity\": 0,\n            \"haptik_category\": \"grocery\",\n            \"store_wise_information\": [],\n            \"images\": [\n                \"https://www.jiomart.com/images/product/150x150/491334852/good-life-kachi-ghani-mustard-oil-1-l-pouch-0-20200628.jpg\"\n            ],\n            \"maximum_order_quantity\": 4,\n            \"id\": \"491468318\",\n            \"features\": {\n                \"article description\": \"Haldiram`s Delhi Diet Mixture 250 g (Pouch)\",\n                \"dot label\": \"Green Dot\",\n                \"family\": \"Snacks & Namkeen\",\n                \"sbu\": \"Snacks & Branded Foods\",\n                \"search key words\": \"\",\n                \"article code\": \"491468318\",\n                \"brand_id\": \"Haldiram (D)\",\n                \"subcategories\": \",,\",\n                \"keyword\": [],\n                \"class\": \"Namkeen & Savoury Snacks\"\n            }\n        },\n        {\n            \"display_name\": \"Bikano Khata Meetha 1 Kg\",\n            \"name\": \"Bikano Khata Meetha 1 Kg\",\n            \"tags\": [],\n            \"url\": \"https://www.jiomart.com/\",\n            \"brand\": {\n                \"alias\": \"Bikanerwala Foods Pvt Limited\"\n            },\n            \"minimum_order_quantity\": 0,\n            \"haptik_category\": \"grocery\",\n            \"store_wise_information\": [],\n            \"images\": [\n                \"https://www.jiomart.com/images/product/150x150/491334852/good-life-kachi-ghani-mustard-oil-1-l-pouch-0-20200628.jpg\"\n            ],\n            \"maximum_order_quantity\": 4,\n            \"id\": \"490819914\",\n            \"features\": {\n                \"article description\": \"Bikano Khata Meetha 1 Kg\",\n                \"dot label\": \"Green Dot\",\n                \"family\": \"Snacks & Namkeen\",\n                \"sbu\": \"Snacks & Branded Foods\",\n                \"search key words\": \"\",\n                \"article code\": \"490819914\",\n                \"brand_id\": \"Bikano\",\n                \"subcategories\": \",,\",\n                \"keyword\": [],\n                \"class\": \"Namkeen & Savoury Snacks\"\n            }\n        },\n        {\n            \"display_name\": \"Haldiram's Panchrattan Mixture 400 g (Pouch)\",\n            \"name\": \"Haldiram's Panchrattan Mixture 400 g (Pouch)\",\n            \"tags\": [],\n            \"url\": \"https://www.jiomart.com/\",\n            \"brand\": {\n                \"alias\": \"Haldiram Foods International Limited\"\n            },\n            \"minimum_order_quantity\": 0,\n            \"haptik_category\": \"grocery\",\n            \"store_wise_information\": [],\n            \"images\": [\n                \"https://www.jiomart.com/images/product/150x150/491334852/good-life-kachi-ghani-mustard-oil-1-l-pouch-0-20200628.jpg\"\n            ],\n            \"maximum_order_quantity\": 4,\n            \"id\": \"490604947\",\n            \"features\": {\n                \"article description\": \"Haldiram's Panchrattan Mixture 400 g (Pouch)\",\n                \"dot label\": \"Green Dot\",\n                \"family\": \"Snacks & Namkeen\",\n                \"sbu\": \"Snacks & Branded Foods\",\n                \"search key words\": \"\",\n                \"article code\": \"490604947\",\n                \"brand_id\": \"Haldiram (D)\",\n                \"subcategories\": \",,\",\n                \"keyword\": [],\n                \"class\": \"Namkeen & Savoury Snacks\"\n            }\n        },\n        {\n            \"display_name\": \"Haldiram's Panchrattan Mixture 200 g (Pouch)\",\n            \"name\": \"Haldiram's Panchrattan Mixture 200 g (Pouch)\",\n            \"tags\": [],\n            \"url\": \"https://www.jiomart.com/\",\n            \"brand\": {\n                \"alias\": \"Haldiram Foods International Limited\"\n            },\n            \"minimum_order_quantity\": 0,\n            \"haptik_category\": \"grocery\",\n            \"store_wise_information\": [],\n            \"images\": [\n                \"https://www.jiomart.com/images/product/150x150/491334852/good-life-kachi-ghani-mustard-oil-1-l-pouch-0-20200628.jpg\"\n            ],\n            \"maximum_order_quantity\": 4,\n            \"id\": \"490604946\",\n            \"features\": {\n                \"article description\": \"Haldiram's Panchrattan Mixture 200 g (Pouch)\",\n                \"dot label\": \"Green Dot\",\n                \"family\": \"Snacks & Namkeen\",\n                \"sbu\": \"Snacks & Branded Foods\",\n                \"search key words\": \"\",\n                \"article code\": \"490604946\",\n                \"brand_id\": \"Haldiram (D)\",\n                \"subcategories\": \",,\",\n                \"keyword\": [],\n                \"class\": \"Namkeen & Savoury Snacks\"\n            }\n        },\n        {\n            \"display_name\": \"Haldiram's Masala Peanuts 200 g (Pouch)\",\n            \"name\": \"Haldiram's Masala Peanuts 200 g (Pouch)\",\n            \"tags\": [],\n            \"url\": \"https://www.jiomart.com/\",\n            \"brand\": {\n                \"alias\": \"Haldiram Foods International Limited\"\n            },\n            \"minimum_order_quantity\": 0,\n            \"haptik_category\": \"grocery\",\n            \"store_wise_information\": [],\n            \"images\": [\n                \"https://www.jiomart.com/images/product/150x150/491334852/good-life-kachi-ghani-mustard-oil-1-l-pouch-0-20200628.jpg\"\n            ],\n            \"maximum_order_quantity\": 4,\n            \"id\": \"490006544\",\n            \"features\": {\n                \"article description\": \"Haldiram's Masala Peanuts 200 g (Pouch)\",\n                \"dot label\": \"Green Dot\",\n                \"family\": \"Snacks & Namkeen\",\n                \"sbu\": \"Snacks & Branded Foods\",\n                \"search key words\": \"\",\n                \"article code\": \"490006544\",\n                \"brand_id\": \"Haldiram (D)\",\n                \"subcategories\": \",,\",\n                \"keyword\": [],\n                \"class\": \"Namkeen & Savoury Snacks\"\n            }\n        },\n        {\n            \"display_name\": \"Durga Masala Puffed Rice 75 g (Pouch)\",\n            \"name\": \"Durga Masala Puffed Rice 75 g (Pouch)\",\n            \"tags\": [],\n            \"url\": \"https://www.jiomart.com/\",\n            \"brand\": {\n                \"alias\": \"Durga Dairy Limited\"\n            },\n            \"minimum_order_quantity\": 0,\n            \"haptik_category\": \"grocery\",\n            \"store_wise_information\": [],\n            \"images\": [\n                \"https://www.jiomart.com/images/product/150x150/491334852/good-life-kachi-ghani-mustard-oil-1-l-pouch-0-20200628.jpg\"\n            ],\n            \"maximum_order_quantity\": 4,\n            \"id\": \"490446938\",\n            \"features\": {\n                \"article description\": \"Durga Masala Puffed Rice 75 g (Pouch)\",\n                \"dot label\": \"Green Dot\",\n                \"family\": \"Snacks & Namkeen\",\n                \"sbu\": \"Snacks & Branded Foods\",\n                \"search key words\": \"\",\n                \"article code\": \"490446938\",\n                \"brand_id\": \"Durga\",\n                \"subcategories\": \",,\",\n                \"keyword\": [],\n                \"class\": \"Namkeen & Savoury Snacks\"\n            }\n        },\n        {\n            \"display_name\": \"Rasoi Magic Paneer Makhanwala Spice Mix 45 g\",\n            \"name\": \"Rasoi Magic Paneer Makhanwala Spice Mix 45 g\",\n            \"tags\": [],\n            \"url\": \"https://www.jiomart.com/\",\n            \"brand\": {\n                \"alias\": \"Rasoi Magic Foods India Pvt Limited\"\n            },\n            \"minimum_order_quantity\": 0,\n            \"haptik_category\": \"grocery\",\n            \"store_wise_information\": [],\n            \"images\": [\n                \"https://www.jiomart.com/images/product/150x150/491334852/good-life-kachi-ghani-mustard-oil-1-l-pouch-0-20200628.jpg\"\n            ],\n            \"maximum_order_quantity\": 4,\n            \"id\": \"490017841\",\n            \"features\": {\n                \"article description\": \"Rasoi Magic Paneer Makhanwala Spice Mix 45 g\",\n                \"dot label\": \"Green Dot\",\n                \"family\": \"Masalas & Spices\",\n                \"sbu\": \"Staples\",\n                \"search key words\": \"\",\n                \"class\": \"Blended Masalas\",\n                \"brand_id\": \"Rasoi Magic\",\n                \"subcategories\": \"Staples,,Blended Masalas\",\n                \"keyword\": [],\n                \"article code\": \"490017841\"\n            }\n        },\n        {\n            \"display_name\": \"Manak Green Raisins 100 g\",\n            \"name\": \"Manak Green Raisins 100 g\",\n            \"tags\": [],\n            \"url\": \"https://www.jiomart.com/\",\n            \"brand\": {\n                \"alias\": \"Manak Mewa Stores\"\n            },\n            \"minimum_order_quantity\": 0,\n            \"haptik_category\": \"grocery\",\n            \"store_wise_information\": [],\n            \"images\": [\n                \"https://www.jiomart.com/images/product/150x150/491334852/good-life-kachi-ghani-mustard-oil-1-l-pouch-0-20200628.jpg\"\n            ],\n            \"maximum_order_quantity\": 4,\n            \"id\": \"490416761\",\n            \"features\": {\n                \"article description\": \"Manak Green Raisins 100 g\",\n                \"dot label\": \"Green Dot\",\n                \"family\": \"Dry Fruits\",\n                \"sbu\": \"Staples\",\n                \"search key words\": \"Tiratcai, Tiratkai, Ular Dhraakshai ,Kaintha Thratchai, Karuppudraaksha, kismis, kishmish, draaksha\",\n                \"article code\": \"490416761\",\n                \"brand_id\": \"Manak\",\n                \"subcategories\": \"Staples,Dry Fruits,Dry Fruits\",\n                \"keyword\": [],\n                \"class\": \"Dry Fruits\"\n            }\n        },\n        {\n            \"display_name\": \"Heera Compounded Hing 20 g\",\n            \"name\": \"Heera Compounded Hing 20 g\",\n            \"tags\": [],\n            \"url\": \"https://www.jiomart.com/\",\n            \"brand\": {\n                \"alias\": \"Krishna Trading Co\"\n            },\n            \"minimum_order_quantity\": 0,\n            \"haptik_category\": \"grocery\",\n            \"store_wise_information\": [],\n            \"images\": [\n                \"https://www.jiomart.com/images/product/150x150/491334852/good-life-kachi-ghani-mustard-oil-1-l-pouch-0-20200628.jpg\"\n            ],\n            \"maximum_order_quantity\": 4,\n            \"id\": \"490921942\",\n            \"features\": {\n                \"article description\": \"Heera Compounded Hing 20 g\",\n                \"dot label\": \"Green Dot\",\n                \"family\": \"Masalas & Spices\",\n                \"sbu\": \"Staples\",\n                \"search key words\": \"\",\n                \"class\": \"Powdered Spices\",\n                \"brand_id\": \"Heera\",\n                \"subcategories\": \"Staples,,Powdered Spices\",\n                \"keyword\": [],\n                \"article code\": \"490921942\"\n            }\n        }\n    ],\n    \"aggregation\": {\n        \"category\": {\n            \"jam\": 1,\n            \"ready to eat\": 1\n        },\n        \"total\": 7050\n    }\n}"}],"_postman_id":"0c3c7af3-6671-4bcf-9feb-f198c26c132f"},{"name":"get-reviews","event":[{"listen":"prerequest","script":{"id":"cc285527-d0c7-425f-a4f4-875ab32a0ce3","exec":["var body = pm.request.body.toString(); ","var secret = pm.environment.get(\"secret\") ","const hmac = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(body, secret))","pm.environment.set(\"hmac\", hmac);"],"type":"text/javascript"}}],"id":"4c32e40c-d4b6-4d13-87da-558000b48678","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-HUB-Signature","type":"text","value":"{{hmac}}"}],"body":{"mode":"raw","raw":"{\r\n    \"product_id\":\"491215020\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/get-reviews","description":"<p>This endpoint gets the details of reviews </p>\n<p><em><strong>product_id</strong></em>\n(Optional) reviews with respect to the product unique id.</p>\n","urlObject":{"path":["api","{{client}}","get-reviews"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"b0e75f1c-de03-4680-8c84-3df53b753db5","name":"get-reviews","originalRequest":{"method":"POST","header":[{"key":"X-HUB-Signature","type":"text","value":"{{hmac}}"}],"body":{"mode":"raw","raw":"{\r\n    \"product_id\":\"491215020\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/get-reviews"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 11 Aug 2020 14:51:37 GMT"},{"key":"Server","value":"WSGIServer/0.1 Python/2.7.11"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"POST,GET,OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type,*"},{"key":"Vary","value":"Accept-Encoding"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"284"},{"key":"Content-Encoding","value":"gzip"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"Content-Security-Policy","value":"frame-ancestors 'self' https://www.jiomart.com https://*.buzzo.ai https://localhost:* http://localhost:* https://3792c816659d.ngrok.io/ ;"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"reviews\": [\n        {\n            \"rating\": 5,\n            \"max_rating\": 5,\n            \"product_id\": \"491215020\",\n            \"title\": \"the product is really good\",\n            \"url\": \"https://www.jiomart.com/good-life-jeera-100-g-491185109\",\n            \"text\": \"Its very long lasting\",\n            \"downvotes\": 1,\n            \"author\": \"sachit\",\n            \"datetime\": \"2020-12-11T10:10:10\",\n            \"upvotes\": 1\n        }\n    ],\n    \"aggregation\": {\n        \"total\": 3\n    }\n}"}],"_postman_id":"4c32e40c-d4b6-4d13-87da-558000b48678"},{"name":"update-reviews","event":[{"listen":"prerequest","script":{"id":"d86b7c6f-270a-4a37-87ff-ad00d1490bcd","exec":["var body = pm.request.body.toString(); ","var secret = pm.environment.get(\"secret\") ","const hmac = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(body, secret))","pm.environment.set(\"hmac\", hmac);"],"type":"text/javascript"}}],"id":"d117f8da-9a9c-4ce0-96b0-8ca0d05a3450","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-HUB-Signature","type":"text","value":"{{hmac}}"}],"body":{"mode":"raw","raw":"[            {\r\n                \"title\": \"Awesome product\",\r\n                \"rating\": 5,\r\n                \"author\": \"Sachit\",\r\n                \"product_id\":\"491215020\",\r\n                \"url\": \"https://www.jiomart.com/good-life-jeera-100-g-491185101-4\",\r\n                \"max_rating\": 5,\r\n                \"text\": \"Great Quality\",\r\n                \"id\": \"12\",\r\n                \"datetime\": \"2020-12-11T11:11:11\",\r\n                \"upvotes\": 10,\r\n                \"downvotes\": 1\r\n            }\r\n]","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/update-reviews","description":"<p>(Optional) A list of dictionaries where each dictionary entry representing 1 review contains following keys. These reviews get added \nbased on the url (unique key) if the url is already present we will update else we will create a new review.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>-id : (Required, String) Review id\n-product_id : (Required, String) Product id\n-text (Required, String) : Review text\n-title (Required, String) : Title of the review\n-rating : (Required, Number) Rating given by the user\n-max_rating : (Required, Number) Max allowed rating for any review\n-author : (Required, String) Name of the author of review\n-url : (Required, String) Link to the review\n-datetime : (Required, String) Datetime format used YYYY-MM-DDTHH:mm:ss.ss\n-upvotes : (Required, Number) Total number of upvotes given to the review\n-downvotes : (Required, Number) Total number of downvotes given to the review\n</code></pre>","urlObject":{"path":["api","{{client}}","update-reviews"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"4c924fc0-82f5-4a68-bf8d-19bcb16d4c0d","name":"update-reviews","originalRequest":{"method":"POST","header":[{"key":"X-HUB-Signature","type":"text","value":"{{hmac}}"}],"body":{"mode":"raw","raw":"[            {\r\n                \"title\": \"Awesome product\",\r\n                \"rating\": 5,\r\n                \"author\": \"Sachit\",\r\n                \"product_id\":\"491215020\",\r\n                \"url\": \"https://www.jiomart.com/good-life-jeera-100-g-491185101-4\",\r\n                \"max_rating\": 5,\r\n                \"text\": \"Great Quality\",\r\n                \"id\": \"12\",\r\n                \"datetime\": \"2020-12-11T11:11:11\",\r\n                \"upvotes\": 10,\r\n                \"downvotes\": 1\r\n            }\r\n]","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/update-reviews"},"_postman_previewlanguage":null,"header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"success\": true\r\n}"}],"_postman_id":"d117f8da-9a9c-4ce0-96b0-8ca0d05a3450"},{"name":"refresh-unserviceable-pincodes","event":[{"listen":"prerequest","script":{"id":"d6a99ce4-dd79-4ce1-b936-bb7ca88e2366","exec":["var body = pm.request.body.toString(); \r","var secret = pm.environment.get(\"secret\") \r","const hmac = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(body, secret))\r","pm.environment.set(\"hmac\", hmac);"],"type":"text/javascript"}}],"id":"50da93d0-a7ca-4fba-b824-95ceb46184b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-HUB-Signature","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\"unserviceable_pincodes\":[\"110010\",\"101011\",\"400607\"], \"vertical\":\"fashion\"}","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/refresh-unserviceable-pincodes","description":"<p>the pin codes that are currently unserviceable by the client so we we handle the requests from the customers appropriately  </p>\n","urlObject":{"path":["api","{{client}}","refresh-unserviceable-pincodes"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"29dec81d-d9c5-4bb6-bc6f-5fa938263240","name":"refresh-unserviceable-pincodes","originalRequest":{"method":"POST","header":[{"key":"X-HUB-Signature","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\"unserviceable_pincodes\":[\"110010\",\"101011\",\"400607\"], \"vertical\":\"fashion\"}","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/jiomart/refresh-unserviceable-pincodes"},"code":200,"_postman_previewlanguage":null,"header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"success\": true\r\n}"}],"_postman_id":"50da93d0-a7ca-4fba-b824-95ceb46184b9"},{"name":"upsert-unserviceable-pincodes","event":[{"listen":"prerequest","script":{"id":"e20bfe8d-05b1-45b3-b614-cf0d35824e4a","exec":["var body = pm.request.body.toString(); \r","var secret = pm.environment.get(\"secret\") \r","const hmac = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(body, secret))\r","pm.environment.set(\"hmac\", hmac);"],"type":"text/javascript"}}],"id":"507e797d-a67e-40c6-bc26-e805025f4cbb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-HUB-Signature","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\"unserviceable_pincodes\":[\"400081\"], \"vertical\":\"fashion\"}","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/upsert-unserviceable-pincodes","description":"<p>the pin codes that are currently unserviceable by the client so we we handle the requests from the customers appropriately  </p>\n","urlObject":{"path":["api","{{client}}","upsert-unserviceable-pincodes"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"4738a75b-4a94-48f8-b757-3ea944c8f36a","name":"upsert-unserviceable-pincodes","originalRequest":{"method":"POST","header":[{"key":"X-HUB-Signature","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\"unserviceable_pincodes\":[\"400081\"], \"vertical\":\"fashion\"}","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/upsert-unserviceable-pincodes"},"_postman_previewlanguage":null,"header":[],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"507e797d-a67e-40c6-bc26-e805025f4cbb"},{"name":"refresh-pincode-region-mappings","event":[{"listen":"prerequest","script":{"id":"d6a99ce4-dd79-4ce1-b936-bb7ca88e2366","exec":["var body = pm.request.body.toString(); \r","var secret = pm.environment.get(\"secret\") \r","const hmac = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(body, secret))\r","pm.environment.set(\"hmac\", hmac);"],"type":"text/javascript"}}],"id":"61a17ffa-1abd-4854-8fb4-f940b3d328cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-HUB-Signature","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\"pincode_region_mappings\":{\"110010\":\"4212\",\"400607\":\"2316\"}, \"vertical\" : \"fashion\"}\n","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/refresh-pincode-region-mappings","description":"<p>the pin codes to the region / store mappings</p>\n","urlObject":{"path":["api","{{client}}","refresh-pincode-region-mappings"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"23377e38-17b8-45d7-b627-a01b69692762","name":"refresh-pincode-region-mappings","originalRequest":{"method":"POST","header":[{"key":"X-HUB-Signature","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\"pincode_region_mappings\":{\"110010\":\"4212\",\"400607\":\"2316\"}, \"vertical\" : \"fashion\"}","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/jiomart/refresh-pincode-region-mappings"},"code":200,"_postman_previewlanguage":null,"header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"success\": true\r\n}"}],"_postman_id":"61a17ffa-1abd-4854-8fb4-f940b3d328cc"},{"name":"upsert-pincode-region-mappings","event":[{"listen":"prerequest","script":{"id":"1f30f3c7-adb3-45fe-a5e9-48844ac36921","exec":["var body = pm.request.body.toString(); \r","var secret = pm.environment.get(\"secret\") \r","const hmac = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(body, secret))\r","pm.environment.set(\"hmac\", hmac);"],"type":"text/javascript"}}],"id":"8c5b0f85-f1fe-4734-9074-c6ffba97a20c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-HUB-Signature","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\"pincode_region_mappings\":{\"400081\":\"2316\"}, \"vertical\" : \"fashion\"}","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/upsert-pincode-region-mappings","description":"<p>the pin codes to the region / store mappings</p>\n","urlObject":{"path":["api","{{client}}","upsert-pincode-region-mappings"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"851c5787-181d-4714-86e6-0f309d6f0b46","name":"upsert-pincode-region-mappings","originalRequest":{"method":"POST","header":[{"key":"X-HUB-Signature","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\"pincode_region_mappings\":{\"400081\":\"2316\"}, \"vertical\" : \"fashion\"}","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/upsert-pincode-region-mappings"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"8c5b0f85-f1fe-4734-9074-c6ffba97a20c"},{"name":"get-settings","event":[{"listen":"prerequest","script":{"id":"d6a99ce4-dd79-4ce1-b936-bb7ca88e2366","exec":["var body = pm.request.body.toString(); \r","var secret = pm.environment.get(\"secret\") \r","const hmac = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(body, secret))\r","pm.environment.set(\"hmac\", hmac);"],"type":"text/javascript"}}],"id":"a66212df-d66f-4cc6-a9fd-80c649a46ecd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-HUB-Signature","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\"query\": \"hi\",\n            \"client\": \"tatacliq\",\n            \"realtime\": \"true\",\n            \"userid\": \"123_dummy\",\n            \"voicefirst\": \"false\",\n            \"browser_tab_uuid\":\"dummytabid\"\n        }","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/get-haptik-iva-response","description":"<p>All the client specific settings will be returned here. in the example client has two settings pincode_region_mappings and unserviceable_pincodes.</p>\n","urlObject":{"path":["get-haptik-iva-response"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"6e42342e-4c92-4525-8e81-57e43747d408","name":"get-settings","originalRequest":{"method":"POST","header":[{"key":"X-HUB-Signature","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/get-settings"},"code":200,"_postman_previewlanguage":null,"header":[],"cookie":[],"responseTime":null,"body":"{\r\n    \"client\": \"jiomart\",\r\n    \"pincode_region_mappings\": {\r\n        \"110010\": \"2316\"\r\n    },\r\n    \"unserviceable_pincodes\": [\r\n        \"110010\",\r\n        \"101011\"\r\n    ]\r\n}"}],"_postman_id":"a66212df-d66f-4cc6-a9fd-80c649a46ecd"},{"name":"refresh-pincode-network-mappings","event":[{"listen":"prerequest","script":{"id":"ecf63c55-7cce-48c3-87dd-b80fd765901b","exec":["var body = pm.request.body.toString(); \r","var secret = pm.environment.get(\"secret\") \r","const hmac = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(body, secret))\r","pm.environment.set(\"hmac\", hmac);"],"type":"text/javascript"}}],"id":"67aa32e0-bd91-40c8-a279-92f4002ee52b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-HUB-Signature","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"pincode_network_mappings\": [\r\n\t\t{\"pin\":\"400081\",\"position\":1,\"store_code\":\"400081\",\"region_code\":\"PANINDIADIGITAL\",\"store_format\":\"DIGITAL\"}],\r\n  \"vertical\":\"groceries\"\t\r\n}\t","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/refresh-pincode-network-mappings","urlObject":{"path":["api","{{client}}","refresh-pincode-network-mappings"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"e49de5af-4907-4721-958b-8d0d7b40fd56","name":"refresh-pincode-network-mappings","originalRequest":{"method":"POST","header":[{"key":"X-HUB-Signature","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"pincode_network_mappings\": [\r\n\t\t{\"pin\":\"700050\",\"position\":1,\"store_code\":\"TMZ5\",\"region_code\":\"PANINDIADIGITAL\",\"store_format\":\"DIGITAL\"},\r\n\t\t{\"pin\":\"700050\",\"position\":2,\"store_code\":\"TMZ6\",\"region_code\":\"PANINDIADIGITAL\",\"store_format\":\"DIGITAL\"},\r\n\t\t{\"pin\":\"700050\",\"position\":3,\"store_code\":\"TMZ6\",\"region_code\":\"PANINDIADIGITAL\",\"store_format\":\"DIGITAL\"}\r\n\t\t],\r\n  \"vertical\":\"ELECTRONICS\"\t\r\n}\t","options":{"raw":{"language":"json"}}},"url":"{{BaseUrl}}/api/{{client}}/refresh-pincode-network-mappings"},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"success\": true\r\n}"}],"_postman_id":"67aa32e0-bd91-40c8-a279-92f4002ee52b"},{"name":"New Request","id":"d331765c-bbc5-4e98-846c-3c483c387ba7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"d331765c-bbc5-4e98-846c-3c483c387ba7"}],"event":[{"listen":"prerequest","script":{"id":"c367bc5a-5315-42d6-bc62-f7d4eb0d1f09","type":"text/javascript","exec":["var body = pm.request.body.toString(); ","var secret = pm.environment.get(\"secret\") ","const hmac = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(body, secret))","pm.environment.set(\"hmac\", hmac);"]}},{"listen":"test","script":{"id":"e0dc0681-37e4-4d10-9f1f-6e9dd2fecef4","type":"text/javascript","exec":[""]}}]}