{"info":{"_postman_id":"aec709a3-7366-4652-935c-8bccc365f565","name":"QSHOP API V2","description":"<html><head></head><body><h1 id=\"qshop-api-documentation\">QSHOP API Documentation</h1>\n<h2 id=\"introduction\">Introduction</h2>\n<p>QSHOP is a dynamic platform designed to bridge the gap between local shops and online marketplaces. By leveraging our API, shop owners can effortlessly update and manage their inventory, ensuring accurate and real-time product information for a wider customer base.</p>\n<h2 id=\"getting-started\">Getting Started</h2>\n<h2 id=\"base-url-and-authentication\">Base URL and Authentication</h2>\n<h3 id=\"base-url\">Base URL</h3>\n<p>The base URL for accessing the Delivery Order APIs is <code>https://stage-api.qwqer.in/shop/v2/</code></p>\n<h3 id=\"authentication\">Authentication</h3>\n<p>All requests to the APIs require authentication. To authenticate, include the client secret in the authorization headers of your requests. Ensure you have set up the necessary client credentials and received the client secret from the QWQER executive when the merchant onboarded as an API customer</p>\n<h3 id=\"sample-authorization-header\">Sample Authorization Header</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">clientsecret: YOUR_CLIENT_SECRET\n\n</code></pre>\n<h2 id=\"setting-up-postman-environment\">Setting Up Postman Environment</h2>\n<ol>\n<li><p>Click the 'Manage Environments' button located on the right side of the Postman interface.</p>\n</li>\n<li><p>In the popup, click the 'Add' button.</p>\n</li>\n<li><p>In the following screen, provide the environment name and define the following environment variables along with their values:</p>\n<ul>\n<li><code>BASE_URL</code></li>\n<li><code>client_secret</code></li>\n</ul>\n</li>\n<li><p>Click the 'Save' button to create the new environment.</p>\n</li>\n<li><p>The new environment is now available. To use it, select the created environment from the environment dropdown.</p>\n</li>\n</ol>\n<img src=\"https://content.pstmn.io/fa2504a6-d4bf-49b0-808c-6cfb4a473c1b/U2NyZWVuc2hvdCBmcm9tIDIwMjQtMDEtMTEgMDEtNTktNDUucG5n\">\n\n<p>By using this approach, you can efficiently manage variables like 'BASE_URL' for the API URL and 'client_secret' for the third-party API key. Changing these variables in the environment will automatically reflect in all associated API requests, streamlining the process of updating API configurations.</p>\n<h2 id=\"variables-reference\">Variables Reference</h2>\n<p>The collection relies on the following variables:</p>\n<p><strong>Note:</strong> Not every folder needs all of the variables. Look at the documentation of each folder for specific details</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n<th>Where to find it? (Some assume trial webstore)</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>BASE_URL</code></td>\n<td>The base URL for the API end point.</td>\n<td>The base URL is the common prefix shared by all API endpoints.</td>\n</tr>\n<tr>\n<td><code>client_secret</code></td>\n<td>client secret is an unique secret key used for authentication</td>\n<td>client secret is obtained by the merchant during the merchant on boarding process or you can request QWQER</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"error-codes-and-details\">Error Codes and details:</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Status Code</th>\n<th>Message</th>\n<th>Details</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>QS400</td>\n<td>401</td>\n<td>No API key is provided.</td>\n<td>Please pass your API key in the header in 'ClientSecret' key.</td>\n</tr>\n<tr>\n<td>QS401</td>\n<td>401</td>\n<td>Invalid API key.</td>\n<td>The API key provided in the header is invalid.</td>\n</tr>\n<tr>\n<td>QS402</td>\n<td>401</td>\n<td>Merchant account is blocked.</td>\n<td>Your account is blocked; please contact the QWQER administrator.</td>\n</tr>\n<tr>\n<td>QS404</td>\n<td>400</td>\n<td>Inventory with that SKU does not exist.</td>\n<td>Please check whether SKU is mapped with QWQER shop.</td>\n</tr>\n<tr>\n<td>QS407</td>\n<td>400</td>\n<td>Missing or mispelled fields, please check the documentation for a valid request body format to update an inventory.</td>\n<td>Details depend on the field errors committed.</td>\n</tr>\n<tr>\n<td>QS405</td>\n<td>400</td>\n<td>Shop is closed on that day to update available day.</td>\n<td>Shop is closed on the selected day. Can't update Available on shop closed day.</td>\n</tr>\n<tr>\n<td>QS406</td>\n<td>400</td>\n<td>Inventory times should be within the shop's working hours.</td>\n<td>Please check whether the inventory scheduled time is within the available time of the shop.</td>\n</tr>\n<tr>\n<td>QS499</td>\n<td>400</td>\n<td>Price higher than MRP of the product.</td>\n<td>Inventory price cannot be higher than the product MRP price.</td>\n</tr>\n<tr>\n<td>QS400</td>\n<td>400</td>\n<td>No fields to update.</td>\n<td>Please add any inventory attribute in the request body to update.</td>\n</tr>\n<tr>\n<td>QS470</td>\n<td>400</td>\n<td>Invalid shop ID.</td>\n<td>Please enter a valid shop ID provided by QWQER SHOP admin.</td>\n</tr>\n<tr>\n<td>QS443</td>\n<td>400</td>\n<td>Can't update the MRP of Public Product.</td>\n<td>MRP update is only available for private products.</td>\n</tr>\n<tr>\n<td>QS441</td>\n<td>400</td>\n<td>Inventory items must be enabled to update.</td>\n<td>Inactive inventory items cannot be updated. Please update the inventory status to update its attributes.</td>\n</tr>\n<tr>\n<td>QS460</td>\n<td>400</td>\n<td>Can't update available days if inventory scheduling is not active.</td>\n<td>Please make sure inventory scheduling is enabled to update the available days.</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"QSHOP API Documentation","slug":"qshop-api-documentation"}],"owner":"17043909","collectionId":"aec709a3-7366-4652-935c-8bccc365f565","publishedId":"2s9YsNcV39","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-01-12T10:45:04.000Z"},"item":[{"name":"inventory update","id":"35b403b7-e3d2-4b7d-bf27-801943504f0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"clientsecret","value":"{{client_secret}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shop_id\": 448,\n    \"sku\":\"2222\",\n    \"selling_price\":500.569,\n    \"priority\":5,\n    \"is_enabled\": true,\n    \"is_scheduled\": true,\n    \"mrp\":505,\n    \"available_days\":{\n   \n  \n    \"tue\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"wed\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"thu\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"fri\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    }\n   \n    }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}inventory/update/","description":"<h1 id=\"inventory-update\">Inventory Update</h1>\n<p>This endpoint allows you to update inventory information for a specific inventory item in a shop.</p>\n<h3 id=\"request\">Request</h3>\n<p>Endpoint: <code>/inventory/update/</code></p>\n<p>HTTP Method: <code>POST</code></p>\n<h4 id=\"request-parameters\">Request Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>shop_id</td>\n<td>Integer</td>\n<td>The ID of the shop. Obtained when onboarded as API customer</td>\n</tr>\n<tr>\n<td>sku</td>\n<td>String</td>\n<td>The stock keeping unit.</td>\n</tr>\n<tr>\n<td>selling_price</td>\n<td>Integer</td>\n<td>The selling price of the item. selling price should be less than mrp</td>\n</tr>\n<tr>\n<td>priority</td>\n<td>Integer</td>\n<td>The priority of the item.</td>\n</tr>\n<tr>\n<td>is_enabled</td>\n<td>Boolean</td>\n<td>Indicates whether the item is enabled.</td>\n</tr>\n<tr>\n<td>is_scheduled</td>\n<td>Boolean</td>\n<td>Indicates whether the item is scheduled.</td>\n</tr>\n<tr>\n<td>mrp</td>\n<td>Integer</td>\n<td>The maximum retail price of the item.</td>\n</tr>\n<tr>\n<td>available_days</td>\n<td>Object</td>\n<td>Availability on specific days of the week,  <br /><strong>Example JSON:</strong> <code>{ \"sun\": ..., \"mon\": ... }</code>  <br /><strong>Accepts:</strong>  <br />- <code>null</code>: Product will be made unavailable on the specific day.  <br />- JSON Object with optional <code>start_time</code> and <code>end_time</code>.  <br /><strong>Example JSON for each day:</strong> <code>{ \"start_time\": \"08:00:00\", \"end_time\": \"17:00:00\" }</code>  <br />  <br />Note : Availability time frame should be within the shop's working hours.</td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"note-\">Note :</h5>\n<p>All the fields except 'shop_id' and 'sku' are optional. only the fields that needs to be updated can be send through the request body.</p>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><code>message</code> (string): A message related to the response.</li>\n<li><code>data</code> (object): The updated inventory data, including MRP, selling price, priority, enabled status, scheduled status, and availability schedule.</li>\n<li><code>is_success</code> (boolean): Indicates whether the update operation was successful.</li>\n<li><code>error</code> (null): If an error occurs, details will be provided here.</li>\n</ul>\n","urlObject":{"path":["update",""],"host":["{{BASE_URL}}inventory"],"query":[],"variable":[]}},"response":[{"id":"ca77d774-6990-4d5e-a5ca-5ea571da9245","name":"success - Update all fields","originalRequest":{"method":"POST","header":[{"key":"clientsecret","value":"{{client_secret}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shop_id\": 448,\n    \"sku\":\"2222\",\n    \"selling_price\":500.569,\n    \"priority\":5,\n    \"is_enabled\": true,\n    \"is_scheduled\": true,\n    \"mrp\":505,\n    \"available_days\":{\n   \n    \"sun\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"tue\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"wed\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"thu\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"fri\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"sat\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}inventory/update/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"521"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Inventory Details updated successfully\",\n    \"data\": {\n        \"mrp\": 505,\n        \"selling_price\": 500.57,\n        \"priority\": 5,\n        \"is_enabled\": true,\n        \"is_scheduled\": true,\n        \"available_days\": {\n            \"sun\": {\n                \"start_time\": \"11:15:00\",\n                \"end_time\": \"12:15:00\"\n            },\n            \"tue\": {\n                \"start_time\": \"11:15:00\",\n                \"end_time\": \"12:15:00\"\n            },\n            \"wed\": {\n                \"start_time\": \"11:15:00\",\n                \"end_time\": \"12:15:00\"\n            },\n            \"thu\": {\n                \"start_time\": \"11:15:00\",\n                \"end_time\": \"12:15:00\"\n            },\n            \"fri\": {\n                \"start_time\": \"11:15:00\",\n                \"end_time\": \"12:15:00\"\n            },\n            \"sat\": {\n                \"start_time\": \"11:15:00\",\n                \"end_time\": \"12:15:00\"\n            }\n        }\n    },\n    \"is_success\": true,\n    \"error\": null\n}"},{"id":"d0fc534c-5740-40fa-aab7-7eed54e0d607","name":"success - Update Available days","originalRequest":{"method":"POST","header":[{"key":"clientsecret","value":"{{client_secret}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shop_id\": 448,\n    \"sku\":\"2222\",\n\n    \"available_days\":{\n   \n    \"sun\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"tue\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"wed\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"thu\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"fri\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"sat\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}inventory/update/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"435"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Inventory Details updated successfully\",\n    \"data\": {\n        \"available_days\": {\n            \"sun\": {\n                \"start_time\": \"11:15:00\",\n                \"end_time\": \"12:15:00\"\n            },\n            \"tue\": {\n                \"start_time\": \"11:15:00\",\n                \"end_time\": \"12:15:00\"\n            },\n            \"wed\": {\n                \"start_time\": \"11:15:00\",\n                \"end_time\": \"12:15:00\"\n            },\n            \"thu\": {\n                \"start_time\": \"11:15:00\",\n                \"end_time\": \"12:15:00\"\n            },\n            \"fri\": {\n                \"start_time\": \"11:15:00\",\n                \"end_time\": \"12:15:00\"\n            },\n            \"sat\": {\n                \"start_time\": \"11:15:00\",\n                \"end_time\": \"12:15:00\"\n            }\n        }\n    },\n    \"is_success\": true,\n    \"error\": null\n}"},{"id":"1773816f-db63-48fc-8cb1-22357615459b","name":"success - Update individual fields","originalRequest":{"method":"POST","header":[{"key":"clientsecret","value":"{{client_secret}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shop_id\": 448,\n    \"sku\":\"2222\",\n    \"selling_price\":500.569\n  \n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}inventory/update/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"115"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Inventory Details updated successfully\",\n    \"data\": {\n        \"selling_price\": 500.57\n    },\n    \"is_success\": true,\n    \"error\": null\n}"},{"id":"1d29c969-1285-42e4-926f-c0b62d86bcdf","name":"success - Update update available days on a particular day to empty","originalRequest":{"method":"POST","header":[{"key":"clientsecret","value":"{{client_secret}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shop_id\": 448,\n    \"sku\":\"2222\",\n    \"selling_price\":500.569,\n    \"priority\":5,\n    \"is_enabled\": true,\n    \"is_scheduled\": true,\n    \"mrp\":505,\n    \"available_days\":{\n   \n    \"sun\": null,\n    \"tue\":null,\n    \"wed\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"thu\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"fri\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"sat\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}inventory/update/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"435"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Inventory Details updated successfully\",\n    \"data\": {\n        \"mrp\": 505,\n        \"selling_price\": 500.57,\n        \"priority\": 5,\n        \"is_enabled\": true,\n        \"is_scheduled\": true,\n        \"available_days\": {\n            \"sun\": null,\n            \"tue\": null,\n            \"wed\": {\n                \"start_time\": \"11:15:00\",\n                \"end_time\": \"12:15:00\"\n            },\n            \"thu\": {\n                \"start_time\": \"11:15:00\",\n                \"end_time\": \"12:15:00\"\n            },\n            \"fri\": {\n                \"start_time\": \"11:15:00\",\n                \"end_time\": \"12:15:00\"\n            },\n            \"sat\": {\n                \"start_time\": \"11:15:00\",\n                \"end_time\": \"12:15:00\"\n            }\n        }\n    },\n    \"is_success\": true,\n    \"error\": null\n}"},{"id":"c7803327-12e3-4228-b077-ad5c5fa30149","name":"error - No client secret","originalRequest":{"method":"POST","header":[{"key":"clientsecret","value":"{{client_secret}}","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"shop_id\": 448,\n    \"sku\":\"2222\",\n    \"selling_price\":500.569,\n    \"priority\":5,\n    \"is_enabled\": true,\n    \"is_scheduled\": true,\n    \"mrp\":505,\n    \"available_days\":{\n   \n    \"sun\": null,\n    \"tue\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"wed\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"thu\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"fri\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"sat\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    }\n    }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}inventory/update/"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"186"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\",\n    \"data\": {},\n    \"is_success\": false,\n    \"error\": {\n        \"code\": \"QS400\",\n        \"message\": \"No API key is provided.\",\n        \"details\": \"Please pass your API key in header in 'ClientSecret' key.\"\n    }\n}"},{"id":"f5da4a6d-5a18-43ad-8242-e5190ce42fdc","name":"error - Invalid Client secret","originalRequest":{"method":"POST","header":[{"key":"clientsecret","value":"UjY0AV1WTDFWmaZBf5rYbRXNj7WLZfx5KD","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shop_id\": 448,\n    \"sku\":\"2222\",\n    \"selling_price\":500.569,\n    \"priority\":5,\n    \"is_enabled\": true,\n    \"is_scheduled\": true,\n    \"mrp\":505,\n    \"available_days\":{\n   \n    \"sun\": null,\n    \"tue\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"wed\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"thu\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"fri\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"sat\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    }\n    }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}inventory/update/"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"168"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\",\n    \"data\": {},\n    \"is_success\": false,\n    \"error\": {\n        \"code\": \"QS401\",\n        \"message\": \"Invalid API key.\",\n        \"details\": \"The API key provided in the header is invalid.\"\n    }\n}"},{"id":"f54c743f-a1cf-43a5-809a-9456d455c3bb","name":"error - Third Party API disabled","originalRequest":{"method":"POST","header":[{"key":"clientsecret","value":"{{client_secret}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shop_id\": 448,\n    \"sku\":\"2222\",\n    \"selling_price\":500.569,\n    \"priority\":5,\n    \"is_enabled\": true,\n    \"is_scheduled\": true,\n    \"mrp\":505,\n    \"available_days\":{\n   \n    \"sun\": null,\n    \"tue\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"wed\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"thu\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"fri\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"sat\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    }\n    }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{STAGE_URL}}shop/v2/inventory/update/"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"192"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\",\n    \"data\": {},\n    \"is_success\": false,\n    \"error\": {\n        \"code\": \"QS402\",\n        \"message\": \"Merchant account is blocked.\",\n        \"details\": \"Your account is blocked, please contact the Administrator.\"\n    }\n}"},{"id":"30307586-466c-465c-96b1-7b49b8825d8f","name":"error - Invalid shop_sku","originalRequest":{"method":"POST","header":[{"key":"clientsecret","value":"{{client_secret}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shop_id\": 448,\n    \"sku\":\"22225\",\n    \"selling_price\":500.569,\n    \"priority\":5,\n    \"is_enabled\": true,\n    \"is_scheduled\": true,\n    \"mrp\":505,\n    \"available_days\":{\n   \n    \"sun\": null,\n    \"tue\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"wed\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"thu\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"fri\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"sat\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    }\n    }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}inventory/update/"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"182"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"\",\n    \"data\": {},\n    \"is_success\": false,\n    \"error\": {\n        \"code\": \"QS404\",\n        \"message\": \"Inventory with that sku does not exist\",\n        \"details\": \"please check whether sku is mapped with QWQER shop\"\n    }\n}"},{"id":"f8adfe17-977b-4699-af83-376255fbbe1b","name":"error - Validation error, single fields","originalRequest":{"method":"POST","header":[{"key":"clientsecret","value":"{{client_secret}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shop_id\": 448,\n    \"sku\":\"22225\",\n    \"selling_price\":\"valid price\",\n    \"priority\":5,\n    \"is_enabled\": true,\n    \"is_scheduled\": true,\n    \"mrp\":505,\n    \"available_days\":{\n   \n    \"sun\": null,\n    \"tue\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"wed\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"thu\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"fri\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"sat\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    }\n    }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}inventory/update/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"254"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"\",\n    \"data\": {},\n    \"is_success\": false,\n    \"error\": {\n        \"code\": \"QS403\",\n        \"message\": \"missing or mispelled fields, please check the documentaion for a valid request body format to update an inventory\",\n        \"details\": {\n            \"selling_price\": [\n                \"A valid number is required.\"\n            ]\n        }\n    }\n}"},{"id":"99622b53-bb34-4b48-8fc1-def805ff0208","name":"error - Multiple validation errors","originalRequest":{"method":"POST","header":[{"key":"clientsecret","value":"{{client_secret}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shop_id\": 4499,\n    \"sku\":\"2222\",\n    \"selling_price\":\"350\",\n    \"priority\":\"high\",\n    \"is_enabled\": \"qwqer\",\n    \"is_scheduled\": false,\n    \"mrp\":505,\n  \n    \"available_days\":{\n   \n\n    \"wed\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"thu\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"fri\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"sat\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    }\n    }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}inventory/update/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"292"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"\",\n    \"data\": {},\n    \"is_success\": false,\n    \"error\": {\n        \"code\": \"QS403\",\n        \"message\": \"missing or mispelled fields, please check the documentaion for a valid request body format to update an inventory\",\n        \"details\": {\n            \"priority\": [\n                \"A valid integer is required.\"\n            ],\n            \"is_enabled\": [\n                \"Must be a valid boolean.\"\n            ]\n        }\n    }\n}"},{"id":"85d068b5-2ef8-4c7b-a68c-b27f7110a3d8","name":"error - trying to update inventory on closed shop day","originalRequest":{"method":"POST","header":[{"key":"clientsecret","value":"{{client_secret}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shop_id\": 448,\n    \"sku\":\"2222\",\n    \"selling_price\":\"400\",\n    \"priority\":5,\n    \"is_enabled\": true,\n    \"is_scheduled\": \"true\",\n    \"mrp\":505,\n    \"available_days\":{\n   \n    \"sun\": null,\n    \"mon\":{\n        \"start_time\":\"10:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"wed\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"thu\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"fri\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"sat\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    }\n    }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}inventory/update/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"282"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"\",\n    \"data\": {},\n    \"is_success\": false,\n    \"error\": {\n        \"code\": \"QS405\",\n        \"message\": \"please verify if the stores are open on a specific day so that we can update the available days for the Inventory\",\n        \"details\": \"Shop is closed on the selected day.Cant update Inventory on shop closed day\"\n    }\n}"},{"id":"e53c5307-be12-44d9-abc5-ff0f87de4464","name":"error - Trying to update available day time outside working hours","originalRequest":{"method":"POST","header":[{"key":"clientsecret","value":"{{client_secret}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shop_id\": 448,\n    \"sku\":\"2222\",\n    \"selling_price\":\"400\",\n    \"priority\":5,\n    \"is_enabled\": true,\n    \"is_scheduled\": \"true\",\n    \"mrp\":505,\n    \"available_days\":{\n   \n    \"sun\": null,\n    \"wed\":{\n        \"start_time\":\"01:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"thu\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"fri\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"sat\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    }\n    }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}inventory/update/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"238"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"\",\n    \"data\": {},\n    \"is_success\": false,\n    \"error\": {\n        \"code\": \"QS406\",\n        \"message\": \"Inventory times should be within shop's working hours.\",\n        \"details\": \"Please check whether the inventory scheduled time is in between available time of the shop\"\n    }\n}"},{"id":"911a49ef-92fb-40c7-994b-7eefbcde2e2c","name":"error - selling price higher than MRP","originalRequest":{"method":"POST","header":[{"key":"clientsecret","value":"{{client_secret}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shop_id\": 448,\n    \"sku\":\"2222\",\n    \"selling_price\":\"600\",\n    \"priority\":5,\n    \"is_enabled\": true,\n    \"is_scheduled\": \"true\",\n    \"mrp\":505,\n    \"available_days\":{\n   \n    \"sun\": null,\n    \"wed\":{\n        \"start_time\":\"01:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"thu\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"fri\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"sat\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    }\n    }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}inventory/update/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"185"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"\",\n    \"data\": {},\n    \"is_success\": false,\n    \"error\": {\n        \"code\": \"QS499\",\n        \"message\": \"Price higher than MRP of the product\",\n        \"details\": \"inventory price cannot be higher than product MRP price\"\n    }\n}"},{"id":"d2ccc95d-e929-45b8-9f2b-bc01a47df834","name":"error - Trying to update the price of public products in inventory","originalRequest":{"method":"POST","header":[{"key":"clientsecret","value":"{{client_secret}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shop_id\": 448,\n    \"sku\":\"4444\",\n    \"selling_price\":\"350\",\n    \"priority\":5,\n    \"is_enabled\": true,\n    \"is_scheduled\": \"true\",\n    \"mrp\":505,\n  \n    \"available_days\":{\n   \n\n    \"wed\":{\n        \"start_time\":\"10:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"thu\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"fri\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"sat\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    }\n    }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}inventory/update/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"180"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"\",\n    \"data\": {},\n    \"is_success\": false,\n    \"error\": {\n        \"code\": \"QS443\",\n        \"message\": \"Cant Update the MRP of Public Product\",\n        \"details\": \"MRP update is only available for private products\"\n    }\n}"},{"id":"bfd8dadb-c5a8-437d-990c-d04001ae5fab","name":"error - No Field to update in request body","originalRequest":{"method":"POST","header":[{"key":"clientsecret","value":"{{client_secret}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shop_id\": 448,\n    \"sku\":\"2222\"\n\n}\n","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}inventory/update/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"173"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"\",\n    \"data\": {},\n    \"is_success\": false,\n    \"error\": {\n        \"code\": \"QS400\",\n        \"message\": \"No fields to update\",\n        \"details\": \"please add any inventory attribute in request body to update\"\n    }\n}"},{"id":"4eccb155-63d4-4984-92d4-9cda6e0f57bb","name":"error - Unwanted fields in request","originalRequest":{"method":"POST","header":[{"key":"clientsecret","value":"{{client_secret}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shop_id\": 448,\n    \"sku\":\"2222\",\n    \"selling_price\":\"600\",\n    \"priority\":5,\n    \"is_enabled\": true,\n    \"is_scheduled\": \"true\",\n    \"mrp\":505,\n    \"promotion\": \"50\",\n    \"available_days\":{\n   \n    \"sun\": null,\n    \"wed\":{\n        \"start_time\":\"01:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"thu\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"fri\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"sat\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    }\n    }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}inventory/update/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"262"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"\",\n    \"data\": {},\n    \"is_success\": false,\n    \"error\": {\n        \"code\": \"QS403\",\n        \"message\": \"missing or mispelled fields, please check the documentaion for a valid request body format to update an inventory\",\n        \"details\": {\n            \"non_field_errors\": [\n                \"Unwanted fields found: promotion\"\n            ]\n        }\n    }\n}"},{"id":"fbb96b9b-a82b-4f1c-b4a5-9f824db9f0db","name":"error - Trying to Update the disabled inventory","originalRequest":{"method":"POST","header":[{"key":"clientsecret","value":"{{client_secret}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shop_id\": 448,\n    \"sku\":\"2222\",\n    \"selling_price\":\"350\",\n    \"priority\":5,\n\n    \"is_scheduled\": \"true\",\n    \"mrp\":505,\n  \n    \"available_days\":{\n   \n\n    \"wed\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"thu\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"fri\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"sat\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    }\n    }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}inventory/update/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"238"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"\",\n    \"data\": {},\n    \"is_success\": false,\n    \"error\": {\n        \"code\": \"QS441\",\n        \"message\": \"Inventory items must be enabled to update\",\n        \"details\": \"Inactive inventory items cannot be updated, Please update the inventory status to update its attributes\"\n    }\n}"},{"id":"d18cfa07-b035-4c43-8ca2-dce8610c7624","name":"error- Trying to update available days when sheduling is disabled","originalRequest":{"method":"POST","header":[{"key":"clientsecret","value":"{{client_secret}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shop_id\": 448,\n    \"sku\":\"2222\",\n    \"selling_price\":\"350\",\n    \"priority\":5,\n    \"is_enabled\": true,\n    \"is_scheduled\": false,\n    \"mrp\":505,\n  \n    \"available_days\":{\n   \n\n    \"wed\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"thu\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"fri\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"sat\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    }\n    }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}inventory/update/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"234"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"\",\n    \"data\": {},\n    \"is_success\": false,\n    \"error\": {\n        \"code\": \"QS460\",\n        \"message\": \"Cant Update available days if inventory scheduling is not active\",\n        \"details\": \"Please make sure inventory scheduling is enable to update the available days\"\n    }\n}"},{"id":"5bea45ba-8a58-409d-8fec-afb458d3038f","name":"error - Invalid shop id","originalRequest":{"method":"POST","header":[{"key":"clientsecret","value":"{{client_secret}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"shop_id\": 4499,\n    \"sku\":\"2222\",\n    \"selling_price\":\"350\",\n    \"priority\":5,\n    \"is_enabled\": true,\n    \"is_scheduled\": false,\n    \"mrp\":505,\n  \n    \"available_days\":{\n   \n\n    \"wed\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"thu\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"fri\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    },\n    \"sat\":{\n        \"start_time\":\"11:15\",\n        \"end_time\":\"12:15\"\n    }\n    }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}inventory/update/"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"179"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"\",\n    \"data\": {},\n    \"is_success\": false,\n    \"error\": {\n        \"code\": \"QS470\",\n        \"message\": \"Please enter a valid shop id\",\n        \"details\": \"Please enter a valid shop id provided by QWQER SHOP admin\"\n    }\n}"}],"_postman_id":"35b403b7-e3d2-4b7d-bf27-801943504f0d"}]}