{"info":{"_postman_id":"d7a6cf28-9cbd-42fd-8ef9-3d3e02c71a37","name":"Tapsi Shop API Documents","description":"<html><head></head><body><p>This document is prepared for the automatic update of prices and inventory of pre-made items by the seller. The usage steps are as follows:</p>\n<p><strong>Version 1.0.0.2</strong> -&gt; <strong>Initially</strong>, a Token is obtained from Tapsi Shop. <strong>Secondly</strong>, This Token is used to call the API and update the price and the inventory of requested products.</p>\n<p><strong>Attention:</strong></p>\n<p>PLEASE JUST USE UPDATE PRODUCTS FOR INITIAL USES. WE WILL GIVE YOU UPDATED INSTRUCTIONS FOR FURTHERUSE OF GET PRODUCTS.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"17255341","collectionId":"d7a6cf28-9cbd-42fd-8ef9-3d3e02c71a37","publishedId":"2sAXxS8rZ9","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-10-13T08:49:25.000Z"},"item":[{"name":"Version 2","item":[{"name":"Products","item":[{"name":"Update Products","id":"b36d83fb-485e-4ec1-8e5d-e06f5a055a13","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PUT","header":[{"key":"accept","value":"text/plain"},{"key":"client-name","value":"Swagger on HIT.Hastim.Hub.Endpoints.WebApi"},{"key":"client-version","value":"1.0.0.0"},{"key":"Content-Type","value":"application/json"},{"key":"TapsiShop.Hub.Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"products\": [\r\n    {\r\n      \"id\": \"the sku of your product\",\r\n      \"stock\": 10,\r\n      \"price\": 20000,\r\n      \"specialprice\": 10000,\r\n      \"referenceCode\": \"your request reference code\"\r\n    }\r\n  ]\r\n}"},"url":"https://vendorgw.tapsi.shop/web/hub/vendors/v1/products","urlObject":{"protocol":"https","path":["web","hub","vendors","v1","products"],"host":["vendorgw","tapsi","shop"],"query":[{"disabled":true,"description":{"content":"<p>SKU of the Product You are Updating</p>\n","type":"text/plain"},"key":"id","value":""},{"disabled":true,"description":{"content":"<p>New Inventory of the Product</p>\n","type":"text/plain"},"key":"stock","value":""},{"disabled":true,"description":{"content":"<p>Original Price of Product</p>\n","type":"text/plain"},"key":"price","value":""},{"disabled":true,"description":{"content":"<p>After Discount Price of Product</p>\n","type":"text/plain"},"key":"specialprice","value":""},{"disabled":true,"description":{"content":"<p>This parameter is used as an input in our system. It is echoed back to the requester when generating the output, ensuring that the original reference code provided is included in the response.</p>\n","type":"text/plain"},"key":"referenceCode","value":null}],"variable":[]}},"response":[],"_postman_id":"b36d83fb-485e-4ec1-8e5d-e06f5a055a13"},{"name":"Get Products","id":"f1a8fba8-5f08-418f-8caa-0e91d95a988f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"accept","value":"text/plain"},{"key":"client-name","value":"Swagger on HIT.Hastim.Hub.Endpoints.WebApi"},{"key":"client-version","value":"1.0.0.0"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"TapsiShop.Hub.Authorization","value":"{{token}}","type":"text"}],"url":"https://vendorgw.tapsi.shop/web/hub/vendors/v1/products/1/10","urlObject":{"protocol":"https","path":["web","hub","vendors","v1","products","1","10"],"host":["vendorgw","tapsi","shop"],"query":[{"disabled":true,"description":{"content":"<p>page</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>page size</p>\n","type":"text/plain"},"key":"pageSize","value":""}],"variable":[]}},"response":[],"_postman_id":"f1a8fba8-5f08-418f-8caa-0e91d95a988f"}],"id":"e45d00f9-efef-498a-bc5f-3feea6f9fcc0","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"fd2852db-91ad-4c1c-b84b-b1c67d7afc5d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"887c0eec-d40c-458d-8a73-0caf485408dc","type":"text/javascript","exec":[""]}}],"_postman_id":"e45d00f9-efef-498a-bc5f-3feea6f9fcc0","description":""},{"name":"Auth","item":[{"name":"Refresh Token","id":"2536e97c-118c-4906-9200-62f672e1520e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"accept","value":"text/plain"},{"key":"client-name","value":"Swagger on HIT.Hastim.Hub.Endpoints.WebApi"},{"key":"client-version","value":"1.0.0.0"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"token\": \"your token\",\r\n  \"name\": \"your token name\",\r\n  \"storeId\": \"your store id in tapsi shop\",\r\n  \"revokeCurrentToken\": false,\r\n  \"expiredAt\": \"2024-10-13T08:27:07.880Z\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://vendorgw.tapsi.shop/Web/Hub/vendors/v1/refresh-token","description":"<p>Generated from cURL: curl -X 'POST'<br />'<a href=\"https://vendorgw.tapsi.shop/Web/Hub/vendors/v1/refresh-token'\">https://vendorgw.tapsi.shop/Web/Hub/vendors/v1/refresh-token'</a><br />-H 'accept: text/plain'<br />-H 'client-name: Swagger on HIT.Hastim.Hub.Endpoints.WebApi'<br />-H 'client-version: 1.0.0.0'<br />-H 'Content-Type: application/json'<br />-d '{<br />\"token\": \"your token\",<br />\"name\": \"your new token name\",<br />\"storeId\": \"your store id in tapsi shop\",<br />\"revokeCurrentToken\": false,<br />\"expiredAt\": \"2024-12-13T08:27:07.880Z\"<br />}'</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"d62e8baf-1deb-4a4d-af66-5e9d6ddd4bde","id":"d62e8baf-1deb-4a4d-af66-5e9d6ddd4bde","name":"Version 2","type":"folder"}},"urlObject":{"protocol":"https","path":["Web","Hub","vendors","v1","refresh-token"],"host":["vendorgw","tapsi","shop"],"query":[{"disabled":true,"key":"token","value":"your token"},{"disabled":true,"key":"name","value":"your new token name"},{"disabled":true,"key":"storeId","value":"your store id in tapsi shop"},{"disabled":true,"key":"revokeCurrentToken","value":"expire current token if it's set to true"},{"disabled":true,"key":"expiredAt","value":"expire new token at this time"}],"variable":[]}},"response":[],"_postman_id":"2536e97c-118c-4906-9200-62f672e1520e"}],"id":"ca3cb9d1-ff55-4451-9076-9ba6a3ff19a4","_postman_id":"ca3cb9d1-ff55-4451-9076-9ba6a3ff19a4","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"d62e8baf-1deb-4a4d-af66-5e9d6ddd4bde","id":"d62e8baf-1deb-4a4d-af66-5e9d6ddd4bde","name":"Version 2","type":"folder"}}}],"id":"d62e8baf-1deb-4a4d-af66-5e9d6ddd4bde","description":"<p>In this version 1.0.0.2, it is possible to update the following items:<br />1- Inventory in the warehouse -&gt; <strong>{stock}</strong><br />2- The initial and main price -&gt; <strong>{price}</strong><br />3- The seller's final price (after discount) specialprice -&gt; <strong>{specialprice}</strong></p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"e2a229a0-a6d8-4793-80aa-f0b3a87c6d9e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9b5846fb-5805-4ee9-9bb0-e2e6f93811d0","type":"text/javascript","exec":[""]}}],"_postman_id":"d62e8baf-1deb-4a4d-af66-5e9d6ddd4bde"}],"event":[{"listen":"prerequest","script":{"id":"625f0885-cfc3-49d0-8866-4e6caae47876","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7d96e999-8275-4a2f-90bb-9684890f9c36","type":"text/javascript","exec":[""]}}],"variable":[{"id":"fe343a3b-05d2-44f4-bb51-be9a6db23084","key":"{{token}}","value":"your token","type":"string"}]}