{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"aec709a3-7366-4652-935c-8bccc365f565","name":"QSHOP API V2","description":"# QSHOP API Documentation\n\n## Introduction\n\nQSHOP 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.\n\n## Getting Started\n\n## Base URL and Authentication\n\n### Base URL\n\nThe base URL for accessing the Delivery Order APIs is `https://stage-api.qwqer.in/shop/v2/`\n\n### Authentication\n\nAll 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\n\n### Sample Authorization Header\n\n``` python\nclientsecret: YOUR_CLIENT_SECRET\n\n ```\n\n## Setting Up Postman Environment\n\n1. Click the 'Manage Environments' button located on the right side of the Postman interface.\n    \n\n1. In the popup, click the 'Add' button.\n2. In the following screen, provide the environment name and define the following environment variables along with their values:\n    - `BASE_URL`\n    - `client_secret`\n3. Click the 'Save' button to create the new environment.\n4. The new environment is now available. To use it, select the created environment from the environment dropdown.\n    \n\n<img src=\"https://content.pstmn.io/fa2504a6-d4bf-49b0-808c-6cfb4a473c1b/U2NyZWVuc2hvdCBmcm9tIDIwMjQtMDEtMTEgMDEtNTktNDUucG5n\">\n\nBy 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.\n\n## Variables Reference\n\nThe collection relies on the following variables:\n\n**Note:** Not every folder needs all of the variables. Look at the documentation of each folder for specific details\n\n| Variable | Description | Where to find it? (Some assume trial webstore) |\n| --- | --- | --- |\n| `BASE_URL` | The base URL for the API end point. | The base URL is the common prefix shared by all API endpoints. |\n| `client_secret` | client secret is an unique secret key used for authentication | client secret is obtained by the merchant during the merchant on boarding process or you can request QWQER |\n\n## Error Codes and details:\n\n| Code | Status Code | Message | Details |\n| --- | --- | --- | --- |\n| QS400 | 401 | No API key is provided. | Please pass your API key in the header in 'ClientSecret' key. |\n| QS401 | 401 | Invalid API key. | The API key provided in the header is invalid. |\n| QS402 | 401 | Merchant account is blocked. | Your account is blocked; please contact the QWQER administrator. |\n| QS404 | 400 | Inventory with that SKU does not exist. | Please check whether SKU is mapped with QWQER shop. |\n| QS407 | 400 | Missing or mispelled fields, please check the documentation for a valid request body format to update an inventory. | Details depend on the field errors committed. |\n| QS405 | 400 | Shop is closed on that day to update available day. | Shop is closed on the selected day. Can't update Available on shop closed day. |\n| QS406 | 400 | Inventory times should be within the shop's working hours. | Please check whether the inventory scheduled time is within the available time of the shop. |\n| QS499 | 400 | Price higher than MRP of the product. | Inventory price cannot be higher than the product MRP price. |\n| QS400 | 400 | No fields to update. | Please add any inventory attribute in the request body to update. |\n| QS470 | 400 | Invalid shop ID. | Please enter a valid shop ID provided by QWQER SHOP admin. |\n| QS443 | 400 | Can't update the MRP of Public Product. | MRP update is only available for private products. |\n| QS441 | 400 | Inventory items must be enabled to update. | Inactive inventory items cannot be updated. Please update the inventory status to update its attributes. |\n| QS460 | 400 | Can't update available days if inventory scheduling is not active. | Please make sure inventory scheduling is enabled to update the available days. |","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"17043909","team":5918982,"collectionId":"aec709a3-7366-4652-935c-8bccc365f565","publishedId":"2s9YsNcV39","public":true,"publicUrl":"https://documenter-api.postman.tech/view/17043909/2s9YsNcV39","privateUrl":"https://go.postman.co/documentation/17043909-aec709a3-7366-4652-935c-8bccc365f565","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":""},{"name":"title","value":""}],"appearance":{"default":"light","themes":[{"name":"dark","logo":null,"colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":null,"colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"}}]}},"version":"8.10.1","publishDate":"2024-01-12T10:45:04.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":""},"logos":{"logoLight":null,"logoDark":null}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/a1964595af5c7bc27a53c0559f5fa90647c384aecd06b145cdc17f2060c6b2bf","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2s9YsNcV39"}