{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"78e3f55c-1c34-49b9-92cf-27a93ab76329","name":"OMS API Documentation","description":"# 📄 Problem Statement\n\nWe will outline the number of requests that will be used by other external services to obtain information from the OMS.\n\nPlease note that this is a work in progress item as the response to a few of the core APIs are dependent on third party services. Therefore the response schema may change based on business need, however we will ensure that it will not change drastically.\n\n## Overall Flow Diagram\n\n<img src=\"https://content.pstmn.io/ec87db82-28fc-494c-a6b2-f4bb952550c2/VlMgU3lzdGVtICgxKS5wbmc=\">\n\n## Overall Architecture Diagram\n\n<img src=\"https://content.pstmn.io/7f9d9678-a357-4dff-afa8-133b860471db/U2NyZWVuc2hvdCAyMDI0LTAzLTAzIGF0IDExLjQ3LjAy4oCvUE0ucG5n\" width=\"1806\" height=\"1366\">\n\n## 🔖 API details\n\n- Get authenticated user\n    \n- Validate GSTIN\n    \n- Get Serviceability\n    \n- Block Inventory\n    \n- Create Order\n    \n- Get Orders\n    \n- Get SIngle Order\n    \n- Item by Id\n    \n- Get Order Status\n    \n- Download Invoice\n    \n- NotifyMe\n    \n- Pre Register\n    \n- Cancel Order\n    \n\n---\n\n## **Getting started guide**\n\nTo start using the OMS, you need to:\n\n- To generate your token for authentication you must generate it using the credentials shared by the team.\n    \n- The token has a validity of 7 days.\n    \n- The API only responds to HTTPS-secured communications. Any requests sent via HTTP return an HTTP 301 redirect to the corresponding HTTPS resources.\n    \n- The API returns request responses in JSON format. When an API request returns an error, it is sent in the JSON response as an error key.\n    \n\n## Authentication\n\nOMS uses tokens for authentication. You can generate a token using the credentials shared with you by the Vijay Sales team. You must include the token in the header of each request to the Postman API with the Bearer Token request header.\n\nThere are two ways in which you can authenticate:\n\n1. **Using the Generated Token:**\n    \n    - Generate a token using the provided credentials.\n        \n    - Include this token in the Bearer Token request header for each request.\n        \n2. **Using the VS-Partner-API-Key:**\n    \n    - Use the `vs-partner-apikey` provided by Vijay Sales.\n        \n    - Include the provided token (not the generated API token) in the request header.\n        \n\n### Authentication error response\n\nIf an API key is missing, malformed, or invalid, you will receive an HTTP 401 Unauthorized response code.\n\n## Additional Headers\n\nThere are a few extra headers that need to be configured to each of the request for it to be allowed to hit our end points.\n\nThose headers are as follows:\n\n| Header | Description |\n| --- | --- |\n| `Content-Type` | Defining the content type of the request and response |\n| `X-Parse-Application-Id` | The app Id to connect to the systems. |\n| `X-Parse-REST-API-Key` | The application key allowing enablement of the requester for the REST APIs |\n| `X-Partner-Apikey` | This header to ideantify the OMS user |\n\n### 503 response\n\nAn HTTP `503` response from our servers indicates there is an unexpected spike in API access traffic. The server is usually operational within the next five minutes. If the outage persists or you receive any other form of an HTTP `5XX` error, [contact support](https://support@vijaysales.systems).\n\n## List of Error and Status Code\n\nThese are the list of status codes given in the error response depending on the type of error:\n\nStartFragment\n\n| RESPONSE CODE | DESCRIPTION |\n| --- | --- |\n| 200 | OK : Everything worked as expected. The response is displayed or the processing starts. Some APIs may respond with an error message if data is invalid. |\n| 400 | Bad Request: The request was unacceptable, often due to missing a required parameter. |\n| 401 | Unauthorized: There is some error in validation. You need to check your token or credentials. |\n| 404 | Not Found: The URL is inaccessible. This is either due to the wrong URL input or the resource being deprecated. |\n| 405 | Method Not Allowed: Trying to access a route not allowed to you |\n| 422 | Unprocessable Entity: The request contains incorrect syntax or cannot be fulfilled. Try checking your code for errors. |\n| 429 | Too Many Requests: Too many hits were attempted at the API too quickly. Provide the API some time to process. |\n| 500, 502, 503, 504 | Server Errors: Some server error occurred. Some APIs may show this due to syntax or parameter errors. Try contacting support if this persists. |","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"33774370","team":6114319,"collectionId":"78e3f55c-1c34-49b9-92cf-27a93ab76329","publishedId":"2sA3BgAb6q","public":true,"publicUrl":"https://developers.vijaysales.systems","privateUrl":"https://go.postman.co/documentation/33774370-78e3f55c-1c34-49b9-92cf-27a93ab76329","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":"https://content.pstmn.io/31317014-3e79-4bd9-85ce-b14ab2fb1dcb/dnMtbG9nby5wbmc=","colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":"https://content.pstmn.io/31317014-3e79-4bd9-85ce-b14ab2fb1dcb/dnMtbG9nby5wbmc=","colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"}}]}},"version":"8.10.0","publishDate":"2024-04-11T05:08:16.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":""},"logos":{"logoLight":"https://content.pstmn.io/31317014-3e79-4bd9-85ce-b14ab2fb1dcb/dnMtbG9nby5wbmc=","logoDark":"https://content.pstmn.io/31317014-3e79-4bd9-85ce-b14ab2fb1dcb/dnMtbG9nby5wbmc="}},"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/640094746720a2f3bd4eb9ac14fab8ce37682fa79c44e1f2fa8bd1af6f71de60","favicon":"https://vijaysales.systems/favicon.ico"},"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://developers.vijaysales.systems/view/metadata/2sA3BgAb6q"}