{"info":{"_postman_id":"1df1f4d6-fb49-4b16-b64a-bf6000c6df21","name":"GST API Collection","description":"<html><head></head><body><p>StartFragmentThe GST Calculation API enables users to quickly calculate the tax amount based on <strong>HSN code</strong>, <strong>price</strong>, and <strong>quantity</strong>. By providing these inputs, users receive an instant response with the calculated tax, making it easy to integrate GST calculations into applications for e-commerce, billing, and other sales platformsEndFragment.</p>\n<p>To get <strong>x-code.</strong> Go to account section and get your authorization token</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"21304751","collectionId":"1df1f4d6-fb49-4b16-b64a-bf6000c6df21","publishedId":"2sAY4xAgk6","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-11-02T16:50:46.000Z"},"item":[{"name":"GST Calculation","id":"ff910a75-fc30-4b12-a913-96c402ceb1b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"data\": [\r\n        {\r\n            \"price\": 1000,\r\n            \"name\": \"Jacket\",\r\n            \"hsnCode\": \"6101\",\r\n            \"quantity\": 1\r\n        }\r\n    ] \r\n}","options":{"raw":{"language":"json"}}},"url":"https://smler.in/api/v1/gst","description":"<h3 id=\"post-apiv1gst\">POST /api/v1/gst</h3>\n<p>This endpoint is used to calculate the Goods and Services Tax (GST) for the provided items.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>Type: JSON</p>\n</li>\n<li><p>Description: The request should contain an array of items with their price, name, HSN code, and quantity.</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>price</td>\n<td>number</td>\n<td>The price of the item</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>The name of the item</td>\n</tr>\n<tr>\n<td>hsnCode</td>\n<td>string</td>\n<td>The Harmonized System Nomenclature (HSN) code of the item</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>number</td>\n<td>The quantity of the item</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response\">Response</h4>\n<p>The response is in JSON format and includes the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"itemLevelTax\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"price\": { \"type\": \"number\" },\n          \"name\": { \"type\": \"string\" },\n          \"hsnCode\": { \"type\": \"string\" },\n          \"quantity\": { \"type\": \"number\" },\n          \"tax\": { \"type\": \"number\" },\n          \"taxPercentage\": { \"type\": \"string\" },\n          \"description\": { \"type\": \"string\" }\n        }\n      }\n    },\n    \"summary\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"subTotal\": { \"type\": \"number\" },\n        \"totalTax\": { \"type\": \"number\" },\n        \"total\": { \"type\": \"number\" }\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-code"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"1df1f4d6-fb49-4b16-b64a-bf6000c6df21","id":"1df1f4d6-fb49-4b16-b64a-bf6000c6df21","name":"GST API Collection","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","gst"],"host":["smler","in"],"query":[],"variable":[]}},"response":[{"id":"0ae7f1c7-34b2-42de-ad7f-560f69bca57c","name":"Example Request","originalRequest":{"method":"POST","header":[{"key":"x-code","value":"<x-code from account>","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": [\r\n        {\r\n            \"price\": 400.39,\r\n            \"name\": \"Pantry Item\",\r\n            \"hsnCode\": \"532992\",\r\n            \"quantity\": 5\r\n        }\r\n    ] \r\n}","options":{"raw":{"language":"json"}}},"url":"https://smler.in/api/v1/gst"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Sat, 02 Nov 2024 16:46:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"260"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"itemLevelTax\": [\n        {\n            \"price\": 400.39,\n            \"name\": \"Pantry Item\",\n            \"hsnCode\": \"532992\",\n            \"quantity\": 5,\n            \"tax\": 100.1,\n            \"taxPercentage\": \"5\",\n            \"description\": \"MEAT OF BOVINE ANIMALS, FROZEN CARCASSES AND HALF-CARCASSES\"\n        }\n    ],\n    \"summary\": {\n        \"subTotal\": 2001.95,\n        \"totalTax\": 100.1,\n        \"total\": 2102.05\n    }\n}"}],"_postman_id":"ff910a75-fc30-4b12-a913-96c402ceb1b6"}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-code"},{"key":"value","value":"<value>"}]}},"event":[{"listen":"prerequest","script":{"id":"3705c0a0-57b2-47ad-84b6-264b6615ea0c","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"694995d9-4132-487f-9734-1f333f065e7b","type":"text/javascript","packages":{},"exec":[""]}}]}