{"info":{"_postman_id":"b1f86fc4-0e9e-4dd4-b70f-4b46dfbec65c","name":"Pragma Custom Integration","description":"<html><head></head><body><h1 id=\"version-10\">Version 1.0</h1>\n<img src=\"https://logisy.tech/apistatic/images/pragma_600.png\" alt=\"alt text\">\n\n<h1 id=\"introduction\">Introduction</h1>\n<p>Pragma is an automata designed for your e-commerce site's growth. It provides all the tools you would need to monitor your orders and increase profitability. Pragma can be integrated to your store via REST APIs and the following document explains the same.</p>\n<h1 id=\"getting-started\">Getting Started</h1>\n<p>Get started by <a href=\"https://bepragma.ai\">registering</a> with us. Once we confirm your account, you will be able to create an API token. This token needs to be sent via each request. Upon this, Pragma will communicate to your server via various APIs and webhooks. There are few javascript libraries that also need to be installed in your site for Pragma to work.</p>\n<p>Here is a checklist of things that you need to take care of</p>\n<ul>\n<li><p>Create API token</p>\n</li>\n<li><p>Implement Abandoned Checkout APIs &amp; webhooks</p>\n</li>\n<li><p>Implement Orders APIs &amp; webhooks</p>\n</li>\n<li><p>Implement Products APIs &amp; webhooks</p>\n</li>\n<li><p>Implement Coupons APIs &amp; webhooks</p>\n</li>\n<li><p>Install javascript libraries</p>\n</li>\n</ul>\n<h1 id=\"objects\">Objects</h1>\n<p>Pragma APIs and webhooks depend on various objects for server to server communication. Each object has been mentioned below along with their properties. You can also have a basic understanding of their relationships by looking at the ER diagram below.</p>\n<img src=\"https://logisy.s3.amazonaws.com/documentation_images/ERDiagram.jpg\" alt=\"alt text\"></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Version 1.0","slug":"version-10"},{"content":"Introduction","slug":"introduction"},{"content":"Getting Started","slug":"getting-started"},{"content":"Objects","slug":"objects"}],"owner":"9962170","collectionId":"b1f86fc4-0e9e-4dd4-b70f-4b46dfbec65c","publishedId":"TVK5eMvX","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"D35B56"},"publishDate":"2020-09-13T15:07:42.000Z"},"item":[{"name":"Addresses","item":[],"id":"95739247-3147-4214-84a3-381c9e585d72","description":"<p>Addresses are created during the creation of a <code>order</code> or <code>abandoned checkout</code> object (see below for more info) and there is no direct way to interact with <code>address</code> objects. An address may represent a customer's default address, billing address or shipping address.</p>\n<hr />\n<h2 id=\"address-object\">Address Object</h2>\n<p>The following is the structure of the <code>address</code> object</p>\n<ul>\n<li><strong>zip (str):</strong> Pin / zip code of the location</li>\n<li><strong>city (str):</strong> City</li>\n<li><strong>phone (str):</strong> Customer's phone number</li>\n<li><strong>country (str):</strong> Country</li>\n<li><strong>default (bool):</strong> Whether this is the customer's default address or not</li>\n<li><strong>address1 (str):</strong> Line one of customer's address</li>\n<li><strong>address2 (str):</strong> Line two of customer's address</li>\n<li><strong>province (str):</strong> State or province of the address</li>\n<li><strong>country_code (str):</strong> Country code (e.g.: IN)</li>\n<li><strong>province_code (str):</strong> State / province's code (e.g.: DL)</li>\n<li><strong>latitude (dec, optional):</strong> The latitude of the location</li>\n<li><strong>longitude (dec, optional):</strong> The longitude of the location</li>\n</ul>\n<h2 id=\"example-object\">Example Object</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"id\": \"4824720729506\",\n    \"zip\": \"110000\",\n    \"city\": \"New Delhi\",\n    \"phone\": \"+919880000000\",\n    \"country\": \"India\",\n    \"default\": true,\n    \"address1\": \"Address line 1\",\n    \"address2\": \"Address line 2\",\n    \"province\": \"Delhi\",\n    \"country_code\": \"IN\",\n    \"country_name\": \"India\",\n    \"province_code\": \"DL\",\n    \"latitude\": 76.99874,\n    \"longitude\": 78.773522\n}\n</code></pre>","event":[{"listen":"prerequest","script":{"id":"3ffb53a8-6606-4008-abf5-451683fc6a53","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"da7442f7-7bad-48d5-9668-504e39365edf","type":"text/javascript","exec":[""]}}],"_postman_id":"95739247-3147-4214-84a3-381c9e585d72"},{"name":"Line Items","item":[],"id":"f19d7fd1-8179-4b85-93a3-a526c8bb5c0d","description":"<p>Line items are basically a product's or a product variant's representation in an <code>abandoned_checkout</code> or an <code>order</code> object. Each line item represents one product / variant.</p>\n<hr />\n<h2 id=\"line-item-object\">Line Item Object</h2>\n<p>The following is the structure of the <code>line_item</code> object</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><strong>id (str):</strong> A unique id assigned by your store's system</li>\n<li><strong>sku (str):</strong> The SKU of the product / variant in the line item</li>\n<li><strong>name (str):</strong> The title of the product along with name of the variant</li>\n<li><strong>title (str):</strong> The title of the product</li>\n<li><strong>grams (int):</strong> The weight of the item in grams</li>\n<li><strong>total_tax (str):</strong> The total tax amount for this line item</li>\n<li><strong>total_discounts (str):</strong> The total discount amount for this line item</li>\n<li><strong>price_without_tax (str):</strong> The price of the line item without taxes or coupons being applied</li>\n<li><strong>total_price (str):</strong> The price of the line item with taxes</li>\n<li><strong>quantity (int):</strong> The quantity of the product / variant being purchased</li>\n<li><strong>product_id (str):</strong> The id of the <code>product</code> (see below)</li>\n<li><strong>variant_id (str):</strong> The id of the <code>variant</code> (see below)</li>\n</ul>\n<h3 id=\"example-object\">Example Object</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"id\": \"2349854027448\",\n    \"sku\": \"7JHD8893 BLUE STRIPE TEE SHIRT 04 M\",\n    \"name\": \"Stripe Tee Shirt - M / Blue\",\n    \"title\": \"Stripe Tee Shirt\",\n    \"grams\": 1200,\n    \"total_tax\": \"99.00\",\n    \"total_discounts\": \"0.00\",\n    \"price_without_tax\": \"1000.00\",\n    \"total_price\": \"1099.00\",\n    \"quantity\": 2,\n    \"product_id\": \"5684027447458\",\n    \"variant_id\": \"36047249860194\"\n}\n</code></pre>","event":[{"listen":"prerequest","script":{"id":"e98b402e-a3e3-44cf-a54d-d67cf33cb116","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"19b717d3-511c-4b6a-b6b5-2915aa1a9251","type":"text/javascript","exec":[""]}}],"_postman_id":"f19d7fd1-8179-4b85-93a3-a526c8bb5c0d"},{"name":"Abandoned Checkouts","item":[{"name":"Pragma APIs / Webhooks","item":[{"name":"Create Abandoned Checkout API","id":"347b3ea7-1843-436b-b9db-7cb246df1635","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Key","type":"text","value":"{{API_KEY}}"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"14689130810850\",\n    \"note\": \"Some abandoned checkout related note\",\n    \"tags\": \"some_tag,yet_another_tag\",\n    \"first_name\": \"Jane\",\n    \"last_name\": \"Doe\",\n    \"email\": \"janedoe@somesite.com\",\n    \"phone\": \"+919880000000\",\n    \"created_at\": \"2020-09-12T13:53:17+05:30\",\n    \"line_items\": [\n        {\n            \"id\": \"2349854027448\",\n            \"sku\": \"7JHD8893 BLUE STRIPE TEE SHIRT 04 M\",\n            \"name\": \"Stripe Tee Shirt - M / Blue\",\n            \"title\": \"Stripe Tee Shirt\",\n            \"grams\": 1200,\n            \"total_tax\": \"99.00\",\n            \"total_discounts\": \"0.00\",\n            \"price_without_tax\": \"1000.00\",\n            \"total_price\": \"1099.00\",\n            \"quantity\": 2,\n            \"product_id\": \"5684027447458\",\n            \"variant_id\": \"36047249860194\"\n        },\n        {\n            \"id\": \"2349854027501\",\n            \"sku\": \"7JHD8893 BLUE STRIPE TEE SHIRT 04 M\",\n            \"name\": \"Stripe Tee Shirt - M / Green\",\n            \"title\": \"Stripe Tee Shirt\",\n            \"grams\": 1300,\n            \"total_tax\": \"99.00\",\n            \"total_discounts\": \"0.00\",\n            \"price_without_tax\": \"1000.00\",\n            \"total_price\": \"1099.00\",\n            \"quantity\": 1,\n            \"product_id\": \"5684027447458\",\n            \"variant_id\": \"36047249860194\"\n        }\n    ],\n    \"source_name\": \"web\",\n    \"currency\": \"INR\",\n    \"total_tax\": \"99.00\",\n    \"total_discounts\": \"0.00\",\n    \"price_without_tax\": \"1000.00\",\n    \"total_price\": \"1099.00\",\n    \"discount_codes\": [\n        \"DIWALI123\",\n        \"FLAT500OFF\"\n    ],\n    \"shipping_address\": {\n        \"id\": \"4824720729506\",\n        \"zip\": \"110000\",\n        \"city\": \"New Delhi\",\n        \"phone\": \"+919880000000\",\n        \"country\": \"India\",\n        \"default\": true,\n        \"address1\": \"Address line 1\",\n        \"address2\": \"Address line 2\",\n        \"province\": \"Delhi\",\n        \"country_code\": \"IN\",\n        \"country_name\": \"India\",\n        \"province_code\": \"DL\",\n        \"latitude\": 76.99874,\n        \"longitude\": 78.773522\n    },\n    \"abandoned_checkout_url\": \"https://yourstore.com/checkouts/14689130810850/recover\",\n    \"device_id\": \"uisd67834iuiu5489\",\n    \"referring_site\": \"https://facebook.com/some-campaign/\",\n    \"browser_ip\": \"192.168.0.145\"\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/api/stores/abandoned-checkout/create/","description":"<p>Create an Abandoned Object in Logisy by calling the following API.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<ul>\n<li><strong>abandoned_checkout (<code>abandoned_checkout</code> obj):</strong> The <code>abandoned_checkout</code> obj (see above for reference)</li>\n</ul>\n","urlObject":{"path":["api","stores","abandoned-checkout","create",""],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"347b3ea7-1843-436b-b9db-7cb246df1635"}],"id":"ebba611c-bfc1-425e-9a6f-a7925ef2634f","description":"<p>The following list of APIs/webhooks are provided by Logisy so that your system can push abandoned checkout related data and events to Logisy's.</p>\n","event":[{"listen":"prerequest","script":{"id":"7db9e16a-b24d-4c4b-aaeb-fe54096c2cc9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"40acc29b-4710-424b-bca4-37c6c769a480","type":"text/javascript","exec":[""]}}],"_postman_id":"ebba611c-bfc1-425e-9a6f-a7925ef2634f"},{"name":"Client-side APIs / Webhooks","item":[{"name":"Abandoned Checkout API","id":"dcf8e322-89bc-4a64-a955-3a45d39f1067","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-Key","value":"{{API_KEY}}","type":"text"}],"url":"https://your-store.com/your-abandoned-checkout-api-url?id=14689130810850","description":"<p>This API is required so that Logisy can pull abandoned_checkout data for one particular abandoned_checkout from your servers.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<ul>\n<li><strong>Id (str):</strong> The id of the <code>abandoned_checkout</code> to be fetched</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><strong>Expected HTTP Status Code:</strong> <code>200 OK</code></li>\n<li><strong>Response Data:</strong><ul>\n<li><strong>abandoned_checkout (<code>abandoned_checkout</code> obj):</strong> The <code>abandoned_checkout</code> which was queried</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["your-abandoned-checkout-api-url"],"host":["your-store","com"],"query":[{"key":"id","value":"14689130810850"}],"variable":[]}},"response":[{"id":"1f930f0a-ff9a-4cf5-b76c-2e8aee5f29a3","name":"Abandoned Checkout API","originalRequest":{"method":"GET","header":[{"key":"X-API-Key","value":"{{API_KEY}}","type":"text"}],"url":{"raw":"https://your-store.com/your-abandoned-checkout-api-url?id=14689130810850","protocol":"https","host":["your-store","com"],"path":["your-abandoned-checkout-api-url"],"query":[{"key":"id","value":"14689130810850"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"14689130810850\",\n    \"note\": \"Some abandoned checkout related note\",\n    \"tags\": \"some_tag,yet_another_tag\",\n    \"first_name\": \"Jane\",\n    \"last_name\": \"Doe\",\n    \"email\": \"janedoe@somesite.com\",\n    \"phone\": \"+919880000000\",\n    \"created_at\": \"2020-09-12T13:53:17+05:30\",\n    \"line_items\": [\n        {\n            \"id\": \"2349854027448\",\n            \"sku\": \"7JHD8893 BLUE STRIPE TEE SHIRT 04 M\",\n            \"name\": \"Stripe Tee Shirt - M / Blue\",\n            \"title\": \"Stripe Tee Shirt\",\n            \"grams\": 1200,\n            \"total_tax\": \"99.00\",\n            \"total_discounts\": \"0.00\",\n            \"price_without_tax\": \"1000.00\",\n            \"total_price\": \"1099.00\",\n            \"quantity\": 2,\n            \"product_id\": \"5684027447458\",\n            \"variant_id\": \"36047249860194\"\n        },\n        {\n            \"id\": \"2349854027501\",\n            \"sku\": \"7JHD8893 BLUE STRIPE TEE SHIRT 04 M\",\n            \"name\": \"Stripe Tee Shirt - M / Green\",\n            \"title\": \"Stripe Tee Shirt\",\n            \"grams\": 1300,\n            \"total_tax\": \"99.00\",\n            \"total_discounts\": \"0.00\",\n            \"price_without_tax\": \"1000.00\",\n            \"total_price\": \"1099.00\",\n            \"quantity\": 1,\n            \"product_id\": \"5684027447458\",\n            \"variant_id\": \"36047249860194\"\n        }\n    ],\n    \"source_name\": \"web\",\n    \"currency\": \"INR\",\n    \"total_tax\": \"99.00\",\n    \"total_discounts\": \"0.00\",\n    \"price_without_tax\": \"1000.00\",\n    \"total_price\": \"1099.00\",\n    \"discount_codes\": [\n        \"DIWALI123\",\n        \"FLAT500OFF\"\n    ],\n    \"shipping_address\": {\n        \"id\": \"4824720729506\",\n        \"zip\": \"110000\",\n        \"city\": \"New Delhi\",\n        \"phone\": \"+919880000000\",\n        \"country\": \"India\",\n        \"default\": true,\n        \"address1\": \"Address line 1\",\n        \"address2\": \"Address line 2\",\n        \"province\": \"Delhi\",\n        \"country_code\": \"IN\",\n        \"country_name\": \"India\",\n        \"province_code\": \"DL\",\n        \"latitude\": 76.99874,\n        \"longitude\": 78.773522\n    },\n    \"abandoned_checkout_url\": \"https://yourstore.com/checkouts/14689130810850/recover\",\n    \"device_id\": \"uisd67834iuiu5489\",\n    \"referring_site\": \"https://facebook.com/some-campaign/\",\n    \"browser_ip\": \"192.168.0.145\"\n}"}],"_postman_id":"dcf8e322-89bc-4a64-a955-3a45d39f1067"}],"id":"ed4ce667-e036-4b0a-8194-b8b86774c716","description":"<p>The following list of APIs/webhooks needs to be implemented at the store's system so that abandoned checkout data can be queried or posted by Logisy as and when needed.</p>\n<blockquote>\n<p><strong>NOTE:</strong> All the following APIs/webhooks expect <code>200 OK</code> as HTTP statuses. Anything else is consdered as an error and thus Logisy will re-try the webhooks for a maximum of three times with a gap of 1 min between each successive try. If your APIs still fail, Logisy will let you know via an email.</p>\n</blockquote>\n","event":[{"listen":"prerequest","script":{"id":"e9186857-d084-4526-9ea6-ce574b19cb8d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e3fbd2fc-73a1-4557-acc3-d1162f6bf3e6","type":"text/javascript","exec":[""]}}],"_postman_id":"ed4ce667-e036-4b0a-8194-b8b86774c716"}],"id":"6ac69238-1f00-4719-b304-87dfa0fbab8c","description":"<p>Abandoned checkouts are created when a customer leaves your site without completing an order. Meaning, the customer has added products in their cart but leaves the site just before completing the payment process.</p>\n<p>We let merchants decide when to trigger the <code>Abandoned Checkout API</code> based on their requirements. There is only one event related abandoned checkout which is mentioned in the diagram below.</p>\n<p><img src=\"https://logisy.s3.amazonaws.com/documentation_images/AbandonedCheckoutEvents.jpg\" alt /></p>\n<h2 id=\"abandoned-checkout-object\">Abandoned Checkout Object</h2>\n<p>The following is the structure of the <code>abandoned_checkout</code> Object.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><strong>id (str):</strong> A unique id assigned by your store's system</li>\n<li><strong>tags (str, optional):</strong> Tags associated with the abandoned checkout</li>\n<li><strong>note (str, optional):</strong> A note associated with the abandoned checkout</li>\n<li><strong>first_name (str):</strong> Customer's first name</li>\n<li><strong>last_name (str):</strong> Customer's last name</li>\n<li><strong>email (str):</strong> Customer's email</li>\n<li><strong>phone (str):</strong> Customer's phone</li>\n<li><strong>created_at (****<code>ISO 8601 datetime</code></strong> <strong>str):</strong> Abandoned checkout creation timestamp</li>\n<li><strong>line_items (arr of</strong> <strong><code>line_item</code>****):</strong> This is a list of products a customer has added in their cart. It is represented by an array of <code>line_item</code>s</li>\n<li><strong>source_name (str, optional):</strong> The source from where this abandoned checkout was created. Choose from: (web, mobile)</li>\n<li><strong>currency (str):</strong> The currency code. Choices are: (INR)</li>\n<li><strong>total_tax (str):</strong> The total tax amount for this abandoned checkout</li>\n<li><strong>total_discounts (str):</strong> The total discount amount for this abandoned checkout</li>\n<li><strong>price_without_tax (str):</strong> The price of the abandoned checkout without taxes being applied</li>\n<li><strong>total_price (str):</strong> The price of the abandoned checkout with taxes</li>\n<li><strong>discount_codes (arr of str, optional):</strong> An array of string containing all the discount coupon codes</li>\n<li><strong>shipping_address (****<code>address</code></strong> <strong>obj, optional):</strong> Check the <code>address</code> object</li>\n<li><strong>abandoned_checkout_url (str):</strong> The URL of the abandoned checkout which will be sent to customer while attempting to convert</li>\n<li><strong>device_id (str, optional):</strong> Device id from which this order was placed</li>\n<li><strong>referring_site (str, optional):</strong> From which external site this user was referred, if any</li>\n<li><strong>browser_ip (str, optional):</strong> IP of the browser from which the order was placed</li>\n<li><strong>brand_name (str, optional):</strong> Brand Name to be use in the Notification Messages. For example, in case of Dropshipping, you would want your client's name to be used.</li>\n</ul>\n<h3 id=\"example-object\">Example object</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"id\": \"14689130810850\",\n    \"note\": \"Some abandoned checkout related note\",\n    \"tags\": \"some_tag,yet_another_tag\",\n    \"first_name\": \"Jane\",\n    \"last_name\": \"Doe\",\n    \"email\": \"janedoe@somesite.com\",\n    \"phone\": \"+919880000000\",\n    \"created_at\": \"2020-09-12T13:53:17+05:30\",\n    \"line_items\": [\n        {\n            \"id\": \"2349854027448\",\n            \"sku\": \"7JHD8893 BLUE STRIPE TEE SHIRT 04 M\",\n            \"name\": \"Stripe Tee Shirt - M / Blue\",\n            \"title\": \"Stripe Tee Shirt\",\n            \"grams\": 1200,\n            \"total_tax\": \"99.00\",\n            \"total_discounts\": \"0.00\",\n            \"price_without_tax\": \"1000.00\",\n            \"total_price\": \"1099.00\",\n            \"quantity\": 2,\n            \"product_id\": \"5684027447458\",\n            \"variant_id\": \"36047249860194\"\n        },\n        {\n            \"id\": \"2349854027501\",\n            \"sku\": \"7JHD8893 BLUE STRIPE TEE SHIRT 04 M\",\n            \"name\": \"Stripe Tee Shirt - M / Green\",\n            \"title\": \"Stripe Tee Shirt\",\n            \"grams\": 1300,\n            \"total_tax\": \"99.00\",\n            \"total_discounts\": \"0.00\",\n            \"price_without_tax\": \"1000.00\",\n            \"total_price\": \"1099.00\",\n            \"quantity\": 1,\n            \"product_id\": \"5684027447458\",\n            \"variant_id\": \"36047249860194\"\n        }\n    ],\n    \"source_name\": \"web\",\n    \"currency\": \"INR\",\n    \"total_tax\": \"99.00\",\n    \"total_discounts\": \"0.00\",\n    \"price_without_tax\": \"1000.00\",\n    \"total_price\": \"1099.00\",\n    \"discount_codes\": [\n        \"DIWALI123\",\n        \"FLAT500OFF\"\n    ],\n    \"shipping_address\": {\n        \"id\": \"4824720729506\",\n        \"zip\": \"110000\",\n        \"city\": \"New Delhi\",\n        \"phone\": \"+919880000000\",\n        \"country\": \"India\",\n        \"default\": true,\n        \"address1\": \"Address line 1\",\n        \"address2\": \"Address line 2\",\n        \"province\": \"Delhi\",\n        \"country_code\": \"IN\",\n        \"country_name\": \"India\",\n        \"province_code\": \"DL\",\n        \"latitude\": 76.99874,\n        \"longitude\": 78.773522\n    },\n    \"abandoned_checkout_url\": \"https://yourstore.com/checkouts/14689130810850/recover\",\n    \"device_id\": \"uisd67834iuiu5489\",\n    \"referring_site\": \"https://facebook.com/some-campaign/\",\n    \"browser_ip\": \"192.168.0.145\",\n    \"brand_name\": \"Brand X\" \n}\n\n</code></pre>","event":[{"listen":"prerequest","script":{"id":"9e3c052c-2296-49cd-949d-402aec2b551a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c4db825f-8219-4bf2-b238-908d5dcce17e","type":"text/javascript","exec":[""]}}],"_postman_id":"6ac69238-1f00-4719-b304-87dfa0fbab8c"},{"name":"Orders","item":[{"name":"Pragma APIs / Webhooks","item":[{"name":"Create Order API","id":"66866394-7000-40a0-9331-0dfbc6ff1597","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Key","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"109789037879\",\n    \"sub_merchant\": null,\n    \"note\": \"Some note about this order\",\n    \"tags\": \"some_tag_1,some_tag_2\",\n    \"first_name\": \"Jane\",\n    \"last_name\": \"Doe\",\n    \"email\": \"janedoe@somesite.com\",\n    \"phone\": \"9880000000\",\n    \"currency\": \"INR\",\n    \"shipping_cost\": \"100.00\",\n    \"total_tax\": \"99.00\",\n    \"total_discounts\": \"0.00\",\n    \"price_without_tax\": \"1000.00\",\n    \"total_price\": \"1099.00\",\n    \"created_at\": \"2020-09-12T14:20:34+05:30\",\n    \"customer\": {\n        \"id\": 6130466128025,\n        \"note\": null,\n        \"tags\": \"\",\n        \"email\": \"debopriyo@logisy.tech\",\n        \"phone\": null,\n        \"state\": \"disabled\",\n        \"currency\": \"INR\",\n        \"last_name\": \"Das\",\n        \"created_at\": \"2022-06-23T19:56:34+05:30\",\n        \"first_name\": \"Debopriyo\",\n        \"tax_exempt\": false,\n        \"updated_at\": \"2024-10-09T18:57:48+05:30\"\n    },\n    \"line_items\": [\n        {\n            \"id\": \"2349854027448\",\n            \"sku\": \"7JHD8893 BLUE STRIPE TEE SHIRT 04 M\",\n            \"name\": \"Stripe Tee Shirt - M / Blue\",\n            \"title\": \"Stripe Tee Shirt\",\n            \"grams\": 1200,\n            \"total_tax\": \"99.00\",\n            \"total_discounts\": \"0.00\",\n            \"price_without_tax\": \"1000.00\",\n            \"total_price\": \"1099.00\",\n            \"quantity\": 2,\n            \"product_id\": \"5684027447458\",\n            \"variant_id\": \"36047249860194\"\n        },\n        {\n            \"id\": \"2349854027501\",\n            \"sku\": \"7JHD8893 GREEN STRIPE TEE SHIRT 04 M\",\n            \"name\": \"Stripe Tee Shirt - M / Green\",\n            \"title\": \"Stripe Tee Shirt\",\n            \"grams\": 1300,\n            \"total_tax\": \"99.00\",\n            \"total_discounts\": \"0.00\",\n            \"price_without_tax\": \"1000.00\",\n            \"total_price\": \"1099.00\",\n            \"quantity\": 1,\n            \"product_id\": \"5684027447458\",\n            \"variant_id\": \"36047249860194\"\n        }\n    ],\n    \"checkout_id\": \"14689190521954\",\n    \"source_name\": \"web\",\n    \"order_number\": \"12926\",\n    \"discount_codes\": [\n        \"DIWALI123\",\n        \"FLAT100OFF\"\n    ],\n    \"billing_address\": {\n        \"id\": \"4824720729506\",\n        \"zip\": \"110000\",\n        \"city\": \"New Delhi\",\n        \"phone\": \"+919880000000\",\n        \"country\": \"India\",\n        \"default\": true,\n        \"address1\": \"Address line 1\",\n        \"address2\": \"Address line 2\",\n        \"province\": \"Delhi\",\n        \"country_code\": \"IN\",\n        \"country_name\": \"India\",\n        \"province_code\": \"DL\",\n        \"latitude\": 76.99874,\n        \"longitude\": 78.773522\n    },\n    \"financial_status\": \"pending\",\n    \"shipment_tracking_id\": \"77495628340\",\n    \"shipment_company\": \"Delhivery\",\n    \"shipment_tracking_url\": \"https://delhivery.com/track/77495628340/\",\n    \"is_delivered\": true,\n    \"is_rto\": false,\n    \"cancelled_at\": null,\n    \"order_status_url\": \"https://yourstore.com/orders/2711891284034/\",\n    \"shipping_address\": {\n        \"id\": \"4824720729506\",\n        \"zip\": \"110000\",\n        \"city\": \"New Delhi\",\n        \"phone\": \"+919880000000\",\n        \"country\": \"India\",\n        \"default\": true,\n        \"address1\": \"Address line 1\",\n        \"address2\": \"Address line 2\",\n        \"province\": \"Delhi\",\n        \"country_code\": \"IN\",\n        \"country_name\": \"India\",\n        \"province_code\": \"DL\",\n        \"latitude\": 76.99874,\n        \"longitude\": 78.773522\n    },\n    \"payment_gateway_names\": [\n        \"cash_on_delivery\",\n        \"cashfree\"\n    ],\n    \"buyer_accepts_marketing\": true,\n    \"device_id\": \"uisd67834iuiu5489\",\n    \"referring_site\": \"https://facebook.com/some-campaign/\",\n    \"browser_ip\": \"192.168.0.145\"\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/api/stores/order/create/","description":"<p>Create an Order Object in Logisy by calling the following API.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<ul>\n<li><strong>order (<code>order</code> obj):</strong> The <code>order</code> object (see above for reference)</li>\n</ul>\n","urlObject":{"path":["api","stores","order","create",""],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"66866394-7000-40a0-9331-0dfbc6ff1597"},{"name":"Update Order API","id":"f771ad32-f2ba-4a12-9437-12ae10c8aa7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-API-Key","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"109789037879\",\n    \"note\": \"Some note about this order\",\n    \"tags\": \"some_tag_1,some_tag_2\",\n    \"first_name\": \"Jane\",\n    \"last_name\": \"Doe\",\n    \"email\": \"janedoe@somesite.com\",\n    \"phone\": \"9880000000\",\n    \"currency\": \"INR\",\n    \"shipping_cost\": \"100.00\",\n    \"total_tax\": \"99.00\",\n    \"total_discounts\": \"0.00\",\n    \"price_without_tax\": \"1000.00\",\n    \"total_price\": \"1099.00\",\n    \"created_at\": \"2020-09-12T14:20:34+05:30\",\n    \"customer\": {\n        \"id\": 6130466128025,\n        \"note\": null,\n        \"tags\": \"\",\n        \"email\": \"debopriyo@logisy.tech\",\n        \"phone\": null,\n        \"state\": \"disabled\",\n        \"currency\": \"INR\",\n        \"last_name\": \"Das\",\n        \"created_at\": \"2022-06-23T19:56:34+05:30\",\n        \"first_name\": \"Debopriyo\",\n        \"tax_exempt\": false,\n        \"updated_at\": \"2024-10-09T18:57:48+05:30\"\n    },\n    \"line_items\": [\n        {\n            \"id\": \"2349854027448\",\n            \"sku\": \"7JHD8893 BLUE STRIPE TEE SHIRT 04 M\",\n            \"name\": \"Stripe Tee Shirt - M / Blue\",\n            \"title\": \"Stripe Tee Shirt\",\n            \"grams\": 1200,\n            \"total_tax\": \"99.00\",\n            \"total_discounts\": \"0.00\",\n            \"price_without_tax\": \"1000.00\",\n            \"total_price\": \"1099.00\",\n            \"quantity\": 2,\n            \"product_id\": \"5684027447458\",\n            \"variant_id\": \"36047249860194\"\n        },\n        {\n            \"id\": \"2349854027501\",\n            \"sku\": \"7JHD8893 GREEN STRIPE TEE SHIRT 04 M\",\n            \"name\": \"Stripe Tee Shirt - M / Green\",\n            \"title\": \"Stripe Tee Shirt\",\n            \"grams\": 1300,\n            \"total_tax\": \"99.00\",\n            \"total_discounts\": \"0.00\",\n            \"price_without_tax\": \"1000.00\",\n            \"total_price\": \"1099.00\",\n            \"quantity\": 1,\n            \"product_id\": \"5684027447458\",\n            \"variant_id\": \"36047249860194\"\n        }\n    ],\n    \"checkout_id\": \"14689190521954\",\n    \"source_name\": \"web\",\n    \"order_number\": \"12926\",\n    \"discount_codes\": [\n        \"DIWALI123\",\n        \"FLAT100OFF\"\n    ],\n    \"billing_address\": {\n        \"id\": \"4824720729506\",\n        \"zip\": \"110000\",\n        \"city\": \"New Delhi\",\n        \"phone\": \"+919880000000\",\n        \"country\": \"India\",\n        \"default\": true,\n        \"address1\": \"Address line 1\",\n        \"address2\": \"Address line 2\",\n        \"province\": \"Delhi\",\n        \"country_code\": \"IN\",\n        \"country_name\": \"India\",\n        \"province_code\": \"DL\",\n        \"latitude\": 76.99874,\n        \"longitude\": 78.773522\n    },\n    \"financial_status\": \"pending\",\n    \"shipment_tracking_id\": \"77495628340\",\n    \"shipment_company\": \"Delhivery\",\n    \"shipment_tracking_url\": \"https://delhivery.com/track/77495628340/\",\n    \"is_delivered\": true,\n    \"is_rto\": false,\n    \"cancelled_at\": null,\n    \"order_status_url\": \"https://yourstore.com/orders/2711891284034/\",\n    \"shipping_address\": {\n        \"id\": \"4824720729506\",\n        \"zip\": \"110000\",\n        \"city\": \"New Delhi\",\n        \"phone\": \"+919880000000\",\n        \"country\": \"India\",\n        \"default\": true,\n        \"address1\": \"Address line 1\",\n        \"address2\": \"Address line 2\",\n        \"province\": \"Delhi\",\n        \"country_code\": \"IN\",\n        \"country_name\": \"India\",\n        \"province_code\": \"DL\",\n        \"latitude\": 76.99874,\n        \"longitude\": 78.773522\n    },\n    \"payment_gateway_names\": [\n        \"cash_on_delivery\",\n        \"cashfree\"\n    ],\n    \"buyer_accepts_marketing\": true,\n    \"device_id\": \"uisd67834iuiu5489\",\n    \"referring_site\": \"https://facebook.com/some-campaign/\",\n    \"browser_ip\": \"192.168.0.145\"\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/api/stores/order/update/","urlObject":{"path":["api","stores","order","update",""],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f771ad32-f2ba-4a12-9437-12ae10c8aa7e"},{"name":"Cancel Order API","id":"13b7212c-2471-401a-a393-f1f09aa35e80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-API-Key","type":"text","value":"{{API_KEY}}"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"2711891284034\",\n    \"cancelled_at\": \"2021-03-25T14:20:34+05:30\",\n    \"cancel_reason\": \"Cancelled by customer\"\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/api/stores/order/cancel/","description":"<p>Marks an Order Object as cancelled.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<ul>\n<li><strong>id (str):</strong> The id of the order which got cancelled</li>\n<li><strong>cancelled_at (<code>ISO 8601 datetime</code> str):</strong> The timestamp when the order was cancelled</li>\n<li><strong>cancel_reason (str, optional):</strong> The reason behind the cancellation of the order</li>\n</ul>\n","urlObject":{"path":["api","stores","order","cancel",""],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"13b7212c-2471-401a-a393-f1f09aa35e80"},{"name":"Order Fulfillment API","id":"0e4a18dd-8763-4fd7-a313-76f384d429e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-API-Key","type":"text","value":"{{API_KEY}}"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"2711891284034\",\n    \"shipment_company\": \"Blue Dart\",\n    \"awb_number\": \"562GSHJGD32\",\n    \"shipment_tracking_url\": \"https://bluedart.com/track-shipment/562GSHJGD32/\",\n    \"fulfilled_line_item_ids\": [\"2349854027448\", \"2349854027501\"]\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/api/stores/order/fulfill/","description":"<p>Update the fulfillment details (shipment details) of an Order Object in Logisy.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<ul>\n<li><strong>id: (str)</strong> The id of the order which got fulfilled</li>\n<li><strong>shipment_company (str):</strong> The name of the shipment company</li>\n<li><strong>awb_number (str):</strong> The Airway Bill Number of the order</li>\n<li><strong>shipment_tracking_url (str):</strong> The shipment tracking url</li>\n<li><strong>fulfilled_line_item_ids (arr of str):</strong> The <code>line_item</code> ids which got fulfilled by your store. This parameter needs to be provided as Logisy supports partial fulfillment as well</li>\n</ul>\n","urlObject":{"path":["api","stores","order","fulfill",""],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0e4a18dd-8763-4fd7-a313-76f384d429e1"},{"name":"Mark Delivered API","id":"bfbce24a-cf87-4170-a1d3-d128c877fc8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Key","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"line_item_ids\": [\n        \"2016\"\n    ],\n    \"delivered_at\": \"12/05/2024\"\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/api/stores/order/1488/delivered/","urlObject":{"path":["api","stores","order","1488","delivered",""],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"7d469c6e-4a6f-4208-87dd-a811d48a2831","name":"Mark Delivered API","originalRequest":{"method":"POST","header":[{"key":"X-API-Key","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"line_item_ids\": [\n        \"2016\"\n    ],\n    \"delivered_at\": \"12/05/2024\"\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/api/stores/order/1488/delivered/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {},\n    \"success\": true,\n    \"error\": null\n}"}],"_postman_id":"bfbce24a-cf87-4170-a1d3-d128c877fc8d"}],"id":"5917cd96-c793-4096-bdc4-700f3d809a6d","description":"<p>The following list of APIs/webhooks are provided by Logisy so that your system can push order related data and events to Logisy's.</p>\n","event":[{"listen":"prerequest","script":{"id":"5aeedfd6-993f-42f2-932d-72db2433dc67","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7297306d-66ad-4fb1-82b1-178a27e45280","type":"text/javascript","exec":[""]}}],"_postman_id":"5917cd96-c793-4096-bdc4-700f3d809a6d"},{"name":"Client-side APIs / Webhooks","item":[{"name":"Historical Orders API","id":"106597de-503b-4fcf-98ed-81459bce074a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-Token","type":"text","value":"{{API_KEY}}"}],"url":"https://your-store.com/your-historical-orders-api-url?page=1&from=2020-09-12T14:20:34+05:30&to=2021-01-12T14:20:34+05:30","description":"<p>This API is required so that Logisy can pull historical order data from your servers.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<ul>\n<li><strong>page (int):</strong> The number of the page to be queried</li>\n<li><strong>from (<code>ISO 8601 datetime</code> str):</strong> The timestamp from which the data needs to be provided</li>\n<li><strong>to (<code>ISO 8601 datetime</code> str):</strong> The timestamp till which the data needs to be provided</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><strong>Expected HTTP Status Code:</strong> <code>200 OK</code></li>\n<li><strong>Response Data:</strong><ul>\n<li><strong>total_orders (int):</strong> Total number of orders in the database since the <code>since</code> parameter value</li>\n<li><strong>orders (<code>order</code> obj):</strong> List of <code>order</code> objects with AWB information</li>\n</ul>\n</li>\n<li><strong>Orders to be sent per page:</strong> 250 (Last page may contain orders lesser than 250)</li>\n</ul>\n<blockquote>\n<p><strong>NOTE:</strong> Please make sure that the values for the following fields are present in order to sync the end-states of the orders: <code>shipment_tracking_id</code>, <code>shipment_company</code>, <code>shipment_tracking_url</code>, <code>is_delivered</code>, <code>is_rto</code>, <code>cancelled_at</code></p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["your-historical-orders-api-url"],"host":["your-store","com"],"query":[{"key":"page","value":"1"},{"key":"from","value":"2020-09-12T14:20:34+05:30"},{"key":"to","value":"2021-01-12T14:20:34+05:30"}],"variable":[]}},"response":[{"id":"8cd9a5f9-b6c2-4da1-b59b-eee7fe8fc300","name":"Historical Orders API","originalRequest":{"method":"GET","header":[{"key":"X-API-Token","value":"{{API_KEY}}","type":"text"}],"url":{"raw":"https://your-store.com/your-historical-orders-api-url?page=1&since=2020-09-12T14:20:34+05:30","protocol":"https","host":["your-store","com"],"path":["your-historical-orders-api-url"],"query":[{"key":"page","value":"1"},{"key":"since","value":"2020-09-12T14:20:34+05:30"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"total_orders\": 8731,\n    \"orders\": [\n        {\n            \"id\": 2711891284034,\n            \"note\": \"Some note about this order\",\n            \"tags\": \"some_tag_1,some_tag_2\",\n            \"...\": \"...\"\n        }\n    ]\n}"}],"_postman_id":"106597de-503b-4fcf-98ed-81459bce074a"},{"name":"Order API","id":"e5acb0a8-3254-454f-be30-ba6e59b53a17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-Key","value":"{{API_KEY}}","type":"text"}],"url":"https://your-store.com/your-order-api-url?id=2711891284034","description":"<p>This API is required so that Logisy can pull order data for one particular order from your servers.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<ul>\n<li><strong>Id (str):</strong> The id of the <code>order</code> to be fetched</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><strong>Expected HTTP Status Code:</strong> <code>200 OK</code></li>\n<li><strong>Response Data:</strong><ul>\n<li><strong>order (<code>order</code> obj):</strong> The <code>order</code> which was queried</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["your-order-api-url"],"host":["your-store","com"],"query":[{"key":"id","value":"2711891284034"}],"variable":[]}},"response":[{"id":"99b90ba1-eb88-494e-a198-bcb857b7ddbc","name":"Order API","originalRequest":{"method":"GET","header":[{"key":"X-API-Key","value":"{{API_KEY}}","type":"text"}],"url":{"raw":"https://your-store.com/your-order-api-url?id=2711891284034","protocol":"https","host":["your-store","com"],"path":["your-order-api-url"],"query":[{"key":"id","value":"2711891284034"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"2711891284034\",\n    \"note\": \"Some note about this order\",\n    \"tags\": \"some_tag_1,some_tag_2\",\n    \"first_name\": \"Jane\",\n    \"last_name\": \"Doe\",\n    \"email\": \"janedoe@somesite.com\",\n    \"phone\": \"9880000000\",\n    \"currency\": \"INR\",\n    \"shipping_cost\": \"100.00\",\n    \"total_tax\": \"99.00\",\n    \"total_discounts\": \"0.00\",\n    \"price_without_tax\": \"1000.00\",\n    \"total_price\": \"1099.00\",\n    \"created_at\": \"2020-09-12T14:20:34+05:30\",\n    \"line_items\": [\n        {\n            \"id\": \"2349854027448\",\n            \"sku\": \"7JHD8893 BLUE STRIPE TEE SHIRT 04 M\",\n            \"name\": \"Stripe Tee Shirt - M / Blue\",\n            \"title\": \"Stripe Tee Shirt\",\n            \"grams\": 1200,\n            \"total_tax\": \"99.00\",\n            \"total_discounts\": \"0.00\",\n            \"price_without_tax\": \"1000.00\",\n            \"total_price\": \"1099.00\",\n            \"quantity\": 2,\n            \"product_id\": \"5684027447458\",\n            \"variant_id\": \"36047249860194\"\n        },\n        {\n            \"id\": \"2349854027501\",\n            \"sku\": \"7JHD8893 GREEN STRIPE TEE SHIRT 04 M\",\n            \"name\": \"Stripe Tee Shirt - M / Green\",\n            \"title\": \"Stripe Tee Shirt\",\n            \"grams\": 1300,\n            \"total_tax\": \"99.00\",\n            \"total_discounts\": \"0.00\",\n            \"price_without_tax\": \"1000.00\",\n            \"total_price\": \"1099.00\",\n            \"quantity\": 1,\n            \"product_id\": \"5684027447458\",\n            \"variant_id\": \"36047249860194\"\n        }\n    ],\n    \"checkout_id\": \"14689190521954\",\n    \"source_name\": \"web\",\n    \"order_number\": \"12926\",\n    \"discount_codes\": [\n        \"DIWALI123\",\n        \"FLAT100OFF\"\n    ],\n    \"billing_address\": {\n        \"id\": \"4824720729506\",\n        \"zip\": \"110000\",\n        \"city\": \"New Delhi\",\n        \"phone\": \"+919880000000\",\n        \"country\": \"India\",\n        \"default\": true,\n        \"address1\": \"Address line 1\",\n        \"address2\": \"Address line 2\",\n        \"province\": \"Delhi\",\n        \"country_code\": \"IN\",\n        \"country_name\": \"India\",\n        \"province_code\": \"DL\",\n        \"latitude\": 76.99874,\n        \"longitude\": 78.773522\n    },\n    \"financial_status\": \"pending\",\n    \"order_status_url\": \"https://yourstore.com/orders/2711891284034/\",\n    \"shipping_address\": {\n        \"id\": \"4824720729506\",\n        \"zip\": \"110000\",\n        \"city\": \"New Delhi\",\n        \"phone\": \"+919880000000\",\n        \"country\": \"India\",\n        \"default\": true,\n        \"address1\": \"Address line 1\",\n        \"address2\": \"Address line 2\",\n        \"province\": \"Delhi\",\n        \"country_code\": \"IN\",\n        \"country_name\": \"India\",\n        \"province_code\": \"DL\",\n        \"latitude\": 76.99874,\n        \"longitude\": 78.773522\n    },\n    \"payment_gateway_names\": [\n        \"cash_on_delivery\",\n        \"cashfree\"\n    ],\n    \"buyer_accepts_marketing\": true,\n    \"device_id\": \"uisd67834iuiu5489\",\n    \"referring_site\": \"https://facebook.com/some-campaign/\",\n    \"browser_ip\": \"192.168.0.145\"\n}"}],"_postman_id":"e5acb0a8-3254-454f-be30-ba6e59b53a17"},{"name":"COD To Paid (C2P) Success API","id":"d3f0b257-661b-4375-87db-15c4c2f5e5da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Token","type":"text","value":"{{API_KEY}}"}],"body":{"mode":"raw","raw":"{\n    \"cod_order_id\": 12345,\n    \"tx_time\": \"2021-02-25 15:59:31\",\n    \"tx_id\": \"12345\",\n    \"gateway\": \"cashfree\",\n    \"payment_url\": \"https://xyz.com\",\n    \"amount_collected\": 999,\n    \"config\": {\n        \"discount_type\": \"fixed\",\n        \"discount_value\": 100,\n        \"is_free_shipping\": true,\n        \"shipping_cost\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-store.com/your-c2p-success-api-url","description":"<p>Logisy will send a request upon successful completion of C2P (COD-to-Paid) process for an order. Logisy will expect an <code>order</code> id in return. This order id can be one of the following</p>\n<ul>\n<li>Id of the original COD order in case your store's system updates the same order object internally</li>\n<li>Id of the newly created paid order in case your store cancels the original COD order and creates a fresh paid order</li>\n</ul>\n<blockquote>\n<p><strong>NOTE:</strong> We recommend you create a new order and cancel the original COD order. This way any other system listening to your store may automatically take the necessary actions (e.g.: Your shipment company will cancel the COD order's shipment while creating a new one for the new paid order.)</p>\n</blockquote>\n<p>The order id in the result is then mapped by Logisy with the original COD order</p>\n<h2 id=\"parameters\">Parameters</h2>\n<ul>\n<li><strong>cod_order_id (str):</strong> The id of the COD order which was converted to paid</li>\n<li><strong>tx_time (str):</strong> Transaction timestamp</li>\n<li><strong>tx_id (str):</strong> The transaction id</li>\n<li><strong>gateway (str):</strong> The payment gateway used for the transaction</li>\n<li><strong>payment_url (str):</strong> The payment url used for the transaction</li>\n<li><strong>amount_collected (str):</strong> The amount collected for the C2P process</li>\n<li><strong>config (str):</strong> The Logisy Connect config according to which the C2P was organised<ul>\n<li><strong>discount_type (str):</strong> The discount type mentioned in Logisy Connect config. Options are: <code>fixed</code> or <code>percent</code></li>\n<li><strong>discount_value (str):</strong> The value of the discount</li>\n<li><strong>is_free_shipping (bool):</strong> Whether the shipping was provided for free or not (based on the set Logisy Connect config)</li>\n<li><strong>shipping_cost (str):</strong></li>\n</ul>\n</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><strong>Expected HTTP Status Code:</strong> <code>200 OK</code></li>\n<li><strong>Response Data:</strong><ul>\n<li><strong>order_id (str):</strong> The id of the order which was marked <code>paid</code> by your system after successful C2P</li>\n<li><strong>order_url (str):</strong> Your store's url of the order</li>\n</ul>\n</li>\n<li><strong>Failsafe:</strong> Anything other than HTTP Status of <code>200 OK</code> will be considered as an error and Logisy will make three further attempts to post the data</li>\n</ul>\n","urlObject":{"protocol":"https","path":["your-c2p-success-api-url"],"host":["your-store","com"],"query":[],"variable":[]}},"response":[{"id":"c348dfa8-cc5c-4069-85e9-16fafdf681fc","name":"COD To Paid (C2P) Success API","originalRequest":{"method":"POST","header":[{"key":"X-API-Token","type":"text","value":"{{API_KEY}}"}],"body":{"mode":"raw","raw":"{\n    \"cod_order_id\": 12345,\n    \"tx_time\": \"2021-02-25 15:59:31\",\n    \"tx_id\": \"12345\",\n    \"gateway\": \"cashfree\",\n    \"payment_url\": \"https://xyz.com\",\n    \"amount_collected\": 999,\n    \"config\": {\n        \"discount_type\": \"fixed\",\n        \"discount_value\": 100,\n        \"is_free_shipping\": true,\n        \"shipping_cost\": 50\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-store.com/your-c2p-success-api-url"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"order_id\": \"67890\",\n    \"order_url\": \"https://xyz.com/orders/6789\"\n}"}],"_postman_id":"d3f0b257-661b-4375-87db-15c4c2f5e5da"},{"name":"Cancel Order Webhook","id":"a21e930b-70ec-49a5-ae5f-94190c82df5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Token","type":"text","value":"{{API_KEY}}"}],"body":{"mode":"raw","raw":"{\n    \"order_id\": \"2711891284034\"\n}","options":{"raw":{"language":"json"}}},"url":"https://your-store.com/your-cancel-order-webhook-url","description":"<p>Logisy might trigger a cancel order request due to the following reasons</p>\n<ul>\n<li>Merchant clicks on the Cancel Button in Logisy dashboard</li>\n<li>Customer cancels order during Order Verification</li>\n</ul>\n<blockquote>\n<p><strong>NOTE:</strong> Any change in the order data must trigger the <strong>Update/Cancel Order Webhook</strong> from your side. Thus, these actions (e.g.: tags added or order cancelled) will be reflected in Logisy's dashboard only if it receives the order update via the webhook/s.</p>\n</blockquote>\n<h2 id=\"parameters\">Parameters</h2>\n<ul>\n<li><strong>order_id (str):</strong> The id of the order which was got cancelled</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><strong>Expected HTTP Status Code:</strong> <code>200 OK</code></li>\n<li><strong>Response Data:</strong> Logisy will not parse the returned data</li>\n<li><strong>Failsafe:</strong> Anything other than HTTP Status of <code>200 OK</code> will be considered as an error and Logisy will make three further attempts to post the data</li>\n</ul>\n","urlObject":{"protocol":"https","path":["your-cancel-order-webhook-url"],"host":["your-store","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a21e930b-70ec-49a5-ae5f-94190c82df5c"},{"name":"Order Action Webhook","id":"95736015-af07-4bdb-9e66-4b41fe2943e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Token","type":"text","value":"{{API_KEY}}"}],"body":{"mode":"raw","raw":"{\n    \"order_id\": \"2711891284034\",\n    \"add_tags\": \"c2p_message_sent,c2p_converted\"\n}","options":{"raw":{"language":"json"}}},"url":"https://your-store.com/your-order-action-webhook-url","description":"<p>During the lifecycle of an order, various events may happen. Logisy will publish these events' data via this webhook. The events are described in the <strong>Payload</strong> section below. <strong>Please note</strong> that apart from the <code>order_id</code>, all the other parameters are optional (as they get generated at different events). However, at least one of the mentioned events is guaranteed to be present.</p>\n<blockquote>\n<p><strong>NOTE:</strong> Any change in the order data must trigger the <strong>Update Order Webhook</strong> from your side. Thus, these actions (e.g.: tags added or removed) will be reflected in Logisy's dashboard only if it receives the order update via the webhook.</p>\n</blockquote>\n<h2 id=\"parameters\">Parameters</h2>\n<ul>\n<li><strong>order_id (str):</strong> The id of order</li>\n<li><strong>add_tags (str, optional):</strong> A comma separated string containing the tags to be added</li>\n<li><strong>remove_tags (str, optional):</strong> A comma separated string containing the tags to be added</li>\n<li><strong>note (str, optional):</strong> A string containing a note for the order. For best results, append this string in your database field instead of overwriting the same</li>\n<li><strong>order_accepted (bool, optional):</strong> When the merchant clicks on the \"Accept Order\" button in Logisy dashboard (which can be used to trigger certain actions at your end specific to accepted orders)</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><strong>Expected HTTP Status Code:</strong> <code>200 OK</code></li>\n<li><strong>Response Data:</strong> Logisy will not parse the returned data</li>\n<li><strong>Failsafe:</strong> Anything other than HTTP Status of <code>200 OK</code> will be considered as an error and Logisy will make three further attempts to post the data</li>\n</ul>\n","urlObject":{"protocol":"https","path":["your-order-action-webhook-url"],"host":["your-store","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"95736015-af07-4bdb-9e66-4b41fe2943e0"},{"name":"Risk Analysis Webhook (Optional)","id":"e70acc0e-2a8d-4d3f-aeea-b22037e6c111","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Token","type":"text","value":"{{API_KEY}}"}],"body":{"mode":"raw","raw":"{\n    \"order_id\": \"2711891284034\",\n    \"flags\": [\n        \"5 RTOs found in last 30 days\",\n        \"3 cancellations during last week\",\n        \"...\"\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-store.com/your-risk-analysis-webhook-url","description":"<p>Logisy will push an order's flags and analysis via this webhook. This is not a mandatory webhook and you may choose to implement this only if you require the analysis in your system. You can access all the analysis in Logisy dashboard itself.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<ul>\n<li><strong>order_id (str):</strong> The id of the <code>order</code> for which flags were generated</li>\n<li><strong>flags (arr of str):</strong> The flags related to this order</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><strong>Expected HTTP Status Code:</strong> <code>200 OK</code></li>\n<li><strong>Response Data:</strong> Logisy will not parse the returned data</li>\n<li><strong>Failsafe:</strong> Anything other than HTTP Status of <code>200 OK</code> will be considered as an error and Logisy will make three further attempts to post the data</li>\n</ul>\n","urlObject":{"protocol":"https","path":["your-risk-analysis-webhook-url"],"host":["your-store","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e70acc0e-2a8d-4d3f-aeea-b22037e6c111"},{"name":"Create COD Order","id":"99ffcd32-085e-408c-ad76-7b82bb973b5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Token","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"order\": {\n        \"note\": \"Exchange for an old Order #3809 with Logisy Return Request #2235EXC3809.\",\n        \"tags\": \"logisy_exchange_order,pragma_same_value_exchange,logisy_exchange_order_count_1\",\n        \"customer\": {\n            \"id\": 6130466128025\n        },\n        \"line_items\": [\n            {\n                \"sku\": \"GSHSSHT20246BLU_S\",\n                \"price\": \"779.00\",\n                \"quantity\": 1,\n                \"product_id\": 7680752287897,\n                \"variant_id\": 43222020161689\n            }\n        ],\n        \"transactions\": [\n            {\n                \"gateway\": \"Cash on Delivery\",\n                \"kind\": \"sale\",\n                \"amount\": \"779.00\",\n                \"status\": \"pending\"\n            }\n        ],\n        \"discount_codes\": [],\n        \"taxes_included\": false,\n        \"billing_address\": {\n            \"zip\": \"500089\",\n            \"city\": \"Hyderabad\",\n            \"name\": \"Uzumaki Naruto\",\n            \"phone\": \"9999999999\",\n            \"country\": \"India\",\n            \"address1\": \"Home Address 1\",\n            \"address2\": null,\n            \"province\": \"Telangana\",\n            \"last_name\": \"Uzumaki\",\n            \"first_name\": \"Naruto\"\n        },\n        \"note_attributes\": [\n            {\n                \"name\": \"pragma_exchange_order_tag\",\n                \"value\": \"logisy_exchange_order\"\n            },\n            {\n                \"name\": \"Item id 13997892337817\",\n                \"value\": \"Exchange\"\n            },\n            {\n                \"name\": \"Variant id 44720345317529 Exchanging with\",\n                \"value\": \"Variant id 44720345383065\"\n            },\n            {\n                \"name\": \"AOTS-SS\",\n                \"value\": \"Exchange line item sku\"\n            },\n            {\n                \"name\": \"AOTS-SS Exchanging with\",\n                \"value\": \"AOTS-SL\"\n            }\n        ],\n        \"financial_status\": \"pending\",\n        \"shipping_address\": {\n            \"zip\": \"500089\",\n            \"city\": \"Hyderabad\",\n            \"name\": \"Uzumaki Naruto\",\n            \"phone\": \"9999999999\",\n            \"country\": \"India\",\n            \"address1\": \"Home Address 1\",\n            \"address2\": null,\n            \"province\": \"Telangana\",\n            \"last_name\": \"Uzumaki\",\n            \"first_name\": \"Naruto\"\n        },\n        \"inventory_behaviour\": \"decrement_ignoring_policy\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-store.com/order/create","urlObject":{"protocol":"https","path":["order","create"],"host":["your-store","com"],"query":[],"variable":[]}},"response":[{"id":"516b4495-f79e-42c3-8bc6-83f156a1d191","name":"Response","originalRequest":{"method":"POST","header":[{"key":"X-API-Token","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"order\": {\n        \"note\": \"Exchange for an old Order #3809 with Logisy Return Request #2235EXC3809.\",\n        \"tags\": \"logisy_exchange_order,pragma_same_value_exchange,logisy_exchange_order_count_1\",\n        \"customer\": {\n            \"id\": 6130466128025\n        },\n        \"line_items\": [\n            {\n                \"sku\": \"GSHSSHT20246BLU_S\",\n                \"price\": \"779.00\",\n                \"quantity\": 1,\n                \"product_id\": 7680752287897,\n                \"variant_id\": 43222020161689\n            }\n        ],\n        \"transactions\": [\n            {\n                \"gateway\": \"Cash on Delivery\",\n                \"kind\": \"sale\",\n                \"amount\": \"779.00\",\n                \"status\": \"pending\"\n            }\n        ],\n        \"discount_codes\": [],\n        \"taxes_included\": false,\n        \"billing_address\": {\n            \"zip\": \"500089\",\n            \"city\": \"Hyderabad\",\n            \"name\": \"Uzumaki Naruto\",\n            \"phone\": \"9999999999\",\n            \"country\": \"India\",\n            \"address1\": \"Home Address 1\",\n            \"address2\": null,\n            \"province\": \"Telangana\",\n            \"last_name\": \"Uzumaki\",\n            \"first_name\": \"Naruto\"\n        },\n        \"note_attributes\": [\n            {\n                \"name\": \"pragma_exchange_order_tag\",\n                \"value\": \"logisy_exchange_order\"\n            },\n            {\n                \"name\": \"Item id 13997892337817\",\n                \"value\": \"Exchange\"\n            },\n            {\n                \"name\": \"Variant id 44720345317529 Exchanging with\",\n                \"value\": \"Variant id 44720345383065\"\n            },\n            {\n                \"name\": \"AOTS-SS\",\n                \"value\": \"Exchange line item sku\"\n            },\n            {\n                \"name\": \"AOTS-SS Exchanging with\",\n                \"value\": \"AOTS-SL\"\n            }\n        ],\n        \"financial_status\": \"pending\",\n        \"shipping_address\": {\n            \"zip\": \"500089\",\n            \"city\": \"Hyderabad\",\n            \"name\": \"Uzumaki Naruto\",\n            \"phone\": \"9999999999\",\n            \"country\": \"India\",\n            \"address1\": \"Home Address 1\",\n            \"address2\": null,\n            \"province\": \"Telangana\",\n            \"last_name\": \"Uzumaki\",\n            \"first_name\": \"Naruto\"\n        },\n        \"inventory_behaviour\": \"decrement_ignoring_policy\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-store.com/order/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"order\": {\n    \"id\": 5742444282009,\n    \"admin_graphql_api_id\": \"gid://shopify/Order/5742444282009\",\n    \"app_id\": 88617451521,\n    \"browser_ip\": null,\n    \"buyer_accepts_marketing\": false,\n    \"cancel_reason\": null,\n    \"cancelled_at\": null,\n    \"cart_token\": null,\n    \"checkout_id\": null,\n    \"checkout_token\": null,\n    \"client_details\": null,\n    \"closed_at\": null,\n    \"confirmation_number\": \"XU10F48TD\",\n    \"confirmed\": true,\n    \"contact_email\": \"user@email.com\",\n    \"created_at\": \"2025-01-15T09:32:08+05:30\",\n    \"currency\": \"INR\",\n    \"current_subtotal_price\": \"779.00\",\n    \"current_subtotal_price_set\": {\n      \"shop_money\": {\n        \"amount\": \"779.00\",\n        \"currency_code\": \"INR\"\n      },\n      \"presentment_money\": {\n        \"amount\": \"779.00\",\n        \"currency_code\": \"INR\"\n      }\n    },\n    \"current_total_additional_fees_set\": null,\n    \"current_total_discounts\": \"0.00\",\n    \"current_total_discounts_set\": {\n      \"shop_money\": {\n        \"amount\": \"0.00\",\n        \"currency_code\": \"INR\"\n      },\n      \"presentment_money\": {\n        \"amount\": \"0.00\",\n        \"currency_code\": \"INR\"\n      }\n    },\n    \"current_total_duties_set\": null,\n    \"current_total_price\": \"779.00\",\n    \"current_total_price_set\": {\n      \"shop_money\": {\n        \"amount\": \"779.00\",\n        \"currency_code\": \"INR\"\n      },\n      \"presentment_money\": {\n        \"amount\": \"779.00\",\n        \"currency_code\": \"INR\"\n      }\n    },\n    \"current_total_tax\": \"0.00\",\n    \"current_total_tax_set\": {\n      \"shop_money\": {\n        \"amount\": \"0.00\",\n        \"currency_code\": \"INR\"\n      },\n      \"presentment_money\": {\n        \"amount\": \"0.00\",\n        \"currency_code\": \"INR\"\n      }\n    },\n    \"customer_locale\": null,\n    \"device_id\": null,\n    \"discount_codes\": [],\n    \"email\": \"user@email.com\",\n    \"estimated_taxes\": false,\n    \"financial_status\": \"pending\",\n    \"fulfillment_status\": null,\n    \"landing_site\": null,\n    \"landing_site_ref\": null,\n    \"location_id\": null,\n    \"merchant_of_record_app_id\": null,\n    \"name\": \"#3905\",\n    \"note\": \"Exchange for an old Order #3809 with Logisy Return Request #2235EXC3809.\",\n    \"note_attributes\": [\n      {\n        \"name\": \"pragma_exchange_order_tag\",\n        \"value\": \"logisy_exchange_order\"\n      },\n      {\n        \"name\": \"Item id 13997892337817\",\n        \"value\": \"Exchange\"\n      },\n      {\n        \"name\": \"Variant id 44720345317529 Exchanging with\",\n        \"value\": \"Variant id 44720345383065\"\n      },\n      {\n        \"name\": \"AOTS-SS\",\n        \"value\": \"Exchange line item sku\"\n      },\n      {\n        \"name\": \"AOTS-SS Exchanging with\",\n        \"value\": \"AOTS-SL\"\n      }\n    ],\n    \"number\": 2905,\n    \"order_number\": 3905,\n    \"order_status_url\": \"https://bepragma-demo.myshopify.com/61345595545/orders/9c1b526043a00494329049def0a64905/authenticate?key=e29d10c281b55eb09b3160b5caa2906f\",\n    \"original_total_additional_fees_set\": null,\n    \"original_total_duties_set\": null,\n    \"payment_gateway_names\": [\n      \"Cash on Delivery\"\n    ],\n    \"phone\": null,\n    \"po_number\": null,\n    \"presentment_currency\": \"INR\",\n    \"processed_at\": \"2025-01-15T09:32:08+05:30\",\n    \"reference\": null,\n    \"referring_site\": null,\n    \"source_identifier\": null,\n    \"source_name\": \"88617451521\",\n    \"source_url\": null,\n    \"subtotal_price\": \"779.00\",\n    \"subtotal_price_set\": {\n      \"shop_money\": {\n        \"amount\": \"779.00\",\n        \"currency_code\": \"INR\"\n      },\n      \"presentment_money\": {\n        \"amount\": \"779.00\",\n        \"currency_code\": \"INR\"\n      }\n    },\n    \"tags\": \"logisy_exchange_order, logisy_exchange_order_count_1, pragma_same_value_exchange\",\n    \"tax_exempt\": false,\n    \"tax_lines\": [],\n    \"taxes_included\": false,\n    \"test\": false,\n    \"token\": \"9c1b526043a00494329049def0a64905\",\n    \"total_discounts\": \"0.00\",\n    \"total_discounts_set\": {\n      \"shop_money\": {\n        \"amount\": \"0.00\",\n        \"currency_code\": \"INR\"\n      },\n      \"presentment_money\": {\n        \"amount\": \"0.00\",\n        \"currency_code\": \"INR\"\n      }\n    },\n    \"total_line_items_price\": \"779.00\",\n    \"total_line_items_price_set\": {\n      \"shop_money\": {\n        \"amount\": \"779.00\",\n        \"currency_code\": \"INR\"\n      },\n      \"presentment_money\": {\n        \"amount\": \"779.00\",\n        \"currency_code\": \"INR\"\n      }\n    },\n    \"total_outstanding\": \"779.00\",\n    \"total_price\": \"779.00\",\n    \"total_price_set\": {\n      \"shop_money\": {\n        \"amount\": \"779.00\",\n        \"currency_code\": \"INR\"\n      },\n      \"presentment_money\": {\n        \"amount\": \"779.00\",\n        \"currency_code\": \"INR\"\n      }\n    },\n    \"total_shipping_price_set\": {\n      \"shop_money\": {\n        \"amount\": \"0.00\",\n        \"currency_code\": \"INR\"\n      },\n      \"presentment_money\": {\n        \"amount\": \"0.00\",\n        \"currency_code\": \"INR\"\n      }\n    },\n    \"total_tax\": \"0.00\",\n    \"total_tax_set\": {\n      \"shop_money\": {\n        \"amount\": \"0.00\",\n        \"currency_code\": \"INR\"\n      },\n      \"presentment_money\": {\n        \"amount\": \"0.00\",\n        \"currency_code\": \"INR\"\n      }\n    },\n    \"total_tip_received\": \"0.00\",\n    \"total_weight\": 0,\n    \"updated_at\": \"2025-01-15T09:32:08+05:30\",\n    \"user_id\": null,\n    \"billing_address\": {\n      \"first_name\": \"Naruto\",\n      \"address1\": \"Home Address 1\",\n      \"phone\": \"6001261818\",\n      \"city\": \"Hyderabad\",\n      \"zip\": \"500089\",\n      \"province\": \"Telangana\",\n      \"country\": \"India\",\n      \"last_name\": \"Uzumaki\",\n      \"address2\": null,\n      \"company\": null,\n      \"latitude\": null,\n      \"longitude\": null,\n      \"name\": \"Uzumaki Naruto\",\n      \"country_code\": \"IN\",\n      \"province_code\": \"TS\"\n    },\n    \"customer\": {\n      \"id\": 6130466128025,\n      \"email\": \"user@email.com\",\n      \"created_at\": \"2022-06-23T19:56:34+05:30\",\n      \"updated_at\": \"2025-01-15T09:31:50+05:30\",\n      \"first_name\": \"Debopriyo\",\n      \"last_name\": \"Das\",\n      \"state\": \"disabled\",\n      \"note\": null,\n      \"verified_email\": true,\n      \"multipass_identifier\": null,\n      \"tax_exempt\": false,\n      \"phone\": \"+918347387398\",\n      \"email_marketing_consent\": {\n        \"state\": \"not_subscribed\",\n        \"opt_in_level\": \"single_opt_in\",\n        \"consent_updated_at\": null\n      },\n      \"sms_marketing_consent\": {\n        \"state\": \"not_subscribed\",\n        \"opt_in_level\": \"single_opt_in\",\n        \"consent_updated_at\": null,\n        \"consent_collected_from\": \"OTHER\"\n      },\n      \"tags\": \"\",\n      \"currency\": \"INR\",\n      \"tax_exemptions\": [],\n      \"admin_graphql_api_id\": \"gid://shopify/Customer/6130466128025\",\n      \"default_address\": {\n        \"id\": 9037793755289,\n        \"customer_id\": 6130466128025,\n        \"first_name\": \"Naruto\",\n        \"address1\": \"Home Address 1\",\n        \"phone\": \"6001261818\",\n        \"city\": \"Hyderabad\",\n        \"zip\": \"500089\",\n        \"province\": \"Telangana\",\n        \"country\": \"India\",\n        \"last_name\": \"Uzumaki\",\n        \"address2\": null,\n        \"company\": null,\n        \"latitude\": null,\n        \"longitude\": null,\n        \"name\": \"Uzumaki Naruto\",\n        \"country_code\": \"IN\",\n        \"province_code\": \"TS\",\n        \"default\": true\n      }\n    },\n    \"discount_applications\": [],\n    \"fulfillments\": [],\n    \"line_items\": [\n      {\n        \"id\": 14406722224281,\n        \"admin_graphql_api_id\": \"gid://shopify/LineItem/14406722224281\",\n        \"attributed_staffs\": [],\n        \"current_quantity\": 1,\n        \"fulfillable_quantity\": 1,\n        \"fulfillment_service\": \"manual\",\n        \"fulfillment_status\": null,\n        \"gift_card\": false,\n        \"grams\": 500,\n        \"name\": \"\\\"Honey Bee Floral\\\" Blue Rayon Shirt - S\",\n        \"price\": \"779.00\",\n        \"price_set\": {\n          \"shop_money\": {\n            \"amount\": \"779.00\",\n            \"currency_code\": \"INR\"\n          },\n          \"presentment_money\": {\n            \"amount\": \"779.00\",\n            \"currency_code\": \"INR\"\n          }\n        },\n        \"product_exists\": true,\n        \"product_id\": 7680752287897,\n        \"properties\": [],\n        \"quantity\": 1,\n        \"requires_shipping\": true,\n        \"sku\": \"GSHSSHT20246BLU_S\",\n        \"taxable\": true,\n        \"title\": \"\\\"Honey Bee Floral\\\" Blue Rayon Shirt\",\n        \"total_discount\": \"0.00\",\n        \"total_discount_set\": {\n          \"shop_money\": {\n            \"amount\": \"0.00\",\n            \"currency_code\": \"INR\"\n          },\n          \"presentment_money\": {\n            \"amount\": \"0.00\",\n            \"currency_code\": \"INR\"\n          }\n        },\n        \"variant_id\": 43222020161689,\n        \"variant_inventory_management\": \"shopify\",\n        \"variant_title\": \"S\",\n        \"vendor\": \"bepragma-demo\",\n        \"tax_lines\": [],\n        \"duties\": [],\n        \"discount_allocations\": []\n      }\n    ],\n    \"payment_terms\": null,\n    \"refunds\": [],\n    \"shipping_address\": {\n      \"first_name\": \"Naruto\",\n      \"address1\": \"Home Address 1\",\n      \"phone\": \"6001261818\",\n      \"city\": \"Hyderabad\",\n      \"zip\": \"500089\",\n      \"province\": \"Telangana\",\n      \"country\": \"India\",\n      \"last_name\": \"Uzumaki\",\n      \"address2\": null,\n      \"company\": null,\n      \"latitude\": null,\n      \"longitude\": null,\n      \"name\": \"Uzumaki Naruto\",\n      \"country_code\": \"IN\",\n      \"province_code\": \"TS\"\n    },\n    \"shipping_lines\": []\n  }\n}"}],"_postman_id":"99ffcd32-085e-408c-ad76-7b82bb973b5c"},{"name":"Create Paid Order","id":"29a61c3f-3e3a-43be-a1c9-73e0223aece3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Token","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"order\": {\n        \"note\": \"Exchange for an old Order #3809 with Logisy Return Request #2235EXC3809.\",\n        \"tags\": \"logisy_exchange_order,pragma_same_value_exchange,logisy_exchange_order_count_1\",\n        \"customer\": {\n            \"id\": 6130466128025\n        },\n        \"line_items\": [\n            {\n                \"sku\": \"GSHSSHT20246BLU_S\",\n                \"price\": \"779.00\",\n                \"quantity\": 1,\n                \"product_id\": 7680752287897,\n                \"variant_id\": 43222020161689\n            }\n        ],\n        \"transactions\": [\n            {\n                \"gateway\": \"razorpay\",\n                \"kind\": \"sale\",\n                \"amount\": \"779.00\",\n                \"status\": \"paid\"\n            }\n        ],\n        \"discount_codes\": [],\n        \"taxes_included\": false,\n        \"billing_address\": {\n            \"zip\": \"500089\",\n            \"city\": \"Hyderabad\",\n            \"name\": \"Uzumaki Naruto\",\n            \"phone\": \"9999999999\",\n            \"country\": \"India\",\n            \"address1\": \"Home Address 1\",\n            \"address2\": null,\n            \"province\": \"Telangana\",\n            \"last_name\": \"Uzumaki\",\n            \"first_name\": \"Naruto\"\n        },\n        \"note_attributes\": [\n            {\n                \"name\": \"pragma_exchange_order_tag\",\n                \"value\": \"logisy_exchange_order\"\n            },\n            {\n                \"name\": \"Item id 13997892337817\",\n                \"value\": \"Exchange\"\n            },\n            {\n                \"name\": \"Variant id 44720345317529 Exchanging with\",\n                \"value\": \"Variant id 44720345383065\"\n            },\n            {\n                \"name\": \"AOTS-SS\",\n                \"value\": \"Exchange line item sku\"\n            },\n            {\n                \"name\": \"AOTS-SS Exchanging with\",\n                \"value\": \"AOTS-SL\"\n            }\n        ],\n        \"financial_status\": \"paid\",\n        \"shipping_address\": {\n            \"zip\": \"500089\",\n            \"city\": \"Hyderabad\",\n            \"name\": \"Uzumaki Naruto\",\n            \"phone\": \"9999999999\",\n            \"country\": \"India\",\n            \"address1\": \"Home Address 1\",\n            \"address2\": null,\n            \"province\": \"Telangana\",\n            \"last_name\": \"Uzumaki\",\n            \"first_name\": \"Naruto\"\n        },\n        \"inventory_behaviour\": \"decrement_ignoring_policy\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-store.com/order/create","urlObject":{"protocol":"https","path":["order","create"],"host":["your-store","com"],"query":[],"variable":[]}},"response":[{"id":"13e8e8b8-aebb-486d-858d-cfc4ee99f85e","name":"Response","originalRequest":{"method":"POST","header":[{"key":"X-API-Token","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"order\": {\n        \"note\": \"Exchange for an old Order #3809 with Logisy Return Request #2235EXC3809.\",\n        \"tags\": \"logisy_exchange_order,pragma_same_value_exchange,logisy_exchange_order_count_1\",\n        \"customer\": {\n            \"id\": 6130466128025\n        },\n        \"line_items\": [\n            {\n                \"sku\": \"GSHSSHT20246BLU_S\",\n                \"price\": \"779.00\",\n                \"quantity\": 1,\n                \"product_id\": 7680752287897,\n                \"variant_id\": 43222020161689\n            }\n        ],\n        \"transactions\": [\n            {\n                \"gateway\": \"razorpay\",\n                \"kind\": \"sale\",\n                \"amount\": \"779.00\",\n                \"status\": \"paid\"\n            }\n        ],\n        \"discount_codes\": [],\n        \"taxes_included\": false,\n        \"billing_address\": {\n            \"zip\": \"500089\",\n            \"city\": \"Hyderabad\",\n            \"name\": \"Uzumaki Naruto\",\n            \"phone\": \"9999999999\",\n            \"country\": \"India\",\n            \"address1\": \"Home Address 1\",\n            \"address2\": null,\n            \"province\": \"Telangana\",\n            \"last_name\": \"Uzumaki\",\n            \"first_name\": \"Naruto\"\n        },\n        \"note_attributes\": [\n            {\n                \"name\": \"pragma_exchange_order_tag\",\n                \"value\": \"logisy_exchange_order\"\n            },\n            {\n                \"name\": \"Item id 13997892337817\",\n                \"value\": \"Exchange\"\n            },\n            {\n                \"name\": \"Variant id 44720345317529 Exchanging with\",\n                \"value\": \"Variant id 44720345383065\"\n            },\n            {\n                \"name\": \"AOTS-SS\",\n                \"value\": \"Exchange line item sku\"\n            },\n            {\n                \"name\": \"AOTS-SS Exchanging with\",\n                \"value\": \"AOTS-SL\"\n            }\n        ],\n        \"financial_status\": \"paid\",\n        \"shipping_address\": {\n            \"zip\": \"500089\",\n            \"city\": \"Hyderabad\",\n            \"name\": \"Uzumaki Naruto\",\n            \"phone\": \"9999999999\",\n            \"country\": \"India\",\n            \"address1\": \"Home Address 1\",\n            \"address2\": null,\n            \"province\": \"Telangana\",\n            \"last_name\": \"Uzumaki\",\n            \"first_name\": \"Naruto\"\n        },\n        \"inventory_behaviour\": \"decrement_ignoring_policy\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-store.com/order/create"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"order\": {\n        \"id\": 5742454735001,\n        \"admin_graphql_api_id\": \"gid://shopify/Order/5742454735001\",\n        \"app_id\": 88617451521,\n        \"browser_ip\": null,\n        \"buyer_accepts_marketing\": false,\n        \"cancel_reason\": null,\n        \"cancelled_at\": null,\n        \"cart_token\": null,\n        \"checkout_id\": null,\n        \"checkout_token\": null,\n        \"client_details\": null,\n        \"closed_at\": null,\n        \"confirmation_number\": \"5TPZTA4LX\",\n        \"confirmed\": true,\n        \"contact_email\": \"user@email.com\",\n        \"created_at\": \"2025-01-15T09:50:47+05:30\",\n        \"currency\": \"INR\",\n        \"current_subtotal_price\": \"779.00\",\n        \"current_subtotal_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"current_total_additional_fees_set\": null,\n        \"current_total_discounts\": \"0.00\",\n        \"current_total_discounts_set\": {\n            \"shop_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"current_total_duties_set\": null,\n        \"current_total_price\": \"779.00\",\n        \"current_total_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"current_total_tax\": \"0.00\",\n        \"current_total_tax_set\": {\n            \"shop_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"customer_locale\": null,\n        \"device_id\": null,\n        \"discount_codes\": [],\n        \"email\": \"user@email.com\",\n        \"estimated_taxes\": false,\n        \"financial_status\": \"paid\",\n        \"fulfillment_status\": null,\n        \"landing_site\": null,\n        \"landing_site_ref\": null,\n        \"location_id\": null,\n        \"merchant_of_record_app_id\": null,\n        \"name\": \"#3906\",\n        \"note\": \"Exchange for an old Order #3809 with Logisy Return Request #2235EXC3809.\",\n        \"note_attributes\": [\n            {\n                \"name\": \"pragma_exchange_order_tag\",\n                \"value\": \"logisy_exchange_order\"\n            },\n            {\n                \"name\": \"Item id 13997892337817\",\n                \"value\": \"Exchange\"\n            },\n            {\n                \"name\": \"Variant id 44720345317529 Exchanging with\",\n                \"value\": \"Variant id 44720345383065\"\n            },\n            {\n                \"name\": \"AOTS-SS\",\n                \"value\": \"Exchange line item sku\"\n            },\n            {\n                \"name\": \"AOTS-SS Exchanging with\",\n                \"value\": \"AOTS-SL\"\n            }\n        ],\n        \"number\": 2906,\n        \"order_number\": 3906,\n        \"order_status_url\": \"https://bepragma-demo.myshopify.com/61345595545/orders/06a6bccda6022242d96fc5a2df12921f/authenticate?key=cb1ff4ae5357d8c4f679c7a5f4d2c05a\",\n        \"original_total_additional_fees_set\": null,\n        \"original_total_duties_set\": null,\n        \"payment_gateway_names\": [\n            \"razorpay\"\n        ],\n        \"phone\": null,\n        \"po_number\": null,\n        \"presentment_currency\": \"INR\",\n        \"processed_at\": \"2025-01-15T09:50:47+05:30\",\n        \"reference\": null,\n        \"referring_site\": null,\n        \"source_identifier\": null,\n        \"source_name\": \"88617451521\",\n        \"source_url\": null,\n        \"subtotal_price\": \"779.00\",\n        \"subtotal_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"tags\": \"logisy_exchange_order, logisy_exchange_order_count_1, pragma_same_value_exchange\",\n        \"tax_exempt\": false,\n        \"tax_lines\": [],\n        \"taxes_included\": false,\n        \"test\": false,\n        \"token\": \"06a6bccda6022242d96fc5a2df12921f\",\n        \"total_discounts\": \"0.00\",\n        \"total_discounts_set\": {\n            \"shop_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"total_line_items_price\": \"779.00\",\n        \"total_line_items_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"total_outstanding\": \"779.00\",\n        \"total_price\": \"779.00\",\n        \"total_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"total_shipping_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"total_tax\": \"0.00\",\n        \"total_tax_set\": {\n            \"shop_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"total_tip_received\": \"0.00\",\n        \"total_weight\": 0,\n        \"updated_at\": \"2025-01-15T09:50:47+05:30\",\n        \"user_id\": null,\n        \"billing_address\": {\n            \"first_name\": \"Uzumaki\",\n            \"address1\": \"Home Address 1\",\n            \"phone\": \"9999999999\",\n            \"city\": \"Hyderabad\",\n            \"zip\": \"500089\",\n            \"province\": \"Telangana\",\n            \"country\": \"India\",\n            \"last_name\": \"Naruto\",\n            \"address2\": null,\n            \"company\": null,\n            \"latitude\": 17.3956911,\n            \"longitude\": 78.3328183,\n            \"name\": \"Uzumaki Naruto\",\n            \"country_code\": \"IN\",\n            \"province_code\": \"TS\"\n        },\n        \"customer\": {\n            \"id\": 6130466128025,\n            \"email\": \"user@email.com\",\n            \"created_at\": \"2022-06-23T19:56:34+05:30\",\n            \"updated_at\": \"2025-01-15T09:50:47+05:30\",\n            \"first_name\": \"Debopriyo\",\n            \"last_name\": \"Das\",\n            \"state\": \"disabled\",\n            \"note\": null,\n            \"verified_email\": true,\n            \"multipass_identifier\": null,\n            \"tax_exempt\": false,\n            \"phone\": \"+918347387398\",\n            \"email_marketing_consent\": {\n                \"state\": \"not_subscribed\",\n                \"opt_in_level\": \"single_opt_in\",\n                \"consent_updated_at\": null\n            },\n            \"sms_marketing_consent\": {\n                \"state\": \"not_subscribed\",\n                \"opt_in_level\": \"single_opt_in\",\n                \"consent_updated_at\": null,\n                \"consent_collected_from\": \"OTHER\"\n            },\n            \"tags\": \"\",\n            \"currency\": \"INR\",\n            \"tax_exemptions\": [],\n            \"admin_graphql_api_id\": \"gid://shopify/Customer/6130466128025\",\n            \"default_address\": {\n                \"id\": 9350660292761,\n                \"customer_id\": 6130466128025,\n                \"first_name\": \"Uzumaki\",\n                \"last_name\": \"Naruto\",\n                \"company\": null,\n                \"address1\": \"Home Address 1\",\n                \"address2\": null,\n                \"city\": \"Hyderabad\",\n                \"province\": \"Telangana\",\n                \"country\": \"India\",\n                \"zip\": \"500089\",\n                \"phone\": \"9999999999\",\n                \"name\": \"Uzumaki Naruto\",\n                \"province_code\": \"TS\",\n                \"country_code\": \"IN\",\n                \"country_name\": \"India\",\n                \"default\": true\n            }\n        },\n        \"discount_applications\": [],\n        \"fulfillments\": [],\n        \"line_items\": [\n            {\n                \"id\": 14406744539289,\n                \"admin_graphql_api_id\": \"gid://shopify/LineItem/14406744539289\",\n                \"attributed_staffs\": [],\n                \"current_quantity\": 1,\n                \"fulfillable_quantity\": 1,\n                \"fulfillment_service\": \"manual\",\n                \"fulfillment_status\": null,\n                \"gift_card\": false,\n                \"grams\": 500,\n                \"name\": \"\\\"Honey Bee Floral\\\" Blue Rayon Shirt - S\",\n                \"price\": \"779.00\",\n                \"price_set\": {\n                    \"shop_money\": {\n                        \"amount\": \"779.00\",\n                        \"currency_code\": \"INR\"\n                    },\n                    \"presentment_money\": {\n                        \"amount\": \"779.00\",\n                        \"currency_code\": \"INR\"\n                    }\n                },\n                \"product_exists\": true,\n                \"product_id\": 7680752287897,\n                \"properties\": [],\n                \"quantity\": 1,\n                \"requires_shipping\": true,\n                \"sku\": \"GSHSSHT20246BLU_S\",\n                \"taxable\": true,\n                \"title\": \"\\\"Honey Bee Floral\\\" Blue Rayon Shirt\",\n                \"total_discount\": \"0.00\",\n                \"total_discount_set\": {\n                    \"shop_money\": {\n                        \"amount\": \"0.00\",\n                        \"currency_code\": \"INR\"\n                    },\n                    \"presentment_money\": {\n                        \"amount\": \"0.00\",\n                        \"currency_code\": \"INR\"\n                    }\n                },\n                \"variant_id\": 43222020161689,\n                \"variant_inventory_management\": \"shopify\",\n                \"variant_title\": \"S\",\n                \"vendor\": \"bepragma-demo\",\n                \"tax_lines\": [],\n                \"duties\": [],\n                \"discount_allocations\": []\n            }\n        ],\n        \"payment_terms\": null,\n        \"refunds\": [],\n        \"shipping_address\": {\n            \"first_name\": \"Uzumaki\",\n            \"address1\": \"Home Address 1\",\n            \"phone\": \"9999999999\",\n            \"city\": \"Hyderabad\",\n            \"zip\": \"500089\",\n            \"province\": \"Telangana\",\n            \"country\": \"India\",\n            \"last_name\": \"Naruto\",\n            \"address2\": null,\n            \"company\": null,\n            \"latitude\": null,\n            \"longitude\": null,\n            \"name\": \"Uzumaki Naruto\",\n            \"country_code\": \"IN\",\n            \"province_code\": \"TS\"\n        },\n        \"shipping_lines\": []\n    }\n}"}],"_postman_id":"29a61c3f-3e3a-43be-a1c9-73e0223aece3"},{"name":"Create Partially Paid Order","id":"f1de0998-cce2-42c3-814b-b13d252b7c12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Token","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"order\": {\n        \"note\": \"Exchange for an old Order #3809 with Logisy Return Request #2235EXC3809.\",\n        \"tags\": \"logisy_exchange_order,pragma_same_value_exchange,logisy_exchange_order_count_1\",\n        \"customer\": {\n            \"id\": 6130466128025\n        },\n        \"line_items\": [\n            {\n                \"sku\": \"GSHSSHT20246BLU_S\",\n                \"price\": \"779.00\",\n                \"quantity\": 1,\n                \"product_id\": 7680752287897,\n                \"variant_id\": 43222020161689\n            }\n        ],\n        \"transactions\": [\n            {\n                \"gateway\": \"Cash on Delivery\",\n                \"kind\": \"sale\",\n                \"amount\": \"679.00\",\n                \"status\": \"pending\"\n            },\n            {\n                \"gateway\": \"razorpay\",\n                \"kind\": \"sale\",\n                \"amount\": \"100.00\",\n                \"status\": \"success\"\n            }\n        ],\n        \"discount_codes\": [],\n        \"taxes_included\": false,\n        \"billing_address\": {\n            \"zip\": \"500089\",\n            \"city\": \"Hyderabad\",\n            \"name\": \"Uzumaki Naruto\",\n            \"phone\": \"9999999999\",\n            \"country\": \"India\",\n            \"address1\": \"Home Address 1\",\n            \"address2\": null,\n            \"province\": \"Telangana\",\n            \"last_name\": \"Uzumaki\",\n            \"first_name\": \"Naruto\"\n        },\n        \"note_attributes\": [\n            {\n                \"name\": \"pragma_exchange_order_tag\",\n                \"value\": \"logisy_exchange_order\"\n            },\n            {\n                \"name\": \"Item id 13997892337817\",\n                \"value\": \"Exchange\"\n            },\n            {\n                \"name\": \"Variant id 44720345317529 Exchanging with\",\n                \"value\": \"Variant id 44720345383065\"\n            },\n            {\n                \"name\": \"AOTS-SS\",\n                \"value\": \"Exchange line item sku\"\n            },\n            {\n                \"name\": \"AOTS-SS Exchanging with\",\n                \"value\": \"AOTS-SL\"\n            }\n        ],\n        \"financial_status\": \"partially_paid\",\n        \"shipping_address\": {\n            \"zip\": \"500089\",\n            \"city\": \"Hyderabad\",\n            \"name\": \"Uzumaki Naruto\",\n            \"phone\": \"9999999999\",\n            \"country\": \"India\",\n            \"address1\": \"Home Address 1\",\n            \"address2\": null,\n            \"province\": \"Telangana\",\n            \"last_name\": \"Uzumaki\",\n            \"first_name\": \"Naruto\"\n        },\n        \"inventory_behaviour\": \"decrement_ignoring_policy\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-store.com/order/create","urlObject":{"protocol":"https","path":["order","create"],"host":["your-store","com"],"query":[],"variable":[]}},"response":[{"id":"d060bd22-1a75-4250-9bf0-d192b4fe077d","name":"Response","originalRequest":{"method":"POST","header":[{"key":"X-API-Token","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"order\": {\n        \"note\": \"Exchange for an old Order #3809 with Logisy Return Request #2235EXC3809.\",\n        \"tags\": \"logisy_exchange_order,pragma_same_value_exchange,logisy_exchange_order_count_1\",\n        \"customer\": {\n            \"id\": 6130466128025\n        },\n        \"line_items\": [\n            {\n                \"sku\": \"GSHSSHT20246BLU_S\",\n                \"price\": \"779.00\",\n                \"quantity\": 1,\n                \"product_id\": 7680752287897,\n                \"variant_id\": 43222020161689\n            }\n        ],\n        \"transactions\": [\n            {\n                \"gateway\": \"Cash on Delivery\",\n                \"kind\": \"sale\",\n                \"amount\": \"679.00\",\n                \"status\": \"pending\"\n            },\n            {\n                \"gateway\": \"razorpay\",\n                \"kind\": \"sale\",\n                \"amount\": \"100.00\",\n                \"status\": \"success\"\n            }\n        ],\n        \"discount_codes\": [],\n        \"taxes_included\": false,\n        \"billing_address\": {\n            \"zip\": \"500089\",\n            \"city\": \"Hyderabad\",\n            \"name\": \"Uzumaki Naruto\",\n            \"phone\": \"9999999999\",\n            \"country\": \"India\",\n            \"address1\": \"Home Address 1\",\n            \"address2\": null,\n            \"province\": \"Telangana\",\n            \"last_name\": \"Uzumaki\",\n            \"first_name\": \"Naruto\"\n        },\n        \"note_attributes\": [\n            {\n                \"name\": \"pragma_exchange_order_tag\",\n                \"value\": \"logisy_exchange_order\"\n            },\n            {\n                \"name\": \"Item id 13997892337817\",\n                \"value\": \"Exchange\"\n            },\n            {\n                \"name\": \"Variant id 44720345317529 Exchanging with\",\n                \"value\": \"Variant id 44720345383065\"\n            },\n            {\n                \"name\": \"AOTS-SS\",\n                \"value\": \"Exchange line item sku\"\n            },\n            {\n                \"name\": \"AOTS-SS Exchanging with\",\n                \"value\": \"AOTS-SL\"\n            }\n        ],\n        \"financial_status\": \"partially_paid\",\n        \"shipping_address\": {\n            \"zip\": \"500089\",\n            \"city\": \"Hyderabad\",\n            \"name\": \"Uzumaki Naruto\",\n            \"phone\": \"9999999999\",\n            \"country\": \"India\",\n            \"address1\": \"Home Address 1\",\n            \"address2\": null,\n            \"province\": \"Telangana\",\n            \"last_name\": \"Uzumaki\",\n            \"first_name\": \"Naruto\"\n        },\n        \"inventory_behaviour\": \"decrement_ignoring_policy\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-store.com/order/create"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"order\": {\n        \"id\": 5742456111257,\n        \"admin_graphql_api_id\": \"gid://shopify/Order/5742456111257\",\n        \"app_id\": 88617451521,\n        \"browser_ip\": null,\n        \"buyer_accepts_marketing\": false,\n        \"cancel_reason\": null,\n        \"cancelled_at\": null,\n        \"cart_token\": null,\n        \"checkout_id\": null,\n        \"checkout_token\": null,\n        \"client_details\": null,\n        \"closed_at\": null,\n        \"confirmation_number\": \"NACU8YAKM\",\n        \"confirmed\": true,\n        \"contact_email\": \"user@email.com\",\n        \"created_at\": \"2025-01-15T09:53:51+05:30\",\n        \"currency\": \"INR\",\n        \"current_subtotal_price\": \"779.00\",\n        \"current_subtotal_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"current_total_additional_fees_set\": null,\n        \"current_total_discounts\": \"0.00\",\n        \"current_total_discounts_set\": {\n            \"shop_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"current_total_duties_set\": null,\n        \"current_total_price\": \"779.00\",\n        \"current_total_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"current_total_tax\": \"0.00\",\n        \"current_total_tax_set\": {\n            \"shop_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"customer_locale\": null,\n        \"device_id\": null,\n        \"discount_codes\": [],\n        \"email\": \"user@email.com\",\n        \"estimated_taxes\": false,\n        \"financial_status\": \"partially_paid\",\n        \"fulfillment_status\": null,\n        \"landing_site\": null,\n        \"landing_site_ref\": null,\n        \"location_id\": null,\n        \"merchant_of_record_app_id\": null,\n        \"name\": \"#3908\",\n        \"note\": \"Exchange for an old Order #3809 with Logisy Return Request #2235EXC3809.\",\n        \"note_attributes\": [\n            {\n                \"name\": \"pragma_exchange_order_tag\",\n                \"value\": \"logisy_exchange_order\"\n            },\n            {\n                \"name\": \"Item id 13997892337817\",\n                \"value\": \"Exchange\"\n            },\n            {\n                \"name\": \"Variant id 44720345317529 Exchanging with\",\n                \"value\": \"Variant id 44720345383065\"\n            },\n            {\n                \"name\": \"AOTS-SS\",\n                \"value\": \"Exchange line item sku\"\n            },\n            {\n                \"name\": \"AOTS-SS Exchanging with\",\n                \"value\": \"AOTS-SL\"\n            }\n        ],\n        \"number\": 2908,\n        \"order_number\": 3908,\n        \"order_status_url\": \"https://bepragma-demo.myshopify.com/61345595545/orders/9da28088448c6b83b68d4b0b789b7918/authenticate?key=a63b3b415e9b9e12b1748d76b470646b\",\n        \"original_total_additional_fees_set\": null,\n        \"original_total_duties_set\": null,\n        \"payment_gateway_names\": [\n            \"Cash on Delivery\",\n            \"razorpay\"\n        ],\n        \"phone\": null,\n        \"po_number\": null,\n        \"presentment_currency\": \"INR\",\n        \"processed_at\": \"2025-01-15T09:53:51+05:30\",\n        \"reference\": null,\n        \"referring_site\": null,\n        \"source_identifier\": null,\n        \"source_name\": \"88617451521\",\n        \"source_url\": null,\n        \"subtotal_price\": \"779.00\",\n        \"subtotal_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"tags\": \"logisy_exchange_order, logisy_exchange_order_count_1, pragma_same_value_exchange\",\n        \"tax_exempt\": false,\n        \"tax_lines\": [],\n        \"taxes_included\": false,\n        \"test\": false,\n        \"token\": \"9da28088448c6b83b68d4b0b789b7918\",\n        \"total_discounts\": \"0.00\",\n        \"total_discounts_set\": {\n            \"shop_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"total_line_items_price\": \"779.00\",\n        \"total_line_items_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"total_outstanding\": \"679.00\",\n        \"total_price\": \"779.00\",\n        \"total_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"total_shipping_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"total_tax\": \"0.00\",\n        \"total_tax_set\": {\n            \"shop_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"total_tip_received\": \"0.00\",\n        \"total_weight\": 0,\n        \"updated_at\": \"2025-01-15T09:53:51+05:30\",\n        \"user_id\": null,\n        \"billing_address\": {\n            \"first_name\": \"Uzumaki\",\n            \"address1\": \"Home Address 1\",\n            \"phone\": \"9999999999\",\n            \"city\": \"Hyderabad\",\n            \"zip\": \"500089\",\n            \"province\": \"Telangana\",\n            \"country\": \"India\",\n            \"last_name\": \"Naruto\",\n            \"address2\": null,\n            \"company\": null,\n            \"latitude\": 17.3956911,\n            \"longitude\": 78.3328183,\n            \"name\": \"Uzumaki Naruto\",\n            \"country_code\": \"IN\",\n            \"province_code\": \"TS\"\n        },\n        \"customer\": {\n            \"id\": 6130466128025,\n            \"email\": \"user@email.com\",\n            \"created_at\": \"2022-06-23T19:56:34+05:30\",\n            \"updated_at\": \"2025-01-15T09:53:22+05:30\",\n            \"first_name\": \"Debopriyo\",\n            \"last_name\": \"Das\",\n            \"state\": \"disabled\",\n            \"note\": null,\n            \"verified_email\": true,\n            \"multipass_identifier\": null,\n            \"tax_exempt\": false,\n            \"phone\": \"+918347387398\",\n            \"email_marketing_consent\": {\n                \"state\": \"not_subscribed\",\n                \"opt_in_level\": \"single_opt_in\",\n                \"consent_updated_at\": null\n            },\n            \"sms_marketing_consent\": {\n                \"state\": \"not_subscribed\",\n                \"opt_in_level\": \"single_opt_in\",\n                \"consent_updated_at\": null,\n                \"consent_collected_from\": \"OTHER\"\n            },\n            \"tags\": \"\",\n            \"currency\": \"INR\",\n            \"tax_exemptions\": [],\n            \"admin_graphql_api_id\": \"gid://shopify/Customer/6130466128025\",\n            \"default_address\": {\n                \"id\": 9350660292761,\n                \"customer_id\": 6130466128025,\n                \"first_name\": \"Uzumaki\",\n                \"last_name\": \"Naruto\",\n                \"company\": null,\n                \"address1\": \"Home Address 1\",\n                \"address2\": null,\n                \"city\": \"Hyderabad\",\n                \"province\": \"Telangana\",\n                \"country\": \"India\",\n                \"zip\": \"500089\",\n                \"phone\": \"9999999999\",\n                \"name\": \"Uzumaki Naruto\",\n                \"province_code\": \"TS\",\n                \"country_code\": \"IN\",\n                \"country_name\": \"India\",\n                \"default\": true\n            }\n        },\n        \"discount_applications\": [],\n        \"fulfillments\": [],\n        \"line_items\": [\n            {\n                \"id\": 14406747553945,\n                \"admin_graphql_api_id\": \"gid://shopify/LineItem/14406747553945\",\n                \"attributed_staffs\": [],\n                \"current_quantity\": 1,\n                \"fulfillable_quantity\": 1,\n                \"fulfillment_service\": \"manual\",\n                \"fulfillment_status\": null,\n                \"gift_card\": false,\n                \"grams\": 500,\n                \"name\": \"\\\"Honey Bee Floral\\\" Blue Rayon Shirt - S\",\n                \"price\": \"779.00\",\n                \"price_set\": {\n                    \"shop_money\": {\n                        \"amount\": \"779.00\",\n                        \"currency_code\": \"INR\"\n                    },\n                    \"presentment_money\": {\n                        \"amount\": \"779.00\",\n                        \"currency_code\": \"INR\"\n                    }\n                },\n                \"product_exists\": true,\n                \"product_id\": 7680752287897,\n                \"properties\": [],\n                \"quantity\": 1,\n                \"requires_shipping\": true,\n                \"sku\": \"GSHSSHT20246BLU_S\",\n                \"taxable\": true,\n                \"title\": \"\\\"Honey Bee Floral\\\" Blue Rayon Shirt\",\n                \"total_discount\": \"0.00\",\n                \"total_discount_set\": {\n                    \"shop_money\": {\n                        \"amount\": \"0.00\",\n                        \"currency_code\": \"INR\"\n                    },\n                    \"presentment_money\": {\n                        \"amount\": \"0.00\",\n                        \"currency_code\": \"INR\"\n                    }\n                },\n                \"variant_id\": 43222020161689,\n                \"variant_inventory_management\": \"shopify\",\n                \"variant_title\": \"S\",\n                \"vendor\": \"bepragma-demo\",\n                \"tax_lines\": [],\n                \"duties\": [],\n                \"discount_allocations\": []\n            }\n        ],\n        \"payment_terms\": null,\n        \"refunds\": [],\n        \"shipping_address\": {\n            \"first_name\": \"Uzumaki\",\n            \"address1\": \"Home Address 1\",\n            \"phone\": \"9999999999\",\n            \"city\": \"Hyderabad\",\n            \"zip\": \"500089\",\n            \"province\": \"Telangana\",\n            \"country\": \"India\",\n            \"last_name\": \"Naruto\",\n            \"address2\": null,\n            \"company\": null,\n            \"latitude\": 17.3956911,\n            \"longitude\": 78.3328183,\n            \"name\": \"Uzumaki Naruto\",\n            \"country_code\": \"IN\",\n            \"province_code\": \"TS\"\n        },\n        \"shipping_lines\": []\n    }\n}"}],"_postman_id":"f1de0998-cce2-42c3-814b-b13d252b7c12"},{"name":"Create Paid Order With Discount","id":"5b5f85ce-96a8-4ec4-a319-97d520a37371","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Token","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"order\": {\n        \"note\": \"Exchange for an old Order #3809 with Logisy Return Request #2235EXC3809.\",\n        \"tags\": \"logisy_exchange_order,pragma_same_value_exchange,logisy_exchange_order_count_1\",\n        \"customer\": {\n            \"id\": 6130466128025\n        },\n        \"line_items\": [\n            {\n                \"sku\": \"GSHSSHT20246BLU_S\",\n                \"price\": \"779.00\",\n                \"quantity\": 1,\n                \"product_id\": 7680752287897,\n                \"variant_id\": 43222020161689\n            }\n        ],\n        \"transactions\": [\n            {\n                \"gateway\": \"razorpay\",\n                \"kind\": \"sale\",\n                \"amount\": \"679.00\",\n                \"status\": \"success\"\n            }\n        ],\n        \"discount_codes\": [\n            {\n                \"code\": \"EXCHANGE_ORDER_ADJUSTMENTS\",\n                \"amount\": \"100.00\",\n                \"type\": \"fixed_amount\"\n            }\n        ],\n        \"taxes_included\": false,\n        \"billing_address\": {\n            \"zip\": \"500089\",\n            \"city\": \"Hyderabad\",\n            \"name\": \"Uzumaki Naruto\",\n            \"phone\": \"9999999999\",\n            \"country\": \"India\",\n            \"address1\": \"Home Address 1\",\n            \"address2\": null,\n            \"province\": \"Telangana\",\n            \"last_name\": \"Uzumaki\",\n            \"first_name\": \"Naruto\"\n        },\n        \"note_attributes\": [\n            {\n                \"name\": \"pragma_exchange_order_tag\",\n                \"value\": \"logisy_exchange_order\"\n            },\n            {\n                \"name\": \"Item id 13997892337817\",\n                \"value\": \"Exchange\"\n            },\n            {\n                \"name\": \"Variant id 44720345317529 Exchanging with\",\n                \"value\": \"Variant id 44720345383065\"\n            },\n            {\n                \"name\": \"AOTS-SS\",\n                \"value\": \"Exchange line item sku\"\n            },\n            {\n                \"name\": \"AOTS-SS Exchanging with\",\n                \"value\": \"AOTS-SL\"\n            }\n        ],\n        \"financial_status\": \"paid\",\n        \"shipping_address\": {\n            \"zip\": \"500089\",\n            \"city\": \"Hyderabad\",\n            \"name\": \"Uzumaki Naruto\",\n            \"phone\": \"9999999999\",\n            \"country\": \"India\",\n            \"address1\": \"Home Address 1\",\n            \"address2\": null,\n            \"province\": \"Telangana\",\n            \"last_name\": \"Uzumaki\",\n            \"first_name\": \"Naruto\"\n        },\n        \"inventory_behaviour\": \"decrement_ignoring_policy\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-store.com/order/create","urlObject":{"protocol":"https","path":["order","create"],"host":["your-store","com"],"query":[],"variable":[]}},"response":[{"id":"e8d504bd-5746-4233-8b11-2d598cb2bbdf","name":"Response","originalRequest":{"method":"POST","header":[{"key":"X-API-Token","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"order\": {\n        \"note\": \"Exchange for an old Order #3809 with Logisy Return Request #2235EXC3809.\",\n        \"tags\": \"logisy_exchange_order,pragma_same_value_exchange,logisy_exchange_order_count_1\",\n        \"customer\": {\n            \"id\": 6130466128025\n        },\n        \"line_items\": [\n            {\n                \"sku\": \"GSHSSHT20246BLU_S\",\n                \"price\": \"779.00\",\n                \"quantity\": 1,\n                \"product_id\": 7680752287897,\n                \"variant_id\": 43222020161689\n            }\n        ],\n        \"transactions\": [\n            {\n                \"gateway\": \"razorpay\",\n                \"kind\": \"sale\",\n                \"amount\": \"679.00\",\n                \"status\": \"success\"\n            }\n        ],\n        \"discount_codes\": [\n            {\n                \"code\": \"EXCHANGE_ORDER_ADJUSTMENTS\",\n                \"amount\": \"100.00\",\n                \"type\": \"fixed_amount\"\n            }\n        ],\n        \"taxes_included\": false,\n        \"billing_address\": {\n            \"zip\": \"500089\",\n            \"city\": \"Hyderabad\",\n            \"name\": \"Uzumaki Naruto\",\n            \"phone\": \"9999999999\",\n            \"country\": \"India\",\n            \"address1\": \"Home Address 1\",\n            \"address2\": null,\n            \"province\": \"Telangana\",\n            \"last_name\": \"Uzumaki\",\n            \"first_name\": \"Naruto\"\n        },\n        \"note_attributes\": [\n            {\n                \"name\": \"pragma_exchange_order_tag\",\n                \"value\": \"logisy_exchange_order\"\n            },\n            {\n                \"name\": \"Item id 13997892337817\",\n                \"value\": \"Exchange\"\n            },\n            {\n                \"name\": \"Variant id 44720345317529 Exchanging with\",\n                \"value\": \"Variant id 44720345383065\"\n            },\n            {\n                \"name\": \"AOTS-SS\",\n                \"value\": \"Exchange line item sku\"\n            },\n            {\n                \"name\": \"AOTS-SS Exchanging with\",\n                \"value\": \"AOTS-SL\"\n            }\n        ],\n        \"financial_status\": \"paid\",\n        \"shipping_address\": {\n            \"zip\": \"500089\",\n            \"city\": \"Hyderabad\",\n            \"name\": \"Uzumaki Naruto\",\n            \"phone\": \"9999999999\",\n            \"country\": \"India\",\n            \"address1\": \"Home Address 1\",\n            \"address2\": null,\n            \"province\": \"Telangana\",\n            \"last_name\": \"Uzumaki\",\n            \"first_name\": \"Naruto\"\n        },\n        \"inventory_behaviour\": \"decrement_ignoring_policy\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-store.com/order/create"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"order\": {\n        \"id\": 5742457028761,\n        \"admin_graphql_api_id\": \"gid://shopify/Order/5742457028761\",\n        \"app_id\": 88617451521,\n        \"browser_ip\": null,\n        \"buyer_accepts_marketing\": false,\n        \"cancel_reason\": null,\n        \"cancelled_at\": null,\n        \"cart_token\": null,\n        \"checkout_id\": null,\n        \"checkout_token\": null,\n        \"client_details\": null,\n        \"closed_at\": null,\n        \"confirmation_number\": \"J45RUVMQR\",\n        \"confirmed\": true,\n        \"contact_email\": \"user@email.com\",\n        \"created_at\": \"2025-01-15T09:55:20+05:30\",\n        \"currency\": \"INR\",\n        \"current_subtotal_price\": \"679.00\",\n        \"current_subtotal_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"679.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"679.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"current_total_additional_fees_set\": null,\n        \"current_total_discounts\": \"100.00\",\n        \"current_total_discounts_set\": {\n            \"shop_money\": {\n                \"amount\": \"100.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"100.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"current_total_duties_set\": null,\n        \"current_total_price\": \"679.00\",\n        \"current_total_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"679.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"679.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"current_total_tax\": \"0.00\",\n        \"current_total_tax_set\": {\n            \"shop_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"customer_locale\": null,\n        \"device_id\": null,\n        \"discount_codes\": [\n            {\n                \"code\": \"EXCHANGE_ORDER_ADJUSTMENTS\",\n                \"amount\": \"100.00\",\n                \"type\": \"fixed_amount\"\n            }\n        ],\n        \"email\": \"user@email.com\",\n        \"estimated_taxes\": false,\n        \"financial_status\": \"paid\",\n        \"fulfillment_status\": null,\n        \"landing_site\": null,\n        \"landing_site_ref\": null,\n        \"location_id\": null,\n        \"merchant_of_record_app_id\": null,\n        \"name\": \"#3909\",\n        \"note\": \"Exchange for an old Order #3809 with Logisy Return Request #2235EXC3809.\",\n        \"note_attributes\": [\n            {\n                \"name\": \"pragma_exchange_order_tag\",\n                \"value\": \"logisy_exchange_order\"\n            },\n            {\n                \"name\": \"Item id 13997892337817\",\n                \"value\": \"Exchange\"\n            },\n            {\n                \"name\": \"Variant id 44720345317529 Exchanging with\",\n                \"value\": \"Variant id 44720345383065\"\n            },\n            {\n                \"name\": \"AOTS-SS\",\n                \"value\": \"Exchange line item sku\"\n            },\n            {\n                \"name\": \"AOTS-SS Exchanging with\",\n                \"value\": \"AOTS-SL\"\n            }\n        ],\n        \"number\": 2909,\n        \"order_number\": 3909,\n        \"order_status_url\": \"https://bepragma-demo.myshopify.com/61345595545/orders/bf501da07d2dfbca076bfd9de1875abc/authenticate?key=6ef5c59b63bf91b5800b059337139fa5\",\n        \"original_total_additional_fees_set\": null,\n        \"original_total_duties_set\": null,\n        \"payment_gateway_names\": [\n            \"razorpay\"\n        ],\n        \"phone\": null,\n        \"po_number\": null,\n        \"presentment_currency\": \"INR\",\n        \"processed_at\": \"2025-01-15T09:55:20+05:30\",\n        \"reference\": null,\n        \"referring_site\": null,\n        \"source_identifier\": null,\n        \"source_name\": \"88617451521\",\n        \"source_url\": null,\n        \"subtotal_price\": \"679.00\",\n        \"subtotal_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"679.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"679.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"tags\": \"logisy_exchange_order, logisy_exchange_order_count_1, pragma_same_value_exchange\",\n        \"tax_exempt\": false,\n        \"tax_lines\": [],\n        \"taxes_included\": false,\n        \"test\": false,\n        \"token\": \"bf501da07d2dfbca076bfd9de1875abc\",\n        \"total_discounts\": \"100.00\",\n        \"total_discounts_set\": {\n            \"shop_money\": {\n                \"amount\": \"100.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"100.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"total_line_items_price\": \"779.00\",\n        \"total_line_items_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"total_outstanding\": \"679.00\",\n        \"total_price\": \"679.00\",\n        \"total_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"679.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"679.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"total_shipping_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"total_tax\": \"0.00\",\n        \"total_tax_set\": {\n            \"shop_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"total_tip_received\": \"0.00\",\n        \"total_weight\": 0,\n        \"updated_at\": \"2025-01-15T09:55:20+05:30\",\n        \"user_id\": null,\n        \"billing_address\": {\n            \"first_name\": \"Uzumaki\",\n            \"address1\": \"Home Address 1\",\n            \"phone\": \"9999999999\",\n            \"city\": \"Hyderabad\",\n            \"zip\": \"500089\",\n            \"province\": \"Telangana\",\n            \"country\": \"India\",\n            \"last_name\": \"Naruto\",\n            \"address2\": null,\n            \"company\": null,\n            \"latitude\": null,\n            \"longitude\": null,\n            \"name\": \"Uzumaki Naruto\",\n            \"country_code\": \"IN\",\n            \"province_code\": \"TS\"\n        },\n        \"customer\": {\n            \"id\": 6130466128025,\n            \"email\": \"user@email.com\",\n            \"created_at\": \"2022-06-23T19:56:34+05:30\",\n            \"updated_at\": \"2025-01-15T09:53:54+05:30\",\n            \"first_name\": \"Debopriyo\",\n            \"last_name\": \"Das\",\n            \"state\": \"disabled\",\n            \"note\": null,\n            \"verified_email\": true,\n            \"multipass_identifier\": null,\n            \"tax_exempt\": false,\n            \"phone\": \"+918347387398\",\n            \"email_marketing_consent\": {\n                \"state\": \"not_subscribed\",\n                \"opt_in_level\": \"single_opt_in\",\n                \"consent_updated_at\": null\n            },\n            \"sms_marketing_consent\": {\n                \"state\": \"not_subscribed\",\n                \"opt_in_level\": \"single_opt_in\",\n                \"consent_updated_at\": null,\n                \"consent_collected_from\": \"OTHER\"\n            },\n            \"tags\": \"\",\n            \"currency\": \"INR\",\n            \"tax_exemptions\": [],\n            \"admin_graphql_api_id\": \"gid://shopify/Customer/6130466128025\",\n            \"default_address\": {\n                \"id\": 9350660292761,\n                \"customer_id\": 6130466128025,\n                \"first_name\": \"Uzumaki\",\n                \"last_name\": \"Naruto\",\n                \"company\": null,\n                \"address1\": \"Home Address 1\",\n                \"address2\": null,\n                \"city\": \"Hyderabad\",\n                \"province\": \"Telangana\",\n                \"country\": \"India\",\n                \"zip\": \"500089\",\n                \"phone\": \"9999999999\",\n                \"name\": \"Uzumaki Naruto\",\n                \"province_code\": \"TS\",\n                \"country_code\": \"IN\",\n                \"country_name\": \"India\",\n                \"default\": true\n            }\n        },\n        \"discount_applications\": [\n            {\n                \"target_type\": \"line_item\",\n                \"type\": \"manual\",\n                \"value\": \"100.0\",\n                \"value_type\": \"fixed_amount\",\n                \"allocation_method\": \"across\",\n                \"target_selection\": \"all\",\n                \"title\": \"EXCHANGE_ORDER_ADJUSTMENTS\",\n                \"description\": \"EXCHANGE_ORDER_ADJUSTMENTS\"\n            }\n        ],\n        \"fulfillments\": [],\n        \"line_items\": [\n            {\n                \"id\": 14406750109849,\n                \"admin_graphql_api_id\": \"gid://shopify/LineItem/14406750109849\",\n                \"attributed_staffs\": [],\n                \"current_quantity\": 1,\n                \"fulfillable_quantity\": 1,\n                \"fulfillment_service\": \"manual\",\n                \"fulfillment_status\": null,\n                \"gift_card\": false,\n                \"grams\": 500,\n                \"name\": \"\\\"Honey Bee Floral\\\" Blue Rayon Shirt - S\",\n                \"price\": \"779.00\",\n                \"price_set\": {\n                    \"shop_money\": {\n                        \"amount\": \"779.00\",\n                        \"currency_code\": \"INR\"\n                    },\n                    \"presentment_money\": {\n                        \"amount\": \"779.00\",\n                        \"currency_code\": \"INR\"\n                    }\n                },\n                \"product_exists\": true,\n                \"product_id\": 7680752287897,\n                \"properties\": [],\n                \"quantity\": 1,\n                \"requires_shipping\": true,\n                \"sku\": \"GSHSSHT20246BLU_S\",\n                \"taxable\": true,\n                \"title\": \"\\\"Honey Bee Floral\\\" Blue Rayon Shirt\",\n                \"total_discount\": \"0.00\",\n                \"total_discount_set\": {\n                    \"shop_money\": {\n                        \"amount\": \"0.00\",\n                        \"currency_code\": \"INR\"\n                    },\n                    \"presentment_money\": {\n                        \"amount\": \"0.00\",\n                        \"currency_code\": \"INR\"\n                    }\n                },\n                \"variant_id\": 43222020161689,\n                \"variant_inventory_management\": \"shopify\",\n                \"variant_title\": \"S\",\n                \"vendor\": \"bepragma-demo\",\n                \"tax_lines\": [],\n                \"duties\": [],\n                \"discount_allocations\": [\n                    {\n                        \"amount\": \"100.00\",\n                        \"amount_set\": {\n                            \"shop_money\": {\n                                \"amount\": \"100.00\",\n                                \"currency_code\": \"INR\"\n                            },\n                            \"presentment_money\": {\n                                \"amount\": \"100.00\",\n                                \"currency_code\": \"INR\"\n                            }\n                        },\n                        \"discount_application_index\": 0\n                    }\n                ]\n            }\n        ],\n        \"payment_terms\": null,\n        \"refunds\": [],\n        \"shipping_address\": {\n            \"first_name\": \"Uzumaki\",\n            \"address1\": \"Home Address 1\",\n            \"phone\": \"9999999999\",\n            \"city\": \"Hyderabad\",\n            \"zip\": \"500089\",\n            \"province\": \"Telangana\",\n            \"country\": \"India\",\n            \"last_name\": \"Naruto\",\n            \"address2\": null,\n            \"company\": null,\n            \"latitude\": 17.3956911,\n            \"longitude\": 78.3328183,\n            \"name\": \"Uzumaki Naruto\",\n            \"country_code\": \"IN\",\n            \"province_code\": \"TS\"\n        },\n        \"shipping_lines\": []\n    }\n}"}],"_postman_id":"5b5f85ce-96a8-4ec4-a319-97d520a37371"},{"name":"Create COD Order With Discount","id":"cdd200bb-36ff-4f4d-8c10-fcde9aab7702","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Token","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"order\": {\n        \"note\": \"Exchange for an old Order #3809 with Logisy Return Request #2235EXC3809.\",\n        \"tags\": \"logisy_exchange_order,pragma_same_value_exchange,logisy_exchange_order_count_1\",\n        \"customer\": {\n            \"id\": 6130466128025\n        },\n        \"line_items\": [\n            {\n                \"sku\": \"GSHSSHT20246BLU_S\",\n                \"price\": \"779.00\",\n                \"quantity\": 1,\n                \"product_id\": 7680752287897,\n                \"variant_id\": 43222020161689\n            }\n        ],\n        \"transactions\": [\n            {\n                \"gateway\": \"Cash on Delivery\",\n                \"kind\": \"sale\",\n                \"amount\": \"679.00\",\n                \"status\": \"pending\"\n            }\n        ],\n        \"discount_codes\": [\n            {\n                \"code\": \"EXCHANGE_ORDER_ADJUSTMENTS\",\n                \"amount\": \"100.00\",\n                \"type\": \"fixed_amount\"\n            }\n        ],\n        \"taxes_included\": false,\n        \"billing_address\": {\n            \"zip\": \"500089\",\n            \"city\": \"Hyderabad\",\n            \"name\": \"Uzumaki Naruto\",\n            \"phone\": \"9999999999\",\n            \"country\": \"India\",\n            \"address1\": \"Home Address 1\",\n            \"address2\": null,\n            \"province\": \"Telangana\",\n            \"last_name\": \"Uzumaki\",\n            \"first_name\": \"Naruto\"\n        },\n        \"note_attributes\": [\n            {\n                \"name\": \"pragma_exchange_order_tag\",\n                \"value\": \"logisy_exchange_order\"\n            },\n            {\n                \"name\": \"Item id 13997892337817\",\n                \"value\": \"Exchange\"\n            },\n            {\n                \"name\": \"Variant id 44720345317529 Exchanging with\",\n                \"value\": \"Variant id 44720345383065\"\n            },\n            {\n                \"name\": \"AOTS-SS\",\n                \"value\": \"Exchange line item sku\"\n            },\n            {\n                \"name\": \"AOTS-SS Exchanging with\",\n                \"value\": \"AOTS-SL\"\n            }\n        ],\n        \"financial_status\": \"pending\",\n        \"shipping_address\": {\n            \"zip\": \"500089\",\n            \"city\": \"Hyderabad\",\n            \"name\": \"Uzumaki Naruto\",\n            \"phone\": \"9999999999\",\n            \"country\": \"India\",\n            \"address1\": \"Home Address 1\",\n            \"address2\": null,\n            \"province\": \"Telangana\",\n            \"last_name\": \"Uzumaki\",\n            \"first_name\": \"Naruto\"\n        },\n        \"inventory_behaviour\": \"decrement_ignoring_policy\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-store.com/order/create","urlObject":{"protocol":"https","path":["order","create"],"host":["your-store","com"],"query":[],"variable":[]}},"response":[{"id":"03ef698e-e817-4050-b1a6-e6b8b9ea2e8f","name":"Response","originalRequest":{"method":"POST","header":[{"key":"X-API-Token","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"order\": {\n        \"note\": \"Exchange for an old Order #3809 with Logisy Return Request #2235EXC3809.\",\n        \"tags\": \"logisy_exchange_order,pragma_same_value_exchange,logisy_exchange_order_count_1\",\n        \"customer\": {\n            \"id\": 6130466128025\n        },\n        \"line_items\": [\n            {\n                \"sku\": \"GSHSSHT20246BLU_S\",\n                \"price\": \"779.00\",\n                \"quantity\": 1,\n                \"product_id\": 7680752287897,\n                \"variant_id\": 43222020161689\n            }\n        ],\n        \"transactions\": [\n            {\n                \"gateway\": \"Cash on Delivery\",\n                \"kind\": \"sale\",\n                \"amount\": \"679.00\",\n                \"status\": \"pending\"\n            }\n        ],\n        \"discount_codes\": [\n            {\n                \"code\": \"EXCHANGE_ORDER_ADJUSTMENTS\",\n                \"amount\": \"100.00\",\n                \"type\": \"fixed_amount\"\n            }\n        ],\n        \"taxes_included\": false,\n        \"billing_address\": {\n            \"zip\": \"500089\",\n            \"city\": \"Hyderabad\",\n            \"name\": \"Uzumaki Naruto\",\n            \"phone\": \"9999999999\",\n            \"country\": \"India\",\n            \"address1\": \"Home Address 1\",\n            \"address2\": null,\n            \"province\": \"Telangana\",\n            \"last_name\": \"Uzumaki\",\n            \"first_name\": \"Naruto\"\n        },\n        \"note_attributes\": [\n            {\n                \"name\": \"pragma_exchange_order_tag\",\n                \"value\": \"logisy_exchange_order\"\n            },\n            {\n                \"name\": \"Item id 13997892337817\",\n                \"value\": \"Exchange\"\n            },\n            {\n                \"name\": \"Variant id 44720345317529 Exchanging with\",\n                \"value\": \"Variant id 44720345383065\"\n            },\n            {\n                \"name\": \"AOTS-SS\",\n                \"value\": \"Exchange line item sku\"\n            },\n            {\n                \"name\": \"AOTS-SS Exchanging with\",\n                \"value\": \"AOTS-SL\"\n            }\n        ],\n        \"financial_status\": \"pending\",\n        \"shipping_address\": {\n            \"zip\": \"500089\",\n            \"city\": \"Hyderabad\",\n            \"name\": \"Uzumaki Naruto\",\n            \"phone\": \"9999999999\",\n            \"country\": \"India\",\n            \"address1\": \"Home Address 1\",\n            \"address2\": null,\n            \"province\": \"Telangana\",\n            \"last_name\": \"Uzumaki\",\n            \"first_name\": \"Naruto\"\n        },\n        \"inventory_behaviour\": \"decrement_ignoring_policy\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-store.com/order/create"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"order\": {\n        \"id\": 5742459584665,\n        \"admin_graphql_api_id\": \"gid://shopify/Order/5742459584665\",\n        \"app_id\": 88617451521,\n        \"browser_ip\": null,\n        \"buyer_accepts_marketing\": false,\n        \"cancel_reason\": null,\n        \"cancelled_at\": null,\n        \"cart_token\": null,\n        \"checkout_id\": null,\n        \"checkout_token\": null,\n        \"client_details\": null,\n        \"closed_at\": null,\n        \"confirmation_number\": \"QHJM0UVW8\",\n        \"confirmed\": true,\n        \"contact_email\": \"user@email.com\",\n        \"created_at\": \"2025-01-15T09:59:37+05:30\",\n        \"currency\": \"INR\",\n        \"current_subtotal_price\": \"679.00\",\n        \"current_subtotal_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"679.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"679.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"current_total_additional_fees_set\": null,\n        \"current_total_discounts\": \"100.00\",\n        \"current_total_discounts_set\": {\n            \"shop_money\": {\n                \"amount\": \"100.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"100.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"current_total_duties_set\": null,\n        \"current_total_price\": \"679.00\",\n        \"current_total_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"679.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"679.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"current_total_tax\": \"0.00\",\n        \"current_total_tax_set\": {\n            \"shop_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"customer_locale\": null,\n        \"device_id\": null,\n        \"discount_codes\": [\n            {\n                \"code\": \"EXCHANGE_ORDER_ADJUSTMENTS\",\n                \"amount\": \"100.00\",\n                \"type\": \"fixed_amount\"\n            }\n        ],\n        \"email\": \"user@email.com\",\n        \"estimated_taxes\": false,\n        \"financial_status\": \"pending\",\n        \"fulfillment_status\": null,\n        \"landing_site\": null,\n        \"landing_site_ref\": null,\n        \"location_id\": null,\n        \"merchant_of_record_app_id\": null,\n        \"name\": \"#3910\",\n        \"note\": \"Exchange for an old Order #3809 with Logisy Return Request #2235EXC3809.\",\n        \"note_attributes\": [\n            {\n                \"name\": \"pragma_exchange_order_tag\",\n                \"value\": \"logisy_exchange_order\"\n            },\n            {\n                \"name\": \"Item id 13997892337817\",\n                \"value\": \"Exchange\"\n            },\n            {\n                \"name\": \"Variant id 44720345317529 Exchanging with\",\n                \"value\": \"Variant id 44720345383065\"\n            },\n            {\n                \"name\": \"AOTS-SS\",\n                \"value\": \"Exchange line item sku\"\n            },\n            {\n                \"name\": \"AOTS-SS Exchanging with\",\n                \"value\": \"AOTS-SL\"\n            }\n        ],\n        \"number\": 2910,\n        \"order_number\": 3910,\n        \"order_status_url\": \"https://bepragma-demo.myshopify.com/61345595545/orders/b4cd697ed46c2a0eddf3ca20baa8f17b/authenticate?key=8596b25313cd32e906a450f69c177f42\",\n        \"original_total_additional_fees_set\": null,\n        \"original_total_duties_set\": null,\n        \"payment_gateway_names\": [\n            \"Cash on Delivery\"\n        ],\n        \"phone\": null,\n        \"po_number\": null,\n        \"presentment_currency\": \"INR\",\n        \"processed_at\": \"2025-01-15T09:59:37+05:30\",\n        \"reference\": null,\n        \"referring_site\": null,\n        \"source_identifier\": null,\n        \"source_name\": \"88617451521\",\n        \"source_url\": null,\n        \"subtotal_price\": \"679.00\",\n        \"subtotal_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"679.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"679.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"tags\": \"logisy_exchange_order, logisy_exchange_order_count_1, pragma_same_value_exchange\",\n        \"tax_exempt\": false,\n        \"tax_lines\": [],\n        \"taxes_included\": false,\n        \"test\": false,\n        \"token\": \"b4cd697ed46c2a0eddf3ca20baa8f17b\",\n        \"total_discounts\": \"100.00\",\n        \"total_discounts_set\": {\n            \"shop_money\": {\n                \"amount\": \"100.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"100.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"total_line_items_price\": \"779.00\",\n        \"total_line_items_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"779.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"total_outstanding\": \"679.00\",\n        \"total_price\": \"679.00\",\n        \"total_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"679.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"679.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"total_shipping_price_set\": {\n            \"shop_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"total_tax\": \"0.00\",\n        \"total_tax_set\": {\n            \"shop_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            },\n            \"presentment_money\": {\n                \"amount\": \"0.00\",\n                \"currency_code\": \"INR\"\n            }\n        },\n        \"total_tip_received\": \"0.00\",\n        \"total_weight\": 0,\n        \"updated_at\": \"2025-01-15T09:59:37+05:30\",\n        \"user_id\": null,\n        \"billing_address\": {\n            \"first_name\": \"Uzumaki\",\n            \"address1\": \"Home Address 1\",\n            \"phone\": \"9999999999\",\n            \"city\": \"Hyderabad\",\n            \"zip\": \"500089\",\n            \"province\": \"Telangana\",\n            \"country\": \"India\",\n            \"last_name\": \"Naruto\",\n            \"address2\": null,\n            \"company\": null,\n            \"latitude\": null,\n            \"longitude\": null,\n            \"name\": \"Uzumaki Naruto\",\n            \"country_code\": \"IN\",\n            \"province_code\": \"TS\"\n        },\n        \"customer\": {\n            \"id\": 6130466128025,\n            \"email\": \"user@email.com\",\n            \"created_at\": \"2022-06-23T19:56:34+05:30\",\n            \"updated_at\": \"2025-01-15T09:55:24+05:30\",\n            \"first_name\": \"Debopriyo\",\n            \"last_name\": \"Das\",\n            \"state\": \"disabled\",\n            \"note\": null,\n            \"verified_email\": true,\n            \"multipass_identifier\": null,\n            \"tax_exempt\": false,\n            \"phone\": \"+918347387398\",\n            \"email_marketing_consent\": {\n                \"state\": \"not_subscribed\",\n                \"opt_in_level\": \"single_opt_in\",\n                \"consent_updated_at\": null\n            },\n            \"sms_marketing_consent\": {\n                \"state\": \"not_subscribed\",\n                \"opt_in_level\": \"single_opt_in\",\n                \"consent_updated_at\": null,\n                \"consent_collected_from\": \"OTHER\"\n            },\n            \"tags\": \"\",\n            \"currency\": \"INR\",\n            \"tax_exemptions\": [],\n            \"admin_graphql_api_id\": \"gid://shopify/Customer/6130466128025\",\n            \"default_address\": {\n                \"id\": 9350660292761,\n                \"customer_id\": 6130466128025,\n                \"first_name\": \"Uzumaki\",\n                \"last_name\": \"Naruto\",\n                \"company\": null,\n                \"address1\": \"Home Address 1\",\n                \"address2\": null,\n                \"city\": \"Hyderabad\",\n                \"province\": \"Telangana\",\n                \"country\": \"India\",\n                \"zip\": \"500089\",\n                \"phone\": \"9999999999\",\n                \"name\": \"Uzumaki Naruto\",\n                \"province_code\": \"TS\",\n                \"country_code\": \"IN\",\n                \"country_name\": \"India\",\n                \"default\": true\n            }\n        },\n        \"discount_applications\": [\n            {\n                \"target_type\": \"line_item\",\n                \"type\": \"manual\",\n                \"value\": \"100.0\",\n                \"value_type\": \"fixed_amount\",\n                \"allocation_method\": \"across\",\n                \"target_selection\": \"all\",\n                \"title\": \"EXCHANGE_ORDER_ADJUSTMENTS\",\n                \"description\": \"EXCHANGE_ORDER_ADJUSTMENTS\"\n            }\n        ],\n        \"fulfillments\": [],\n        \"line_items\": [\n            {\n                \"id\": 14406754533529,\n                \"admin_graphql_api_id\": \"gid://shopify/LineItem/14406754533529\",\n                \"attributed_staffs\": [],\n                \"current_quantity\": 1,\n                \"fulfillable_quantity\": 1,\n                \"fulfillment_service\": \"manual\",\n                \"fulfillment_status\": null,\n                \"gift_card\": false,\n                \"grams\": 500,\n                \"name\": \"\\\"Honey Bee Floral\\\" Blue Rayon Shirt - S\",\n                \"price\": \"779.00\",\n                \"price_set\": {\n                    \"shop_money\": {\n                        \"amount\": \"779.00\",\n                        \"currency_code\": \"INR\"\n                    },\n                    \"presentment_money\": {\n                        \"amount\": \"779.00\",\n                        \"currency_code\": \"INR\"\n                    }\n                },\n                \"product_exists\": true,\n                \"product_id\": 7680752287897,\n                \"properties\": [],\n                \"quantity\": 1,\n                \"requires_shipping\": true,\n                \"sku\": \"GSHSSHT20246BLU_S\",\n                \"taxable\": true,\n                \"title\": \"\\\"Honey Bee Floral\\\" Blue Rayon Shirt\",\n                \"total_discount\": \"0.00\",\n                \"total_discount_set\": {\n                    \"shop_money\": {\n                        \"amount\": \"0.00\",\n                        \"currency_code\": \"INR\"\n                    },\n                    \"presentment_money\": {\n                        \"amount\": \"0.00\",\n                        \"currency_code\": \"INR\"\n                    }\n                },\n                \"variant_id\": 43222020161689,\n                \"variant_inventory_management\": \"shopify\",\n                \"variant_title\": \"S\",\n                \"vendor\": \"bepragma-demo\",\n                \"tax_lines\": [],\n                \"duties\": [],\n                \"discount_allocations\": [\n                    {\n                        \"amount\": \"100.00\",\n                        \"amount_set\": {\n                            \"shop_money\": {\n                                \"amount\": \"100.00\",\n                                \"currency_code\": \"INR\"\n                            },\n                            \"presentment_money\": {\n                                \"amount\": \"100.00\",\n                                \"currency_code\": \"INR\"\n                            }\n                        },\n                        \"discount_application_index\": 0\n                    }\n                ]\n            }\n        ],\n        \"payment_terms\": null,\n        \"refunds\": [],\n        \"shipping_address\": {\n            \"first_name\": \"Uzumaki\",\n            \"address1\": \"Home Address 1\",\n            \"phone\": \"9999999999\",\n            \"city\": \"Hyderabad\",\n            \"zip\": \"500089\",\n            \"province\": \"Telangana\",\n            \"country\": \"India\",\n            \"last_name\": \"Naruto\",\n            \"address2\": null,\n            \"company\": null,\n            \"latitude\": 17.3956911,\n            \"longitude\": 78.3328183,\n            \"name\": \"Uzumaki Naruto\",\n            \"country_code\": \"IN\",\n            \"province_code\": \"TS\"\n        },\n        \"shipping_lines\": []\n    }\n}"}],"_postman_id":"cdd200bb-36ff-4f4d-8c10-fcde9aab7702"}],"id":"13c7bdd2-db05-4617-9ec9-405668c9025d","description":"<p>The following list of APIs/webhooks needs to be implemented at the store's system so that order data can be queried or posted by Logisy as and when needed.</p>\n<blockquote>\n<p><strong>NOTE:</strong> All the following APIs/webhooks expect <code>200 OK</code> as HTTP statuses. Anything else is consdered as an error and thus Logisy will re-try the webhooks for a maximum of three times with a gap of 1 min between each successive try. If your APIs still fail, Logisy will let you know via an email.</p>\n</blockquote>\n","event":[{"listen":"prerequest","script":{"id":"67b37fe6-7da2-40aa-80a5-90cf2ee1d8c4","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3d251495-a6d5-416e-82b4-ab717311952a","type":"text/javascript","exec":[""]}}],"_postman_id":"13c7bdd2-db05-4617-9ec9-405668c9025d"}],"id":"b360ac21-cef8-4419-b8f5-be91a70ce5b2","description":"<p>Orders are created when a customer makes a successful purchase from your store. There are many events that happen during an order's lifecycle. Please refer to the diagram below for better understanding.</p>\n<p><img src=\"https://logisy.s3.amazonaws.com/documentation_images/OrderEvents.jpg\" alt /></p>\n<hr />\n<h2 id=\"order-object\">Order Object</h2>\n<p>The following is the structure of the Order Object.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><strong>id (str):</strong> A unique id assigned by your store's system</li>\n<li><strong>note (str, optional):</strong> A note associated with the order</li>\n<li><strong>tags (str, optional):</strong> Tags associated with the order</li>\n<li><strong>first_name (str):</strong> Customer's first name</li>\n<li><strong>last_name (str):</strong> Customer's last name</li>\n<li><strong>email (str):</strong> Customer's email</li>\n<li><strong>phone (str):</strong> Customer's phone number</li>\n<li><strong>currency (str):</strong> The currency of the order price. Choose from: (INR)</li>\n<li><strong>shipping_cost (str):</strong> The total shipping cost associated with this order</li>\n<li><strong>total_tax (str):</strong> The total tax amount for this order</li>\n<li><strong>total_discounts (str):</strong> The total discount amount for this order</li>\n<li><strong>price_without_tax (str):</strong> The price of the order without taxes being applied</li>\n<li><strong>total_price (str):</strong> The price of the order including shipping cost, taxes and discounts if applicable</li>\n<li><strong>created_at (****<code>ISO 8601 datetime</code></strong> <strong>str):</strong> Order creation timestamp</li>\n<li><strong>line_items (****<code>line_items</code></strong> <strong>arr):</strong> The details about the items being purchased via this order. Check the <code>line_items</code> array below for reference</li>\n<li><strong>checkout_id (str, optional):</strong> The id of the checkout object assigned by your store, so that it can be mapped with a checkout object</li>\n<li><strong>source_name (str):</strong> The source from where this order was created. Choose from: (web, mobile)</li>\n<li><strong>order_number (str):</strong> An order number assigned by your store's system - typically this number is used to communicate with your customer and is human readable. This number will be used for all kinds of communications with the customer by Logisy</li>\n<li><strong>discount_codes (arr of str, optional):</strong> An array of string containing all the discount codes availed for this order</li>\n<li><strong>billing_address (****<code>address</code></strong> <strong>obj):</strong> Check the <code>address</code> object below for reference</li>\n<li><strong>financial_status (str):</strong> The current financial status of the order. Choose from: (paid, partially_paid, voided, partially_refunded, authorized, refunded, pending). For COD order, send <code>pending</code> and for pre-paid order, send <code>paid</code></li>\n<li><strong>shipment_tracking_id (str, optional):</strong> The shipment tracking id for the order</li>\n<li><strong>shipment_company (str, optional):</strong> The shipment company name for the order</li>\n<li><strong>shipment_tracking_url (str, optional):</strong> The shipment tracking url for the order</li>\n<li><strong>is_delivered (bool, optional):</strong> If the order has already been delivered</li>\n<li><strong>is_rto (bool, optional):</strong> If the order has already been rto'd</li>\n<li><strong>cancelled_at (****<code>ISO 8601 datetime</code></strong> <strong>str, optional):</strong> If the order has already been cancelled, provide the cancelled at timestamp</li>\n<li><strong>order_status_url (str):</strong> A URL where this order's status can be found. Logisy will use this url to communicate with the customer during order confirmation</li>\n<li><strong>shipping_address (****<code>address</code></strong> <strong>obj):</strong> Check the <code>address</code> object below for reference</li>\n<li><strong>payment_gateway_names (arr of str):</strong> An array of string containing the names of the payment gateways used for the order. Send <code>cash_on_delivery</code> for COD orders</li>\n<li><strong>buyer_accepts_marketing (bool, optional):</strong> Whether the customer accepts marketing or not</li>\n<li><strong>device_id (str, optional):</strong> Device id from which this order was placed</li>\n<li><strong>referring_site (str, optional):</strong> From which external site this user was referred, if any</li>\n<li><strong>browser_ip (str, optional):</strong> IP of the browser from which the order was placed</li>\n<li><strong>brand_name (str, optional):</strong> Brand Name to be use in the Notification Messages. For example, in case of Dropshipping, you would want your client's name to be used.</li>\n</ul>\n<h3 id=\"example-object\">Example object</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"id\": \"2711891284034\",\n    \"note\": \"Some note about this order\",\n    \"tags\": \"some_tag_1,some_tag_2\",\n    \"first_name\": \"Jane\",\n    \"last_name\": \"Doe\",\n    \"email\": \"janedoe@somesite.com\",\n    \"phone\": \"9880000000\",\n    \"currency\": \"INR\",\n    \"shipping_cost\": \"100.00\",\n    \"total_tax\": \"99.00\",\n    \"total_discounts\": \"0.00\",\n    \"price_without_tax\": \"1000.00\",\n    \"total_price\": \"1099.00\",\n    \"created_at\": \"2020-09-12T14:20:34+05:30\",\n    \"line_items\": [\n        {\n        \"id\": \"2349854027448\",\n        \"sku\": \"7JHD8893 BLUE STRIPE TEE SHIRT 04 M\",\n        \"name\": \"Stripe Tee Shirt - M / Blue\",\n        \"title\": \"Stripe Tee Shirt\",\n        \"grams\": 1200,\n        \"total_tax\": \"99.00\",\n        \"total_discounts\": \"0.00\",\n        \"price_without_tax\": \"1000.00\",\n        \"total_price\": \"1099.00\",\n        \"quantity\": 2,\n        \"product_id\": \"5684027447458\",\n        \"variant_id\": \"36047249860194\"\n        },\n        {\n        \"id\": \"2349854027501\",\n        \"sku\": \"7JHD8893 GREEN STRIPE TEE SHIRT 04 M\",\n        \"name\": \"Stripe Tee Shirt - M / Green\",\n        \"title\": \"Stripe Tee Shirt\",\n        \"grams\": 1300,\n        \"total_tax\": \"99.00\",\n        \"total_discounts\": \"0.00\",\n        \"price_without_tax\": \"1000.00\",\n        \"total_price\": \"1099.00\",\n        \"quantity\": 1,\n        \"product_id\": \"5684027447458\",\n        \"variant_id\": \"36047249860194\"\n        }\n    ],\n    \"checkout_id\": \"14689190521954\",\n    \"source_name\": \"web\",\n    \"order_number\": \"12926\",\n    \"discount_codes\": [\n        \"DIWALI123\",\n        \"FLAT100OFF\"\n    ],\n    \"billing_address\": {\n        \"id\": \"4824720729506\",\n        \"zip\": \"110000\",\n        \"city\": \"New Delhi\",\n        \"phone\": \"+919880000000\",\n        \"country\": \"India\",\n        \"default\": true,\n        \"address1\": \"Address line 1\",\n        \"address2\": \"Address line 2\",\n        \"province\": \"Delhi\",\n        \"country_code\": \"IN\",\n        \"country_name\": \"India\",\n        \"province_code\": \"DL\",\n        \"latitude\": 76.99874,\n        \"longitude\": 78.773522\n    },\n    \"financial_status\": \"pending\",\n    \"shipment_tracking_id\": \"77495628340\",\n    \"shipment_company\": \"Delhivery\",\n    \"shipment_tracking_url\": \"https://delhivery.com/track/77495628340/\",\n    \"is_delivered\": false,\n    \"is_rto\": false,\n    \"cancelled_at\": null,\n    \"order_status_url\": \"https://yourstore.com/orders/2711891284034/\",\n    \"shipping_address\": {\n        \"id\": \"4824720729506\",\n        \"zip\": \"110000\",\n        \"city\": \"New Delhi\",\n        \"phone\": \"+919880000000\",\n        \"country\": \"India\",\n        \"default\": true,\n        \"address1\": \"Address line 1\",\n        \"address2\": \"Address line 2\",\n        \"province\": \"Delhi\",\n        \"country_code\": \"IN\",\n        \"country_name\": \"India\",\n        \"province_code\": \"DL\",\n        \"latitude\": 76.99874,\n        \"longitude\": 78.773522\n    },\n    \"payment_gateway_names\": [\n        \"cash_on_delivery\",\n        \"cashfree\"\n    ],\n    \"buyer_accepts_marketing\": true,\n    \"device_id\": \"uisd67834iuiu5489\",\n    \"referring_site\": \"https://facebook.com/some-campaign/\",\n    \"browser_ip\": \"192.168.0.145\",\n    \"brand_name: \"Brand X\"\n}\n\n</code></pre>","event":[{"listen":"prerequest","script":{"id":"f4bc64fd-5340-4255-a0a5-a254d01f231c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7ca2c8ab-8dc1-45b4-89be-9d77bcda505e","type":"text/javascript","exec":[""]}}],"_postman_id":"b360ac21-cef8-4419-b8f5-be91a70ce5b2"},{"name":"Coupons","item":[{"name":"Client-side APIs / Webhooks","item":[{"name":"Generate Coupon API","id":"8f054ef5-c0f2-4404-a0c3-14436bdc239e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Token","value":"","type":"text"},{"key":"","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"discount_type\": \"fixed\",\n    \"discount_value\": 100,\n    \"individual_use\": false,\n    \"usage_limit\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://your-store.com/your-generate-coupon api-url","description":"<h2 id=\"parameters\">Parameters</h2>\n<ul>\n<li><strong>discount_value (dec):</strong> The numerical value of the coupon</li>\n<li><strong>discount_type (str):</strong> How the numerical coupon value should be interpreted. Choose from: (percent, fixed). If the value is <code>percent</code>, it will be treated as a percentage value, else as the absolute value. E.g.: <code>{\"value\": 50.00, \"type\": \"fixed\"}</code> means INR 50.00 off, whereas, <code>{\"value\": 7.5, \"type\": \"percent\"}</code> means 7.5% off</li>\n<li><strong>individual_use (bool):</strong> Whether the coupon is applicable only for one user</li>\n<li><strong>usage_limit (int):</strong> The number of times this coupon can be used</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><strong>Expected HTTP Status Code:</strong> <code>200 OK</code></li>\n<li><strong>Response Data:</strong><ul>\n<li><strong>coupon_code (str):</strong> The coupon code to be used for the discount. This code will be sent to a customer and will be used at your store's site to avail the discount</li>\n</ul>\n</li>\n<li><strong>Failsafe:</strong> Anything other than HTTP Status of 200 OK will be considered as an error and Logisy will make three further attempts to post the data</li>\n</ul>\n","urlObject":{"protocol":"https","path":["your-generate-coupon api-url"],"host":["your-store","com"],"query":[],"variable":[]}},"response":[{"id":"9dc31a07-e661-48cf-b28e-8d62d598b684","name":"Generate Coupon API","originalRequest":{"method":"POST","header":[{"key":"X-API-Token","type":"text","value":""},{"key":"","type":"text","value":"{{API_KEY}}"}],"body":{"mode":"raw","raw":"{\n    \"discount_type\": \"fixed\",\n    \"discount_value\": 100,\n    \"individual_use\": false,\n    \"usage_limit\": 1\n}","options":{"raw":{"language":"json"}}},"url":""},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"coupon_code\": \"100OFF\"\n}"}],"_postman_id":"8f054ef5-c0f2-4404-a0c3-14436bdc239e"}],"id":"d4459f9c-f718-4a25-a690-965c8ec0c0b9","description":"<p>The following list of APIs/webhooks need to be provided by your system so that your Logisy can request for coupons.</p>\n","event":[{"listen":"prerequest","script":{"id":"e3e0b1f5-2644-4b62-b4ff-1b20b55e1095","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"970cf4b8-5472-4404-bf82-d4c41de9d963","type":"text/javascript","exec":[""]}}],"_postman_id":"d4459f9c-f718-4a25-a690-965c8ec0c0b9"}],"id":"e8614c4d-dc34-40ab-a477-d76c185bd1c7","description":"<p>In order to maximize conversion, Logisy sends offers to potential customers. Thus a coupon generation API is required for the same.</p>\n","event":[{"listen":"prerequest","script":{"id":"21dd5ebf-dd5a-4444-935e-7d5ba14d079a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9cfe3c64-4d85-4c02-b762-a634fa447ad5","type":"text/javascript","exec":[""]}}],"_postman_id":"e8614c4d-dc34-40ab-a477-d76c185bd1c7"},{"name":"Products","item":[{"name":"Pragma APIs / Webhooks","item":[{"name":"Product List API","id":"4a7f151b-8d52-4d3c-b7da-f5a597949225","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-Key","value":"{{API_KEY}}","type":"text"}],"url":"{{HOST}}/api/stores/products/?limit=10&offset=0","urlObject":{"path":["api","stores","products",""],"host":["{{HOST}}"],"query":[{"key":"limit","value":"10"},{"key":"offset","value":"0"}],"variable":[]}},"response":[{"id":"007829f2-f8d8-4257-9879-0362783170f2","name":"Product List","originalRequest":{"method":"GET","header":[{"key":"X-API-Key","value":"{{API_KEY}}","type":"text"}],"url":{"raw":"{{HOST}}/api/stores/products/?limit=10&offset=0","host":["{{HOST}}"],"path":["api","stores","products",""],"query":[{"key":"limit","value":"10"},{"key":"offset","value":"0"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 1051457,\n            \"handle\": \"amazing-shoes2\",\n            \"product_url\": \"https:///products/amazing-shoes2\",\n            \"product_title\": \"Amazing Shoes2\",\n            \"store_product_id\": \"2\",\n            \"description\": \"\",\n            \"product_type\": \"\",\n            \"variants\": [\n                {\n                    \"id\": 1406210246,\n                    \"variant_img\": \"https://cdn.shopify.com/s/files/1/0519/3390/5060/products/Stefano-Bemer-Shoes-1-1027x560.jpg?v=1608700417\",\n                    \"variant_id\": \"2\",\n                    \"sku\": \"46748JFGH7\",\n                    \"price\": \"1200.00\",\n                    \"title\": \"S\",\n                    \"inventory_quantity\": 51,\n                    \"product_id\": 1051457,\n                    \"inventory_management\": null\n                }\n            ],\n            \"images\": []\n        },\n        {\n            \"id\": 1051754,\n            \"handle\": \"None\",\n            \"product_url\": \"None\",\n            \"product_title\": \"VVVVVVVVVVVV-Small\",\n            \"store_product_id\": \"2761\",\n            \"description\": \"\",\n            \"product_type\": \"\",\n            \"variants\": [\n                {\n                    \"id\": 1413683934,\n                    \"variant_img\": null,\n                    \"variant_id\": \"3256\",\n                    \"sku\": \"VVVVVVVVVVVV-Large\",\n                    \"price\": \"300.00\",\n                    \"title\": \"VVVVVVVVVVVV-Large\",\n                    \"inventory_quantity\": 1,\n                    \"product_id\": 1051754,\n                    \"inventory_management\": null\n                },\n                {\n                    \"id\": 1413683922,\n                    \"variant_img\": null,\n                    \"variant_id\": \"3255\",\n                    \"sku\": \"VVVVVVVVVVVV-Small\",\n                    \"price\": \"200.00\",\n                    \"title\": \"VVVVVVVVVVVV-Small\",\n                    \"inventory_quantity\": 1,\n                    \"product_id\": 1051754,\n                    \"inventory_management\": null\n                }\n            ],\n            \"images\": [\n                {\n                    \"id\": 467375234,\n                    \"image_id\": \"1051754_3256\",\n                    \"src\": \"\",\n                    \"product_id\": 1051754,\n                    \"variant_ids\": [\n                        \"3256\"\n                    ]\n                }\n            ]\n        },\n        {\n            \"id\": 1051856,\n            \"handle\": \"None\",\n            \"product_url\": \"None\",\n            \"product_title\": \"Levis Tshirt-Small\",\n            \"store_product_id\": \"2762\",\n            \"description\": \"\",\n            \"product_type\": \"\",\n            \"variants\": [\n                {\n                    \"id\": 1414076611,\n                    \"variant_img\": \"https://womancart-laravel-1.s3.ap-south-1.amazonaws.com/public/images/image_1733466681.png\",\n                    \"variant_id\": \"3257\",\n                    \"sku\": \"Levis Tshirt-Small\",\n                    \"price\": \"1600.00\",\n                    \"title\": \"Levis Tshirt-Small\",\n                    \"inventory_quantity\": 1,\n                    \"product_id\": 1051856,\n                    \"inventory_management\": null\n                },\n                {\n                    \"id\": 1414076612,\n                    \"variant_img\": \"https://womancart-laravel-1.s3.ap-south-1.amazonaws.com/public/images/image_1733466681.png\",\n                    \"variant_id\": \"3258\",\n                    \"sku\": \"Levis Tshirt-Large\",\n                    \"price\": \"1600.00\",\n                    \"title\": \"Levis Tshirt-Large\",\n                    \"inventory_quantity\": 1,\n                    \"product_id\": 1051856,\n                    \"inventory_management\": null\n                }\n            ],\n            \"images\": []\n        },\n        {\n            \"id\": 1051769,\n            \"handle\": \"amazing-shoes3\",\n            \"product_url\": \"None\",\n            \"product_title\": \"Amazing Shoes3\",\n            \"store_product_id\": \"3\",\n            \"description\": \"\",\n            \"product_type\": \"\",\n            \"variants\": [\n                {\n                    \"id\": 1413808538,\n                    \"variant_img\": \"https://cdn.shopify.com/s/files/1/0519/3390/5060/products/Stefano-Bemer-Shoes-1-1027x560.jpg?v=1608700417\",\n                    \"variant_id\": \"3\",\n                    \"sku\": \"46748JFGH7\",\n                    \"price\": \"1200.00\",\n                    \"title\": \"S\",\n                    \"inventory_quantity\": 51,\n                    \"product_id\": 1051769,\n                    \"inventory_management\": null\n                }\n            ],\n            \"images\": []\n        },\n        {\n            \"id\": 1051980,\n            \"handle\": \"colorbar-amino-skin-radiant-foundation-dabe9a\",\n            \"product_url\": \"None\",\n            \"product_title\": \"Colorbar Amino Skin Radiant Foundation #DABE9A\",\n            \"store_product_id\": \"301\",\n            \"description\": \"\",\n            \"product_type\": \"\",\n            \"variants\": [\n                {\n                    \"id\": 1415297761,\n                    \"variant_img\": \"https://womancart-laravel-1.s3.ap-south-1.amazonaws.com/public/Product/CBASRF-Ivory Fair-1.jpg\",\n                    \"variant_id\": \"9\",\n                    \"sku\": \"COLORBAR AMINO SKIN RADIANT FOUNDATION-15-IVORY FAIR\",\n                    \"price\": \"1039.00\",\n                    \"title\": \"Colorbar Amino Skin Radiant Foundation - IVORY FAIR - (15 GRAM)\",\n                    \"inventory_quantity\": 19,\n                    \"product_id\": 1051980,\n                    \"inventory_management\": null\n                },\n                {\n                    \"id\": 1415297762,\n                    \"variant_img\": \"https://womancart-laravel-1.s3.ap-south-1.amazonaws.com/public/Product/CBASRF-Petal Fair-1.jpg\",\n                    \"variant_id\": \"10\",\n                    \"sku\": \"COLORBAR AMINO SKIN RADIANT FOUNDATION-15-PETAL FAIR\",\n                    \"price\": \"1039.00\",\n                    \"title\": \"Colorbar Amino Skin Radiant Foundation - PETAL FAIR - (15 GRAM)\",\n                    \"inventory_quantity\": 20,\n                    \"product_id\": 1051980,\n                    \"inventory_management\": null\n                },\n                {\n                    \"id\": 1415297763,\n                    \"variant_img\": \"https://womancart-laravel-1.s3.ap-south-1.amazonaws.com/public/Product/CBASRF-Beige Mild-1.jpg\",\n                    \"variant_id\": \"11\",\n                    \"sku\": \"COLORBAR AMINO SKIN RADIANT FOUNDATION-15-BEIGE MILD\",\n                    \"price\": \"1039.00\",\n                    \"title\": \"Colorbar Amino Skin Radiant Foundation - BEIGE MILD - (15 GRAM)\",\n                    \"inventory_quantity\": 20,\n                    \"product_id\": 1051980,\n                    \"inventory_management\": null\n                },\n                {\n                    \"id\": 1415297764,\n                    \"variant_img\": \"https://womancart-laravel-1.s3.ap-south-1.amazonaws.com/public/Product/CBASRF-Rose Mild-1.jpg\",\n                    \"variant_id\": \"12\",\n                    \"sku\": \"COLORBAR AMINO SKIN RADIANT FOUNDATION-15-ROSE MILD\",\n                    \"price\": \"1039.00\",\n                    \"title\": \"Colorbar Amino Skin Radiant Foundation - ROSE MILD - (15 GRAM)\",\n                    \"inventory_quantity\": 20,\n                    \"product_id\": 1051980,\n                    \"inventory_management\": null\n                },\n                {\n                    \"id\": 1415297765,\n                    \"variant_img\": \"https://womancart-laravel-1.s3.ap-south-1.amazonaws.com/public/Product/CBASRF-Sand Medium-1.jpg\",\n                    \"variant_id\": \"13\",\n                    \"sku\": \"COLORBAR AMINO SKIN RADIANT FOUNDATION-15-SAND MEDIUM\",\n                    \"price\": \"1039.00\",\n                    \"title\": \"Colorbar Amino Skin Radiant Foundation - SAND MEDIUM - (15 GRAM)\",\n                    \"inventory_quantity\": 20,\n                    \"product_id\": 1051980,\n                    \"inventory_management\": null\n                }\n            ],\n            \"images\": []\n        },\n        {\n            \"id\": 1051983,\n            \"handle\": \"fogg-eau-de-perfume-sultan\",\n            \"product_url\": \"None\",\n            \"product_title\": \"Fogg Eau De Perfume - Sultan\",\n            \"store_product_id\": \"308\",\n            \"description\": \"\",\n            \"product_type\": \"\",\n            \"variants\": [\n                {\n                    \"id\": 1415313933,\n                    \"variant_img\": \"https://womancart-laravel-1.s3.ap-south-1.amazonaws.com/public/Product/FG SULTAN EDP15-1.webp\",\n                    \"variant_id\": \"27\",\n                    \"sku\": \"FOGG EAU DE PERFUME - SULTAN-15\",\n                    \"price\": \"89.00\",\n                    \"title\": \"Fogg Eau De Perfume - Sultan -  - (15 ML)\",\n                    \"inventory_quantity\": 10,\n                    \"product_id\": 1051983,\n                    \"inventory_management\": null\n                },\n                {\n                    \"id\": 1415313934,\n                    \"variant_img\": \"https://womancart-laravel-1.s3.ap-south-1.amazonaws.com/public/Product/FG SULTAN EDP15-1.webp\",\n                    \"variant_id\": \"28\",\n                    \"sku\": \"FOGG EAU DE PERFUME - SULTAN-30\",\n                    \"price\": \"145.00\",\n                    \"title\": \"Fogg Eau De Perfume - Sultan -  - (30 ML)\",\n                    \"inventory_quantity\": 10,\n                    \"product_id\": 1051983,\n                    \"inventory_management\": null\n                }\n            ],\n            \"images\": []\n        }\n    ],\n    \"success\": true,\n    \"error\": null\n}"}],"_postman_id":"4a7f151b-8d52-4d3c-b7da-f5a597949225"},{"name":"Product Details API","id":"3efa867c-825d-429d-bdd1-d5f44de79e3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-Key","value":"{{API_KEY}}","type":"text"}],"url":"{{HOST}}/api/stores/products/{{product_id}}/","urlObject":{"path":["api","stores","products","{{product_id}}",""],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"e1c5fae7-d321-4400-9963-67de8067215f","name":"Get Product API Response","originalRequest":{"method":"GET","header":[{"key":"X-API-Key","value":"{{API_KEY}}","type":"text"}],"url":"{{HOST}}/api/stores/products/{{product_id}}/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"GET, POST, PUT, DELETE, HEAD, OPTIONS"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Security-Policy","value":"default-src * data: 'unsafe-eval' 'unsafe-inline'"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Thu, 05 Dec 2024 07:15:24 GMT"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"Server","value":"Caddy"},{"key":"Server","value":"nginx"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Cookie"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 1050449,\n            \"product_id\": \"1\",\n            \"title\": \"Colorbar Pro Eyelashes You Complete Me 1 Pair\",\n            \"handle\": \"colorbar-pro-eyelashes-you-complete-me-1-pair\",\n            \"status\": \"active\",\n            \"description\": \"\",\n            \"tags\": \"\",\n            \"updated_at\": null,\n            \"images\": [],\n            \"variants\": [\n                {\n                    \"variant_id\": \"1\",\n                    \"sku\": \"MAYBELLINE NEW YORK FASHION BROW CREAM PENCIL--DARK BROWN\"\n                },\n                {\n                    \"variant_id\": \"2\",\n                    \"sku\": \"MAYBELLINE NEW YORK FASHION BROW CREAM PENCIL--BROWN\"\n                }\n            ],\n            \"product_url\": \"https://priyankbadjatiya.com/products/1050449\"\n        }\n    ],\n    \"success\": true,\n    \"error\": null\n}"}],"_postman_id":"3efa867c-825d-429d-bdd1-d5f44de79e3e"},{"name":"Create Product API","id":"18209067-d938-413a-97a7-27d786c21b07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Key","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"2711891284034\",\n    \"title\": \"Amazing Shoes\",\n    \"handle\": \"amazing-shoes\",\n    \"product_type\": \"\",\n    \"collection_id\": \"\",\n    \"created_at\": \"\",\n    \"published_at\": \"\",\n    \"tags\": \"\",\n    \"status\": \"active\", // \"active\" or \"draft\"\n    \"variants\": [\n        {\n            \"id\": \"37295239528612\",\n            \"sku\": \"LKSDJKJDS-1\",\n            \"grams\": 1200,\n            \"price\": \"1200.00\",\n            \"title\": \"S\",\n            \"weight\": 1.2,\n            \"taxable\": true,\n            \"created_at\": \"2020-12-23T00:13:35-05:00\",\n            \"product_id\": \"5941074034852\",\n            \"updated_at\": \"2021-03-10T04:00:02-05:00\",\n            \"weight_unit\": \"kg\",\n            \"options\": [\n                {\n                    \"name\": \"Size\",\n                    \"value\": \"M\"\n                },\n                {\n                    \"name\": \"Color\",\n                    \"value\": \"Black\"\n                },\n                {\n                    \"name\": \"Anything\",\n                    \"value\": \"Something\"\n                }\n            ],\n            \"inventory_quantity\": 51,\n            \"images\": [\n                {\n                    \"src\": \"https://cdn.shopify.com/s/files/1/0519/3390/5060/products/Stefano-Bemer-Shoes-1-1027x560.jpg?v=1608700417\",\n                    \"width\": 1027,\n                    \"height\": 560\n                }\n            ]\n        },\n        {\n            \"id\": \"37295239561380\",\n            \"sku\": \"LKSDJKJDS-2\",\n            \"grams\": 1200,\n            \"price\": \"1200.00\",\n            \"title\": \"M\",\n            \"weight\": 1.2,\n            \"taxable\": true,\n            \"created_at\": \"2020-12-23T00:13:35-05:00\",\n            \"product_id\": \"5941074034852\",\n            \"updated_at\": \"2021-03-05T02:46:37-05:00\",\n            \"weight_unit\": \"kg\",\n            \"options\": [\n                {\n                    \"name\": \"Size\",\n                    \"value\": \"M\"\n                },\n                {\n                    \"name\": \"Color\",\n                    \"value\": \"Black\"\n                },\n                {\n                    \"name\": \"Anything\",\n                    \"value\": \"Something\"\n                }\n            ],\n            \"inventory_quantity\": 32,\n            \"images\": [\n                {\n                    \"src\": \"https://cdn.shopify.com/s/files/1/0519/3390/5060/products/Stefano-Bemer-Shoes-1-1027x560.jpg?v=1608700417\",\n                    \"width\": 1027,\n                    \"height\": 560\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/api/stores/products/create/","description":"<p>Create a <code>product</code> Object in Logisy by calling the following API.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<ul>\n<li><strong>product (<code>product</code> obj):</strong> The <code>product</code> object (see above for reference)</li>\n</ul>\n","urlObject":{"path":["api","stores","products","create",""],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"18209067-d938-413a-97a7-27d786c21b07"},{"name":"Update Product API","id":"943adc7f-b356-4e82-a35c-59ae07a022d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"X-API-Key","type":"text","value":"{{API_KEY}}"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"2711891284034\",\n    \"title\": \"Amazing Shoes\",\n    \"handle\": \"amazing-shoes\",\n    \"product_type\": \"\",\n    \"collection_id\": \"\",\n    \"created_at\": \"\",\n    \"published_at\": \"\",\n    \"tags\": \"\",\n    \"status\": \"active\",  // \"active\" or \"draft\"\n    \"variants\": [\n        {\n            \"id\": \"37295239528612\",\n            \"sku\": \"LKSDJKJDS-1\",\n            \"grams\": 1200,\n            \"price\": \"1200.00\",\n            \"title\": \"S\",\n            \"weight\": 1.2,\n            \"taxable\": true,\n            \"created_at\": \"2020-12-23T00:13:35-05:00\",\n            \"product_id\": \"5941074034852\",\n            \"updated_at\": \"2021-03-10T04:00:02-05:00\",\n            \"weight_unit\": \"kg\",\n            \"options\": [\n                {\n                    \"name\": \"Size\",\n                    \"value\": \"M\"\n                },\n                {\n                    \"name\": \"Color\",\n                    \"value\": \"Black\"\n                },\n                {\n                    \"name\": \"Anything\",\n                    \"value\": \"Something\"\n                }\n            ],\n            \"inventory_quantity\": 51,\n            \"images\": [\n                {\n                    \"src\": \"https://cdn.shopify.com/s/files/1/0519/3390/5060/products/Stefano-Bemer-Shoes-1-1027x560.jpg?v=1608700417\",\n                    \"width\": 1027,\n                    \"height\": 560\n                }\n            ]\n        },\n        {\n            \"id\": \"37295239561380\",\n            \"sku\": \"LKSDJKJDS-2\",\n            \"grams\": 1200,\n            \"price\": \"1200.00\",\n            \"title\": \"M\",\n            \"weight\": 1.2,\n            \"taxable\": true,\n            \"created_at\": \"2020-12-23T00:13:35-05:00\",\n            \"product_id\": \"5941074034852\",\n            \"updated_at\": \"2021-03-05T02:46:37-05:00\",\n            \"weight_unit\": \"kg\",\n            \"options\": [\n                {\n                    \"name\": \"Size\",\n                    \"value\": \"M\"\n                },\n                {\n                    \"name\": \"Color\",\n                    \"value\": \"Black\"\n                },\n                {\n                    \"name\": \"Anything\",\n                    \"value\": \"Something\"\n                }\n            ],\n            \"inventory_quantity\": 32,\n            \"images\": [\n                {\n                    \"src\": \"https://cdn.shopify.com/s/files/1/0519/3390/5060/products/Stefano-Bemer-Shoes-1-1027x560.jpg?v=1608700417\",\n                    \"width\": 1027,\n                    \"height\": 560\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/api/stores/products/update/","description":"<p>Update a <code>product</code> Object in Logisy by calling the following API based on order id.</p>\n<blockquote>\n<p><strong>NOTE:</strong> The only mandatory parameter is the product's <code>id</code>. You can send only the parameters which have updates.</p>\n</blockquote>\n<h2 id=\"parameters\">Parameters</h2>\n<ul>\n<li><strong>product (<code>product</code> obj):</strong> The <code>product</code> object to be updated (see above for reference)</li>\n</ul>\n","urlObject":{"path":["api","stores","products","update",""],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"943adc7f-b356-4e82-a35c-59ae07a022d7"},{"name":"Delete Product API","id":"66725810-f398-4a6b-9e7f-23772aae497a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-API-Key","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"2711891284034\"\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/api/stores/products/delete/{{product_id}}/","description":"<p>Marks a <code>product</code> Object as deleted.</p>\n<h2 id=\"parameters\">Parameters</h2>\n<ul>\n<li><strong>id: (str)</strong> The id of the <code>product</code> which got deleted</li>\n</ul>\n","urlObject":{"path":["api","stores","products","delete","{{product_id}}",""],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"66725810-f398-4a6b-9e7f-23772aae497a"},{"name":"Inventory Management API","id":"139cb45e-b9b8-470d-a01e-2c900f2d3351","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Key","value":"{{API_KEY}}","type":"default"}],"body":{"mode":"raw","raw":"{\n    \"product_id\": \"1963981931\",\n    \"variant_id\": \"1237190313103\",\n    \"inventory_quantity\": 3\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/api/stores/products/inventory/update/","description":"<p>For updating the product inventory when ever a item is sold online or inventory stock is updated.</p>\n<h4 id=\"parameters\">Parameters</h4>\n<ul>\n<li><strong>product_id: (str)</strong> The id of the product.</li>\n<li><strong>variant_id: (str)</strong> The id of the product variant for updating the inventory quantity.</li>\n<li><strong>inventory_quantity: (int)</strong> Current Inventory quantity.</li>\n<li><strong>old_inventory_quantity: (int)</strong> Old Inventory quantity.</li>\n</ul>\n","urlObject":{"path":["api","stores","products","inventory","update",""],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"139cb45e-b9b8-470d-a01e-2c900f2d3351"}],"id":"76872491-966d-4b13-921a-c0fe838efb84","description":"<p>The following list of APIs/webhooks are provided by Logisy so that your system can push product related data and events to Logisy's.</p>\n","event":[{"listen":"prerequest","script":{"id":"16fb88ca-86cb-48a1-be13-0b23ecb67d13","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"96e95fca-48da-44bf-be9b-7f051511eb15","type":"text/javascript","exec":[""]}}],"_postman_id":"76872491-966d-4b13-921a-c0fe838efb84"},{"name":"Client-side APIs / Webhooks","item":[{"name":"All Products API","id":"5f33e23d-c85e-4474-ab6f-5228d66f6cf3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-Token","value":"{{API_KEY}}","type":"text"}],"url":"https://your-store.com/your-all-products-api-url?page=1&page_size=100&since=2020-09-12T14:20:34+05:30","description":"<p>This webhook is required so that Logisy can pull all order data from your servers.</p>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><strong>Expected HTTP Status Code:</strong> <code>200 OK</code></li>\n<li>**Response Data:<ul>\n<li><strong>total_products (int):</strong> Total number of products in the database since the <code>since</code> parameter value</li>\n<li><strong>products (<code>product</code> obj):</strong> List of <code>product</code> objects</li>\n</ul>\n</li>\n<li><strong>Products to be sent per page:</strong> 250 (Last page may contain products lesser than 250)</li>\n</ul>\n","urlObject":{"protocol":"https","path":["your-all-products-api-url"],"host":["your-store","com"],"query":[{"key":"page","value":"1"},{"key":"page_size","value":"100"},{"key":"since","value":"2020-09-12T14:20:34+05:30"}],"variable":[]}},"response":[{"id":"d658e38d-5a74-4477-bc99-47345f4063f1","name":"All Products API","originalRequest":{"method":"GET","header":[{"key":"X-API-Token","type":"text","value":"{{API_KEY}}"}],"url":{"raw":"https://your-store.com/your-all-products-api-url?page=1&page_size=100&since=2020-09-12T14:20:34+05:30","protocol":"https","host":["your-store","com"],"path":["your-all-products-api-url"],"query":[{"key":"page","value":"1"},{"key":"page_size","value":"100"},{"key":"since","value":"2020-09-12T14:20:34+05:30"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"total_products\": 1987,\n    \"products\": [\n        {\n            \"id\": \"2711891284034\",\n            \"title\": \"Amazing Shoes\",\n            \"handle\": \"amazing-shoes\",\n            \"product_type\": \"\",\n            \"collection_id\": \"\",\n            \"created_at\": \"\",\n            \"published_at\": \"\",\n            \"tags\": \"\",\n            \"variants\": [\n                {\n                    \"id\": \"37295239528612\",\n                    \"sku\": \"LKSDJKJDS-1\",\n                    \"grams\": 1200,\n                    \"price\": \"1200.00\",\n                    \"title\": \"S\",\n                    \"weight\": 1.2,\n                    \"taxable\": true,\n                    \"created_at\": \"2020-12-23T00:13:35-05:00\",\n                    \"product_id\": \"5941074034852\",\n                    \"updated_at\": \"2021-03-10T04:00:02-05:00\",\n                    \"weight_unit\": \"kg\",\n                    \"options\": [\n                        {\n                            \"name\": \"Size\",\n                            \"value\": \"M\"\n                        },\n                        {\n                            \"name\": \"Color\",\n                            \"value\": \"Black\"\n                        },\n                        {\n                            \"name\": \"Anything\",\n                            \"value\": \"Something\"\n                        }\n                    ],\n                    \"inventory_quantity\": 51,\n                    \"images\": [\n                        {\n                            \"src\": \"https://cdn.shopify.com/s/files/1/0519/3390/5060/products/Stefano-Bemer-Shoes-1-1027x560.jpg?v=1608700417\",\n                            \"width\": 1027,\n                            \"height\": 560\n                        }\n                    ]\n                },\n                {\n                    \"id\": \"37295239561380\",\n                    \"sku\": \"LKSDJKJDS-2\",\n                    \"grams\": 1200,\n                    \"price\": \"1200.00\",\n                    \"title\": \"M\",\n                    \"weight\": 1.2,\n                    \"taxable\": true,\n                    \"created_at\": \"2020-12-23T00:13:35-05:00\",\n                    \"product_id\": \"5941074034852\",\n                    \"updated_at\": \"2021-03-05T02:46:37-05:00\",\n                    \"weight_unit\": \"kg\",\n                    \"options\": [\n                        {\n                            \"name\": \"Size\",\n                            \"value\": \"M\"\n                        },\n                        {\n                            \"name\": \"Color\",\n                            \"value\": \"Black\"\n                        },\n                        {\n                            \"name\": \"Anything\",\n                            \"value\": \"Something\"\n                        }\n                    ],\n                    \"inventory_quantity\": 32,\n                    \"images\": [\n                        {\n                            \"src\": \"https://cdn.shopify.com/s/files/1/0519/3390/5060/products/Stefano-Bemer-Shoes-1-1027x560.jpg?v=1608700417\",\n                            \"width\": 1027,\n                            \"height\": 560\n                        }\n                    ]\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"5f33e23d-c85e-4474-ab6f-5228d66f6cf3"},{"name":"Product Images API","id":"5dc61247-5d72-49a3-a3ce-a18dd9e08a45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-Token","value":"{{API_KEY}}","type":"text"}],"url":"https://your-store.com/your-product-images-api-url?product_id=2711891284034","description":"<p>This webhook is required so that Logisy can fetch a product's images from your servers.</p>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><strong>Expected HTTP Status Code:</strong> <code>200 OK</code></li>\n<li>**Response Data:<ul>\n<li><strong>images (<code>image</code> obj):</strong> List of <code>image</code> objects</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["your-product-images-api-url"],"host":["your-store","com"],"query":[{"key":"product_id","value":"2711891284034"}],"variable":[]}},"response":[{"id":"c3e5f08f-e198-4303-845f-83635c68c3b2","name":"Product Images API","originalRequest":{"method":"GET","header":[{"key":"X-API-Token","value":"{{API_KEY}}","type":"text"}],"url":{"raw":"https://your-store.com/your-product-images-api-url?product_id=2711891284034","protocol":"https","host":["your-store","com"],"path":["your-product-images-api-url"],"query":[{"key":"product_id","value":"2711891284034"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"images\": [\n        {\n            \"src\": \"https://your-store/path-to-image-1/\",\n            \"width\": 123,\n            \"height\": 456\n        },\n        {\n            \"src\": \"https://your-store/path-to-image-2/\",\n            \"width\": 123,\n            \"height\": 456\n        },\n        {\n            \"src\": \"https://your-store/path-to-image-3/\",\n            \"width\": 123,\n            \"height\": 456\n        }\n    ]\n}"}],"_postman_id":"5dc61247-5d72-49a3-a3ce-a18dd9e08a45"}],"id":"216e2540-dd0f-4156-9ecc-dc5bb14b6aa6","description":"<p>The following list of APIs/webhooks needs to be implemented at the store's system so that product data can be queried or posted by Logisy as and when needed.</p>\n<blockquote>\n<p><strong>NOTE:</strong> All the following APIs/webhooks expect <code>200 OK</code> as HTTP statuses. Anything else is consdered as an error and thus Logisy will re-try the webhooks for a maximum of three times with a gap of 1 min between each successive try. If your APIs still fail, Logisy will let you know via an email.</p>\n</blockquote>\n","event":[{"listen":"prerequest","script":{"id":"dcdf0aef-1741-4d11-a870-b7343487d5d3","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1772bf1b-ec21-4ac8-931e-64dcc5705573","type":"text/javascript","exec":[""]}}],"_postman_id":"216e2540-dd0f-4156-9ecc-dc5bb14b6aa6"}],"id":"85d5c6a6-3e83-4988-baf4-6f76df73b0e7","description":"<p>Products are the items that are sold to a customer via the <code>line_items</code> parameter present in an Abandoned Checkout or an Order.</p>\n<hr />\n<h2 id=\"product-object\">Product Object</h2>\n<ul>\n<li><p><strong>id (str):</strong> A unique id assigned by your store's system</p>\n</li>\n<li><p><strong>title (str):</strong> The title of the product</p>\n</li>\n<li><p><strong>handle (str):</strong> The url handle of the product</p>\n</li>\n<li><p><strong>product_type (str):</strong></p>\n</li>\n<li><p><strong>collection_id (str):</strong></p>\n</li>\n<li><p><strong>created_at (str):</strong></p>\n</li>\n<li><p><strong>published_at (str):</strong></p>\n</li>\n<li><p><strong>tags (str):</strong> Tags associated with the product</p>\n</li>\n<li><p><strong>variants (arr of</strong> <strong><code>variant</code></strong> <strong>obj):</strong> An array of <code>variant</code> objects (see below)</p>\n</li>\n</ul>\n<h2 id=\"example-object\">Example Object</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": \"2711891284034\",\n    \"title\": \"Amazing Shoes\",\n    \"handle\": \"amazing-shoes\",\n    \"product_type\": \"\",\n    \"collection_id\": \"\",\n    \"created_at\": \"\",\n    \"published_at\": \"\",\n    \"tags\": \"\",\n    \"variants\": [\n        {\n            \"id\": \"37295239528612\",\n            \"sku\": \"LKSDJKJDS-1\",\n            \"grams\": 1200,\n            \"price\": \"1200.00\",\n            \"title\": \"S\",\n            \"weight\": 1.2,\n            \"taxable\": true,\n            \"created_at\": \"2020-12-23T00:13:35-05:00\",\n            \"product_id\": \"5941074034852\",\n            \"updated_at\": \"2021-03-10T04:00:02-05:00\",\n            \"weight_unit\": \"kg\",\n            \"options\": [\n                {\n                    \"name\": \"Size\",\n                    \"value\": \"M\"\n                },\n                {\n                    \"name\": \"Color\",\n                    \"value\": \"Black\"\n                },\n                {\n                    \"name\": \"Anything\",\n                    \"value\": \"Something\"\n                }\n            ],\n            \"inventory_quantity\": 51,\n            \"images\": [\n                {\n                    \"src\": \"https://cdn.shopify.com/s/files/1/0519/3390/5060/products/Stefano-Bemer-Shoes-1-1027x560.jpg?v=1608700417\",\n                    \"width\": 1027,\n                    \"height\": 560\n                }\n            ]\n        },\n        {\n            \"id\": \"37295239561380\",\n            \"sku\": \"LKSDJKJDS-2\",\n            \"grams\": 1200,\n            \"price\": \"1200.00\",\n            \"title\": \"M\",\n            \"weight\": 1.2,\n            \"taxable\": true,\n            \"created_at\": \"2020-12-23T00:13:35-05:00\",\n            \"product_id\": \"5941074034852\",\n            \"updated_at\": \"2021-03-05T02:46:37-05:00\",\n            \"weight_unit\": \"kg\",\n            \"options\": [\n                {\n                    \"name\": \"Size\",\n                    \"value\": \"M\"\n                },\n                {\n                    \"name\": \"Color\",\n                    \"value\": \"Black\"\n                },\n                {\n                    \"name\": \"Anything\",\n                    \"value\": \"Something\"\n                }\n            ],\n            \"inventory_quantity\": 32,\n            \"images\": [\n                {\n                    \"src\": \"https://cdn.shopify.com/s/files/1/0519/3390/5060/products/Stefano-Bemer-Shoes-1-1027x560.jpg?v=1608700417\",\n                    \"width\": 1027,\n                    \"height\": 560\n                }\n            ]\n        }\n    ]\n}\n\n</code></pre>\n","event":[{"listen":"prerequest","script":{"id":"f5825193-56ac-42b3-b37c-b9f3cce1ddf3","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"cb726d6d-cb96-4a84-830e-9d2e810b7e73","type":"text/javascript","exec":[""]}}],"_postman_id":"85d5c6a6-3e83-4988-baf4-6f76df73b0e7"},{"name":"Product Variants","item":[],"id":"6862105c-b85e-4525-be91-7935e36709c7","description":"<p>Variants of a <code>product</code> have the following structure.</p>\n<hr />\n<h2 id=\"variant-object\">Variant Object</h2>\n<ul>\n<li><strong>id (str):</strong> A unique id assigned by your store's system</li>\n<li><strong>title (str):</strong> The title of the variant</li>\n<li><strong>sku (str):</strong> The SKU code of the variant</li>\n<li><strong>grams (str):</strong> The weight of the item in grams</li>\n<li><strong>price (str):</strong> The price of the variant</li>\n<li><strong>weight (str):</strong> </li>\n<li><strong>taxable (str):</strong> </li>\n<li><strong>created_at (str):</strong> </li>\n<li><strong>product_id (str):</strong> </li>\n<li><strong>updated_at (str):</strong> </li>\n<li><strong>weight_unit (str):</strong> </li>\n<li><strong>inventory_quantity (str):</strong> </li>\n<li><strong>images (arr of <code>image</code> obj):</strong> An array of <code>image</code> objects (see below)</li>\n</ul>\n<h2 id=\"example-object\">Example Object</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"id\": \"37295239528612\",\n    \"title\": \"S\",\n    \"sku\": \"LKSDJKJDS-1\",\n    \"grams\": 1200,\n    \"price\": \"1200.00\",\n    \"weight\": 1.2,\n    \"taxable\": true,\n    \"created_at\": \"2020-12-23T00:13:35-05:00\",\n    \"product_id\": \"5941074034852\",\n    \"updated_at\": \"2021-03-10T04:00:02-05:00\",\n    \"weight_unit\": \"kg\",\n    \"inventory_quantity\": 51,\n    \"images\": [\n        {\n            \"src\": \"https://cdn.shopify.com/s/files/1/0519/3390/5060/products/Stefano-Bemer-Shoes-1-1027x560.jpg?v=1608700417\",\n            \"width\": 1027,\n            \"height\": 560\n        }\n    ]\n}\n</code></pre>","event":[{"listen":"prerequest","script":{"id":"9024b16a-7090-4b2b-a135-0fa4ef60956c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"06821ef2-9854-4430-b30b-cdfc38e9f2ab","type":"text/javascript","exec":[""]}}],"_postman_id":"6862105c-b85e-4525-be91-7935e36709c7"},{"name":"Variant Images","item":[],"id":"f63e74bd-d0bf-44dd-a120-24ed3b38dca9","description":"<p>Images belonging to a <code>product</code> or a <code>variant</code>.</p>\n<hr />\n<h2 id=\"product--variant-object\">Product / Variant Object</h2>\n<ul>\n<li><strong>src (str):</strong> The url to the image</li>\n<li><strong>width (int):</strong> The width of the image in pixels</li>\n<li><strong>height (int):</strong> The height of the image in pixels</li>\n</ul>\n<h2 id=\"example-object\">Example Object</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"src\": \"https://cdn.shopify.com/s/files/1/0519/3390/5060/products/Stefano-Bemer-Shoes-1-1027x560.jpg?v=1608700417\",\n    \"width\": 1027,\n    \"height\": 560\n}\n</code></pre>","event":[{"listen":"prerequest","script":{"id":"868ea9cb-f30d-419d-ade7-f6397ef0b9c8","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a5d87b58-904d-458c-b638-e7c6a7b418b5","type":"text/javascript","exec":[""]}}],"_postman_id":"f63e74bd-d0bf-44dd-a120-24ed3b38dca9"},{"name":"Return Management System","item":[{"name":"Client-side APIs / Webhooks","item":[{"name":"Adjust Stock","id":"2748777f-4810-4a99-9f48-453e7b9fe14a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Token","value":"{{API_KEY}}","type":"default"}],"body":{"mode":"raw","raw":"{\n    \"variant_id\": \"192739013\",\n    \"available_adjustment\": 2\n}","options":{"raw":{"language":"json"}}},"url":"https://your-store.com/adjust-stock/","description":"<p>Adjust stock method is used to manage the inventory of a particular product variant. A post request will be made to your url endpoint with the product details and adjustments.</p>\n<p>Adjust stock works in the following way: -</p>\n<ul>\n<li>Book exchange product quantity while placing a new exchange request. <em>This will book the quantity of the particular product variant when customer places a new exchange request.</em></li>\n<li>Release the booked exchange product quantity when a request is rejected or on initiating an exchange.</li>\n<li>Increase the inventory quantity of the product variant when it passes the quality check.</li>\n</ul>\n<p><strong>Parameters</strong></p>\n<ul>\n<li><strong>variant_id: (str)</strong> The id of the product variant for updating the stock.</li>\n<li><strong>available_adjustment: (int)</strong> A positive or negative value is sent for stock adjustment.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["adjust-stock",""],"host":["your-store","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2748777f-4810-4a99-9f48-453e7b9fe14a"},{"name":"Calculate Refund","id":"7befac93-e9fd-4aba-8a0d-97d4188ef4b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Token","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"refund\": {\n        \"shipping\": {\n            \"full_refund\": true\n        },\n        \"refund_line_items\": [\n            {\n                \"line_item_id\": 11725513326745,\n                \"quantity\": 1,\n                \"restock_type\": \"no_restock\"\n            }\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-store-endpoint-url/orders/<order_id>/refunds/calculate","description":"<p>Calculate the refund of an order based on line items and shipping.</p>\n","urlObject":{"protocol":"https","path":["orders","<order_id>","refunds","calculate"],"host":["your-store-endpoint-url"],"query":[],"variable":[]}},"response":[{"id":"9fe3485b-b90c-452d-9b99-2e0819872f6f","name":"Response","originalRequest":{"method":"POST","header":[{"key":"X-API-Token","value":"{{API_KEY}}","type":"text"},{"key":"","value":"","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"refund\": {\n        \"shipping\": {\n            \"full_refund\": true\n        },\n        \"refund_line_items\": [\n            {\n                \"line_item_id\": 11725513326745,\n                \"quantity\": 1,\n                \"restock_type\": \"no_restock\"\n            }\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://your-store-endpoint-url/orders/<order_id>/refunds/calculate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 15 Sep 2022 05:06:41 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Sorting-Hat-PodId","value":"152"},{"key":"X-Sorting-Hat-ShopId","value":"61345595545"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Referrer-Policy","value":"origin-when-cross-origin"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-ShopId","value":"61345595545"},{"key":"X-ShardId","value":"152"},{"key":"X-Stats-UserId","value":""},{"key":"X-Stats-ApiClientId","value":"3007273"},{"key":"X-Stats-ApiPermissionId","value":"395016077465"},{"key":"X-Shopify-API-Version","value":"2022-04"},{"key":"HTTP_X_SHOPIFY_SHOP_API_CALL_LIMIT","value":"1/40"},{"key":"X-Shopify-Shop-Api-Call-Limit","value":"1/40"},{"key":"Strict-Transport-Security","value":"max-age=7889238"},{"key":"X-Shopify-Stage","value":"production"},{"key":"Content-Security-Policy","value":"default-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://* shopify-pos://*; block-all-mixed-content; child-src 'self' https://* shopify-pos://*; connect-src 'self' wss://* https://*; frame-ancestors 'none'; img-src 'self' data: blob: https:; script-src https://cdn.shopify.com https://cdn.shopifycdn.net https://checkout.shopifycs.com https://api.stripe.com https://mpsnare.iesnare.com https://appcenter.intuit.com https://www.paypal.com https://js.braintreegateway.com https://c.paypal.com https://maps.googleapis.com https://www.google-analytics.com https://v.shopify.com 'self' 'unsafe-inline' 'unsafe-eval'; upgrade-insecure-requests; report-uri /csp-report?source%5Baction%5D=calculate&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Frefunds&source%5Bsection%5D=admin_api&source%5Buuid%5D=ce9d9871-b0c8-43bb-9f6b-7a8cb839726c"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"1; mode=block; report=/xss-report?source%5Baction%5D=calculate&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Frefunds&source%5Bsection%5D=admin_api&source%5Buuid%5D=ce9d9871-b0c8-43bb-9f6b-7a8cb839726c"},{"key":"X-Dc","value":"gcp-us-east4,gcp-us-east1,gcp-us-east1"},{"key":"X-Request-ID","value":"ce9d9871-b0c8-43bb-9f6b-7a8cb839726c"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=bHTKJKI9%2BdDf8lskqp4XlvfpEXm286OBmxTDEAGcPkJEKb5Yz9HBc0bCFwWDDZsd7Xe6rNW6mXvXBcnxwYG%2BgpVbiJINFhw3ZIlAMFEyuhTpqVWJaGk0p%2FTJOnN2FLWfCUPInLGuZ6FzEh6BbQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"74aed5a2ceaf8275-IAD"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"refund\": {\n        \"shipping\": {\n            \"amount\": \"0.00\",\n            \"tax\": \"0.00\",\n            \"maximum_refundable\": \"0.00\"\n        },\n        \"refund_line_items\": [\n            {\n                \"quantity\": 1,\n                \"line_item_id\": 11725513326745,\n                \"location_id\": null,\n                \"restock_type\": \"no_restock\",\n                \"price\": \"10.00\",\n                \"subtotal\": \"10.00\",\n                \"total_tax\": \"0.00\",\n                \"discounted_price\": \"10.00\",\n                \"discounted_total_price\": \"10.00\",\n                \"total_cart_discount_amount\": \"0.00\"\n            }\n        ],\n        \"transactions\": [\n            {\n                \"order_id\": 4608568066201,\n                \"kind\": \"suggested_refund\",\n                \"gateway\": \"manual\",\n                \"parent_id\": 5735921287321,\n                \"amount\": \"10.00\",\n                \"currency\": \"INR\",\n                \"maximum_refundable\": \"1000.00\"\n            }\n        ],\n        \"currency\": \"INR\"\n    }\n}"}],"_postman_id":"7befac93-e9fd-4aba-8a0d-97d4188ef4b2"},{"name":"Create / Update Request","id":"115f5ffe-ecb8-4995-9c96-45badd2ee2cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 255,\n    \"status\": 100,\n    \"status_label\": \"Pending\",\n    \"reference_id\": \"4616REXC1021\",\n    \"order_number\": \"1021\",\n    \"return_type\": \"refund_exchange\",\n    \"created_at\": \"2022-09-14T14:47:23.734704+00:00\",\n    \"customer_first_name\": \"D\",\n    \"customer_last_name\": \"D\",\n    \"customer_email\": \"debopriyo@logisy.tech\",\n    \"customer_phone_number\": \"6001261818\",\n    \"customer_address_line_1\": \"704 Vasathi Avante Apt.\",\n    \"customer_address_line_2\": \"Rachenahalli\",\n    \"customer_address_city\": \"Bangalore\",\n    \"customer_address_state\": \"Karnataka\",\n    \"customer_address_pin\": \"560045\",\n    \"customer_address_country\": \"India\",\n    \"customer_reason_label\": null,\n    \"customer_preferred_refund_method\": \"bank_transfer / upi / coupon\",\n    \"refund_method\": null,\n    \"refund_id\": null,\n    \"refund_amount\": null,\n    \"refund_url\": null,\n    \"refund_status\": null,\n    \"exchange_status\": null,\n    \"customer_preferred_return_shipment_method\": \"customer_ships_back / merchant_handles_return_shipment\",\n    \"exchange_order_number\": null,\n    \"exchange_order_url\": null,\n    \"reject_reason\": null,\n    \"line_items\": [\n        {\n            \"return_type\": \"refund\",\n            \"product_title\": \"Body slush\",\n            \"accepted\": false,\n            \"rejected\": false,\n            \"variant_name\": \"Default title\",\n            \"product_sku\": \"GP0001-BodySlush\",\n            \"product_price\": \"440.00\",\n            \"variant_image_url\": \"https://cdn.shopify.com/s/files/1/0613/4559/5545/products/BodySlush1_e9bd4abb-d8e3-4536-afbb-bc86f6f865e9.jpg?v=1653329365\",\n            \"quantity\": 3,\n            \"exchange_product_title\": null,\n            \"exchange_variant_name\": null,\n            \"exchange_product_sku\": null,\n            \"exchange_product_price\": null,\n            \"exchange_variant_image_url\": null,\n            \"return_shipment_awb\": null,\n            \"return_shipment_method\": null,\n            \"return_shipment_company\": null,\n            \"return_shipment_url\": null,\n            \"return_shipment_status\": null,\n            \"qc_passed\": false,\n            \"picked_up\": false,\n            \"delivered\": false,\n            \"customer_reason_label\": \"I do not like it\",\n            \"customer_sub_reason_label\": null\n        },\n        {\n            \"return_type\": \"exchange\",\n            \"product_title\": \"Body slush\",\n            \"accepted\": false,\n            \"rejected\": false,\n            \"variant_name\": \"Default title\",\n            \"product_sku\": \"GP0001-BodySlush\",\n            \"product_price\": \"440.00\",\n            \"variant_image_url\": \"https://cdn.shopify.com/s/files/1/0613/4559/5545/products/BodySlush1_e9bd4abb-d8e3-4536-afbb-bc86f6f865e9.jpg?v=1653329365\",\n            \"quantity\": 1,\n            \"exchange_product_title\": \"Body slush\",\n            \"exchange_variant_name\": \"Default title\",\n            \"exchange_product_sku\": \"GP0001-BodySlush\",\n            \"exchange_product_price\": \"440.00\",\n            \"exchange_variant_image_url\": \"https://cdn.shopify.com/s/files/1/0613/4559/5545/products/BodySlush1_e9bd4abb-d8e3-4536-afbb-bc86f6f865e9.jpg?v=1653329365\",\n            \"return_shipment_awb\": null,\n            \"return_shipment_method\": null,\n            \"return_shipment_company\": null,\n            \"return_shipment_url\": null,\n            \"return_shipment_status\": null,\n            \"qc_passed\": false,\n            \"picked_up\": false,\n            \"delivered\": false,\n            \"customer_reason_label\": \"I do not like it\",\n            \"customer_sub_reason_label\": null\n        }\n    ],\n    \"self_ship\": [\n        {\n            \"id\": 15,\n            \"awb_number\": null,\n            \"tracking_link\": null,\n            \"courier_company\": null,\n            \"consignment_image\": \"\",\n            \"created_at\": \"2022-09-15T07:06:30.015815+00:00\",\n            \"updated_at\": \"2022-09-15T07:06:30.01583+00:00\",\n            \"return_request_id\": 255\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://your-store-endpoint-url/orders/return_request/update","urlObject":{"protocol":"https","path":["orders","return_request","update"],"host":["your-store-endpoint-url"],"query":[],"variable":[]}},"response":[],"_postman_id":"115f5ffe-ecb8-4995-9c96-45badd2ee2cc"}],"id":"ce4b0567-62c3-4c5c-872d-ea9151f83ea3","_postman_id":"ce4b0567-62c3-4c5c-872d-ea9151f83ea3","description":""},{"name":"Pragma APIs / Webhooks","item":[{"name":"Webhooks","item":[{"name":"Get Webhooks","id":"138d3e94-9a7a-4e99-b86f-97efce1582ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-API-Key","value":"{{API_KEY}}","type":"text"}],"url":"https://logisy.tech/api/return-center/webhook/external/","urlObject":{"protocol":"https","path":["api","return-center","webhook","external",""],"host":["logisy","tech"],"query":[],"variable":[]}},"response":[{"id":"998e694c-bbc5-4f3f-8fe5-25b65506d954","name":"Get Webhooks","originalRequest":{"method":"GET","header":[{"key":"X-API-Key","value":"{{API_KEY}}","type":"text"}],"url":"https://logisy.tech/api/return-center/webhook/external/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"GET, POST, DELETE, HEAD, OPTIONS"},{"key":"Content-Length","value":"160"},{"key":"Content-Security-Policy","value":"default-src * data: 'unsafe-eval' 'unsafe-inline'"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Tue, 22 Aug 2023 11:30:27 GMT"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"Server","value":"Caddy"},{"key":"Server","value":"nginx"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 1,\n            \"endpoint\": \"https://eof8pfhxte79kbm.m.pipedream.net\",\n            \"header_key\": \"\",\n            \"header_value\": \"\",\n            \"event\": \"request_updated\"\n        }\n    ],\n    \"success\": true,\n    \"error\": null\n}"}],"_postman_id":"138d3e94-9a7a-4e99-b86f-97efce1582ed"},{"name":"Create Webhook","id":"d6eb5a7d-835b-4b23-995c-135202a94c82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-API-Key","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"endpoint\": \"https://eof8pfhxte79kbm.m.pipedream.net\",\n    \"event\": \"request_updated\",\n    \"header_key\": \"\",\n    \"header_value\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://logisy.tech/api/return-center/webhook/external/","urlObject":{"protocol":"https","path":["api","return-center","webhook","external",""],"host":["logisy","tech"],"query":[],"variable":[]}},"response":[{"id":"efcfa9ed-8f35-4be1-aae6-ec3d06d6024c","name":"Create Webhook","originalRequest":{"method":"POST","header":[{"key":"X-API-Key","value":"{{API_KEY}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"endpoint\": \"https://eof8pfhxte79kbm.m.pipedream.net\",\n    \"event\": \"request_updated\",\n    \"header_key\": \"\",\n    \"header_value\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://logisy.tech/api/return-center/webhook/external/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"GET, POST, DELETE, HEAD, OPTIONS"},{"key":"Content-Length","value":"205"},{"key":"Content-Security-Policy","value":"default-src * data: 'unsafe-eval' 'unsafe-inline'"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Tue, 22 Aug 2023 11:29:56 GMT"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"Server","value":"Caddy"},{"key":"Server","value":"nginx"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"status\": \"Webhook added successfully\",\n        \"data\": {\n            \"id\": 1,\n            \"endpoint\": \"https://eof8pfhxte79kbm.m.pipedream.net\",\n            \"header_key\": \"\",\n            \"header_value\": \"\",\n            \"event\": \"request_updated\"\n        }\n    },\n    \"success\": true,\n    \"error\": null\n}"}],"_postman_id":"d6eb5a7d-835b-4b23-995c-135202a94c82"},{"name":"Delete Webhook","id":"d954bf92-bd6b-4bfb-9cec-134f78606492","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"X-API-Key","value":"{{API_KEY}}","type":"text"}],"url":"https://logisy.tech/api/return-center/webhook/external/delete/{{webhook_id}}/","urlObject":{"protocol":"https","path":["api","return-center","webhook","external","delete","{{webhook_id}}",""],"host":["logisy","tech"],"query":[],"variable":[]}},"response":[{"id":"508a4838-ff56-48f5-8428-f4ced7410933","name":"Delete Webhook","originalRequest":{"method":"DELETE","header":[{"key":"X-API-Key","value":"OQOdDTwJVf7Ya5XdNCyjQsBPnUbFAKQN","type":"text"}],"url":"https://logisy.tech/api/return-center/webhook/external/delete/1/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Allow","value":"GET, POST, DELETE, HEAD, OPTIONS"},{"key":"Content-Length","value":"67"},{"key":"Content-Security-Policy","value":"default-src * data: 'unsafe-eval' 'unsafe-inline'"},{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Tue, 22 Aug 2023 11:30:46 GMT"},{"key":"Referrer-Policy","value":"no-referrer-when-downgrade"},{"key":"Server","value":"Caddy"},{"key":"Server","value":"nginx"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Xss-Protection","value":"1; mode=block"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": \"Webhook deleted successfully\",\n    \"success\": true,\n    \"error\": null\n}"}],"_postman_id":"d954bf92-bd6b-4bfb-9cec-134f78606492"}],"id":"93ffd4c0-5b93-447c-81b0-64d524c82a2e","description":"<p>You can use webhook subscriptions to receive notifications about particular events. It will help you to get the status of the request instantly instead of having to make API calls periodically to check their status. After you've subscribed to a webhook event, you will receive the notification at your desired endpoint.</p>\n<h3 id=\"events--notifications\">Events / Notifications</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Event</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>all</td>\n<td>Triggers a notification when any of the valid event is initiated.</td>\n</tr>\n<tr>\n<td>request_created</td>\n<td>Triggers a notification when a request is created.</td>\n</tr>\n<tr>\n<td>request_updated</td>\n<td>Triggers a notification when a request is updated.</td>\n</tr>\n<tr>\n<td>request_accepted</td>\n<td>Triggers a notification when a request is accepted.</td>\n</tr>\n<tr>\n<td>request_deleted</td>\n<td>Triggers a notification when a request is deleted.</td>\n</tr>\n<tr>\n<td>shipment_initiated</td>\n<td>Triggers a notification when a request shipment is initiated.</td>\n</tr>\n<tr>\n<td>shipment_status_updated</td>\n<td>Triggers a notification when a request shipment status is updated.</td>\n</tr>\n<tr>\n<td>refund_initiated</td>\n<td>Triggers a notification when a refund is initiated for a request.</td>\n</tr>\n<tr>\n<td>refund_completed</td>\n<td>Triggers a notification when a refund is completed for a request.</td>\n</tr>\n<tr>\n<td>refund_approved</td>\n<td>Triggers a notification when a refund is approved for a request.</td>\n</tr>\n<tr>\n<td>exchange_initiated</td>\n<td>Triggers a notification when a exchange is initiated for a request.</td>\n</tr>\n<tr>\n<td>exchange_completed</td>\n<td>Triggers a notification when a refund is completed for a request.</td>\n</tr>\n<tr>\n<td>qc_completed</td>\n<td>Triggers a notification when a qc is completed for a request.</td>\n</tr>\n<tr>\n<td>comment_received</td>\n<td>Triggers a notification when a comment is received for a request.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"webhook-payload\">Webhook Payload</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"event\": \"exchange_initaited\",\n    \"id\": 678,\n    \"reference_id\": \"6081EXC1865\",\n    \"order_id\": \"5041045504153\",\n    \"order_number\": \"1865\",\n    \"customer_first_name\": \"Debopriyo\",\n    \"customer_last_name\": \"Das\",\n    \"customer_email\": \"debopriyo@logisy.tech\",\n    \"customer_phone_number\": \"+916001261818\",\n    \"return_type\": \"exchange\",\n    \"customer_reason_code\": null,\n    \"customer_reason_label\": null,\n    \"created_at\": \"2023-08-19T09:17:44.371762+05:30\",\n    \"status\": 101,\n    \"priority\": null,\n    \"tags\": null,\n    \"customer_address_line_1\": \"Mestri Palya\",\n    \"customer_address_line_2\": \"Vasathi Avante Apt.\",\n    \"customer_address_city\": \"Bangalore\",\n    \"customer_address_state\": \"Karnataka\",\n    \"qc_performed_at\": null,\n    \"customer_address_pin\": \"560045\",\n    \"customer_address_country\": \"India\",\n    \"customer_preferred_refund_method\": null,\n    \"is_deleted\": false,\n    \"closed\": false,\n    \"closed_at\": null,\n    \"closing_notes\": null,\n    \"reject_reason\": null,\n    \"bank_transfer_charge\": \"0.00\",\n    \"coupon_charge\": \"0.00\",\n    \"exchange_shipment_charge\": \"0.00\",\n    \"return_shipment_charge\": \"50.00\",\n    \"reimburse_amount\": \"0.00\",\n    \"amount_to_refund_after_exchange\": \"50.00\",\n    \"product_tag_exists\": false,\n    \"shipment_handled_by\": null,\n    \"pre_approve_refund_amount\": null,\n    \"picked_up_created_at\": null,\n    \"line_items\": [\n        {\n            \"variant_id\": \"43222030647449\",\n            \"product_title\": \"\\\"rainbow\\\" half sleeve rayon shirt\",\n            \"variant_name\": \"S\",\n            \"product_sku\": \"\",\n            \"product_price\": \"622.12\",\n            \"variant_image_url\": \"https://cdn.shopify.com/s/files/1/0613/4559/5545/files/GSHSSHT20246RANBOW_4.jpg?v=1687355013\",\n            \"variant_weight\": \"500.00\",\n            \"variant_weight_unit\": \"g\",\n            \"quantity\": 1,\n            \"exchange_product_id\": \"7680752418969\",\n            \"exchange_product_title\": \"\\\"rainbow\\\" half sleeve rayon shirt\",\n            \"exchange_variant_id\": \"43222030680217\",\n            \"exchange_variant_name\": \"M\",\n            \"exchange_product_sku\": \"\",\n            \"exchange_product_price\": \"779.00\",\n            \"exchange_variant_image_url\": \"https://cdn.shopify.com/s/files/1/0613/4559/5545/files/GSHSSHT20246RANBOW_4.jpg?v=1687355013\",\n            \"exchange_variant_weight\": \"500.00\",\n            \"exchange_variant_weight_unit\": \"g\",\n            \"return_type\": \"exchange\",\n            \"id\": 924,\n            \"accepted\": true,\n            \"generate_reverse\": true,\n            \"rejected\": false,\n            \"product_id\": \"7680752418969\",\n            \"return_warehouse_id\": \"30167\",\n            \"warehouse_confirmed\": false,\n            \"return_address_id\": null,\n            \"return_order_number\": null,\n            \"return_manifest_number\": null,\n            \"return_shipment_id\": null,\n            \"return_shipment_awb\": null,\n            \"return_shipment_method\": null,\n            \"return_shipment_company\": null,\n            \"return_shipment_url\": null,\n            \"return_shipment_status\": null,\n            \"picked_up_created_at\": null,\n            \"qc_passed\": false,\n            \"qc_performed_at\": null,\n            \"customer_reason_label\": \"Poor quality\",\n            \"customer_sub_reason_label\": null,\n            \"picked_up\": false,\n            \"delivered\": false,\n            \"uniware_reverse_pickup_code\": null\n        },\n        {\n            \"variant_id\": \"43222006268057\",\n            \"product_title\": \"\\\"bear\\\" full sleeve black fleece hoodie-gsfshdbeer3017blk\",\n            \"variant_name\": \"S\",\n            \"product_sku\": \"GSFSHDBEER3017BLK_S\",\n            \"product_price\": \"717.96\",\n            \"variant_image_url\": \"https://cdn.shopify.com/s/files/1/0613/4559/5545/files/GSFSHDBEER3017BLK_3.jpg?v=1687354676\",\n            \"variant_weight\": \"500.00\",\n            \"variant_weight_unit\": \"g\",\n            \"quantity\": 3,\n            \"exchange_product_id\": \"7680751730841\",\n            \"exchange_product_title\": \"\\\"bear\\\" full sleeve black fleece hoodie-gsfshdbeer3017blk\",\n            \"exchange_variant_id\": \"43222006300825\",\n            \"exchange_variant_name\": \"M\",\n            \"exchange_product_sku\": \"GSFSHDBEER3017BLK_M\",\n            \"exchange_product_price\": \"899.00\",\n            \"exchange_variant_image_url\": \"https://cdn.shopify.com/s/files/1/0613/4559/5545/files/GSFSHDBEER3017BLK_3.jpg?v=1687354676\",\n            \"exchange_variant_weight\": \"500.00\",\n            \"exchange_variant_weight_unit\": \"g\",\n            \"return_type\": \"exchange\",\n            \"id\": 923,\n            \"accepted\": true,\n            \"generate_reverse\": true,\n            \"rejected\": false,\n            \"product_id\": \"7680751730841\",\n            \"return_warehouse_id\": \"30167\",\n            \"warehouse_confirmed\": false,\n            \"return_address_id\": null,\n            \"return_order_number\": null,\n            \"return_manifest_number\": null,\n            \"return_shipment_id\": null,\n            \"return_shipment_awb\": null,\n            \"return_shipment_method\": null,\n            \"return_shipment_company\": null,\n            \"return_shipment_url\": null,\n            \"return_shipment_status\": null,\n            \"picked_up_created_at\": null,\n            \"qc_passed\": false,\n            \"qc_performed_at\": null,\n            \"customer_reason_label\": \"Poor quality\",\n            \"customer_sub_reason_label\": null,\n            \"picked_up\": false,\n            \"delivered\": false,\n            \"uniware_reverse_pickup_code\": null\n        }\n    ],\n    \"exchange_details\": [\n        {\n            \"exchange_order_number\": \"1958\",\n            \"exchange_order_id\": \"5068294324377\",\n            \"exchange_status\": \"exchange_initiated\",\n            \"exchange_order_financial_status\": \"partially_paid\",\n            \"exchange_order_url\": \"https://bepragma-demo.myshopify.com/61345595545/orders/36e507d8e6c89b30b8753f4cee275417/authenticate?key=0e04da1b49702c9b0988b02d41434c58\",\n            \"exchange_initiated_by\": \"lgsy_bot\",\n            \"exchange_initiated_at\": \"2023-08-19 03:47:45\",\n            \"exchange_on_hold\": \"Yes\",\n            \"return_request\": \"6081EXC1865\"\n        },\n        {\n            \"exchange_order_number\": \"1959\",\n            \"exchange_order_id\": \"5068294389913\",\n            \"exchange_status\": \"exchange_initiated\",\n            \"exchange_order_financial_status\": \"partially_paid\",\n            \"exchange_order_url\": \"https://bepragma-demo.myshopify.com/61345595545/orders/88aee435f70b87530b41dfc7da1a7e90/authenticate?key=79b6f5d73ca0fbc9ffa240da85b06917\",\n            \"exchange_initiated_by\": \"lgsy_bot\",\n            \"exchange_initiated_at\": \"2023-08-19 03:47:47\",\n            \"exchange_on_hold\": \"Yes\",\n            \"return_request\": \"6081EXC1865\"\n        }\n    ],\n    \"refund_details\": [\n        {\n            \"refund_type\": \"reimbursement\",\n            \"customer_preferred_refund_method\": null,\n            \"refund_method\": \"coupon\",\n            \"account_number\": null,\n            \"confirm_account_number\": null,\n            \"account_holder_name\": null,\n            \"ifsc_code\": null,\n            \"vpa\": null,\n            \"refund_amount\": \"50.00\",\n            \"giftcard_code\": null,\n            \"giftcard_expires_on\": null,\n            \"giftcard_id\": null,\n            \"refund_status\": \"refund_completed\",\n            \"cashgram_status\": null,\n            \"razorpayx_status\": null,\n            \"bank_transfer_status\": null,\n            \"refund_id\": \"63F8D3\",\n            \"payout_idempotency_key\": null,\n            \"refund_url\": null,\n            \"refund_url_expiry\": null,\n            \"refund_note\": null,\n            \"refund_initiated_by\": \"bepragmademo@gmail.com\",\n            \"refund_initiated_at\": \"2023-08-21 09:10:47\",\n            \"refund_bypassed\": null,\n            \"new_link_generated\": false,\n            \"return_request\": \"6081EXC1865\"\n        }\n    ],\n    \"reverse_shipments\": [],\n    \"comments\": [],\n    \"self_ship_details\": null\n}\n\n</code></pre>\n","_postman_id":"93ffd4c0-5b93-447c-81b0-64d524c82a2e"}],"id":"104729db-6801-4b2f-ac0e-a682bba7d5bf","_postman_id":"104729db-6801-4b2f-ac0e-a682bba7d5bf","description":""}],"id":"f98192da-c630-47bd-9df7-818f9fdb11bf","_postman_id":"f98192da-c630-47bd-9df7-818f9fdb11bf","description":""},{"name":"1Checkout","item":[],"id":"a11bba79-d149-4b6c-b1cd-8668a2946f36","description":"<h1 id=\"merchant-custom-wallet-integration-api-requirements\">Merchant Custom Wallet Integration API Requirements</h1>\n<p>This document outlines the REST APIs that a merchant-managed wallet service <strong>must</strong> expose so that it can be plugged into the OneCheckout platform alongside the existing Nector integration. The contract is intentionally prescriptive—merchants are expected to implement the endpoints <strong>exactly</strong> as described below.</p>\n<h2 id=\"1-authentication\">1. Authentication</h2>\n<ul>\n<li>Authentication is header based.</li>\n<li>Every request from OneCheckout will carry an <code>X-API-Key</code> header whose value matches the secret shared by the wallet provider during onboarding.</li>\n<li>Requests without a valid key must be rejected with <code>401 Unauthorized</code>.</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-http\">X-API-Key: &lt;merchant_specific_api_key&gt;\nContent-Type: application/json\n</code></pre>\n<h2 id=\"2-fetch-available-credits\">2. Fetch available credits</h2>\n<p>Returns the current wallet balance for a customer. This endpoint is invoked whenever the checkout UI is rendered or refreshed.</p>\n<ul>\n<li><strong>Method</strong>: <code>POST</code></li>\n<li><strong>Endpoint</strong>: <code>/wallet/v1/credits/fetch</code></li>\n</ul>\n<h3 id=\"request-body\">Request body</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"customer\": {\n    \"phone_number\": \"+91XXXXXXXXXX\",\n    \"email\": \"optional@email.com\"\n  },\n  \"context\": {\n    \"checkout_reference\": \"&lt;one_checkout_checkout_id&gt;\",\n    \"cart_value\": 3499.0,\n    \"currency\": \"INR\"\n  }\n}\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Mandatory</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>customer.phone_number</code></td>\n<td>string</td>\n<td>✅</td>\n<td>Normalised E.164 phone number (without spaces).</td>\n</tr>\n<tr>\n<td><code>customer.email</code></td>\n<td>string</td>\n<td>❌</td>\n<td>Optional identifier for reconciliation.</td>\n</tr>\n<tr>\n<td><code>context.checkout_reference</code></td>\n<td>string</td>\n<td>✅</td>\n<td>OneCheckout checkout hash for traceability.</td>\n</tr>\n<tr>\n<td><code>context.cart_value</code></td>\n<td>number</td>\n<td>✅</td>\n<td>Gross cart value (before coupons or wallet discounts).</td>\n</tr>\n<tr>\n<td><code>context.currency</code></td>\n<td>string</td>\n<td>✅</td>\n<td>ISO-4217 currency code.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-body\">Response body</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"meta\": {\"code\": 200},\n  \"data\": {\n    \"available_credits\": 1200.0,\n    \"conversion_factor\": 1.0,\n    \"max_redeem_ratio\": 1.0,\n    \"currency\": \"INR\"\n  }\n}\n</code></pre>\n<ul>\n<li><code>available_credits</code> – Total credits currently held by the customer.</li>\n<li><code>conversion_factor</code> – How many units of checkout currency one wallet credit represents.</li>\n<li><code>max_redeem_ratio</code> – Decimal fraction (0–1) that caps redemptions (e.g. <code>0.5</code> ⇒ 50% of cart value). For MerchantCustomWallet the expected value is <code>1.0</code> unless negotiated otherwise.</li>\n</ul>\n<h3 id=\"error-scenarios\">Error scenarios</h3>\n<ul>\n<li>Non-existent customer ⇒ <code>404</code> with <code>meta.code = 404</code>.</li>\n<li>Validation errors ⇒ <code>400</code> with details in the <code>errors</code> array.</li>\n</ul>\n<h2 id=\"3-calculate-redeemable-credits\">3. Calculate redeemable credits</h2>\n<p>Determines how many credits can be applied to the <strong>current</strong> cart and returns the exact discount that should be reflected in OneCheckout.</p>\n<ul>\n<li><strong>Method</strong>: <code>POST</code></li>\n<li><strong>Endpoint</strong>: <code>/wallet/v1/credits/calculate</code></li>\n</ul>\n<h3 id=\"request-body-1\">Request body</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"customer\": {\n    \"phone_number\": \"+91XXXXXXXXXX\"\n  },\n  \"context\": {\n    \"checkout_reference\": \"&lt;one_checkout_checkout_id&gt;\",\n    \"cart_value\": 3499.0,\n    \"currency\": \"INR\",\n    \"items\": [\n      {\n        \"sku\": \"SKU-1\",\n        \"title\": \"Product name\",\n        \"unit_price\": 999.0,\n        \"quantity\": 2\n      }\n    ]\n  }\n}\n</code></pre>\n<h3 id=\"response-body-1\">Response body</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"meta\": {\"code\": 200},\n  \"data\": {\n    \"calculation_reference\": \"calc_123456789\",\n    \"redeemable_credits\": 1200.0,\n    \"conversion_factor\": 1.0,\n    \"discount_amount\": 1200.0,\n    \"currency\": \"INR\"\n  }\n}\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>calculation_reference</code></td>\n<td>Token that must be supplied during redemption.</td>\n</tr>\n<tr>\n<td><code>redeemable_credits</code></td>\n<td>Wallet credits that should be applied for the present cart.</td>\n</tr>\n<tr>\n<td><code>conversion_factor</code></td>\n<td>May repeat the value returned by the fetch API for completeness.</td>\n</tr>\n<tr>\n<td><code>discount_amount</code></td>\n<td>Monetary discount to be subtracted from the checkout total.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"behavioural-rules\">Behavioural rules</h3>\n<ul>\n<li>The service <strong>must</strong> honour the <code>max_redeem_ratio</code> shared during onboarding. For instance, if the ratio is <code>0.5</code>, the returned <code>discount_amount</code> should never exceed 50% of <code>cart_value</code>.</li>\n<li>If no credits are applicable, respond with <code>discount_amount = 0</code> and <code>redeemable_credits = 0</code> but still issue a unique <code>calculation_reference</code> for auditing.</li>\n</ul>\n<h2 id=\"4-redeem-credits\">4. Redeem credits</h2>\n<p>Invoked after the order is successfully placed. The wallet service is expected to mark the credits as redeemed and return a final confirmation identifier.</p>\n<ul>\n<li><strong>Method</strong>: <code>POST</code></li>\n<li><strong>Endpoint</strong>: <code>/wallet/v1/credits/redeem</code></li>\n</ul>\n<h3 id=\"request-body-2\">Request body</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"calculation_reference\": \"calc_123456789\",\n  \"checkout_reference\": \"&lt;one_checkout_checkout_id&gt;\",\n  \"order_reference\": \"&lt;platform_order_id&gt;\",\n  \"redeemed_credits\": 1200.0,\n  \"discount_amount\": 1200.0,\n  \"currency\": \"INR\",\n  \"meta\": {\n    \"payment_mode\": \"prepaid\",\n    \"notes\": \"Optional reconciliation comment\"\n  }\n}\n</code></pre>\n<h3 id=\"response-body-2\">Response body</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"meta\": {\"code\": 200},\n  \"data\": {\n    \"redemption_reference\": \"red_987654321\",\n    \"status\": \"success\",\n    \"processed_at\": \"2024-04-25T10:14:53Z\"\n  }\n}\n</code></pre>\n<ul>\n<li>If redemption fails for recoverable reasons (e.g. transient errors), return <code>meta.code = 409</code> with a descriptive error message so OneCheckout can retry.</li>\n<li>If the calculation reference is unknown or already redeemed, respond with <code>meta.code = 404</code> or <code>meta.code = 409</code> respectively.</li>\n</ul>\n<h2 id=\"5-common-error-schema\">5. Common error schema</h2>\n<p>All failure responses should follow the same structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"meta\": {\"code\": &lt;http_status_code&gt;},\n  \"errors\": [\n    {\n      \"code\": \"validation_error\",\n      \"message\": \"Cart value cannot be negative\"\n    }\n  ]\n}\n</code></pre>\n<h2 id=\"6-idempotency-expectations\">6. Idempotency expectations</h2>\n<ul>\n<li>The wallet provider must treat <code>calculation_reference</code> as idempotent within a checkout session.</li>\n<li>Redeem requests for the same <code>calculation_reference</code> and <code>checkout_reference</code> combination must return the original response even if the operation has already been processed.</li>\n</ul>\n<h2 id=\"7-observability\">7. Observability</h2>\n<ul>\n<li>Each API should include a <code>X-Request-Id</code> header in its response. OneCheckout will mirror this identifier in its logs to simplify debugging.</li>\n<li>Providers are encouraged to log payloads and errors at their end for reconciliation purposes.</li>\n</ul>\n<h2 id=\"8-timeouts-and-retries\">8. Timeouts and retries</h2>\n<ul>\n<li>OneCheckout will enforce a 5 second timeout per request.</li>\n<li>In case of timeout or HTTP 5xx responses, OneCheckout may retry up to three times with exponential backoff. Providers should design their APIs to be idempotent under retries.</li>\n</ul>\n<h2 id=\"9-edge-cases--data-validation-expectations\">9. Edge cases &amp; data validation expectations</h2>\n<ul>\n<li><strong>Numeric fields must be valid numbers.</strong> <code>available_credits</code>, <code>redeemable_credits</code>, <code>conversion_factor</code>, and <code>discount_amount</code> should be serialised as JSON numbers. If <code>null</code> or malformed strings are returned we will treat the values as zero and suppress redemption for that checkout.</li>\n<li><strong>Cart value of zero.</strong> When <code>cart_value</code> is <code>0</code>, return <code>redeemable_credits = 0</code> and <code>discount_amount = 0</code> but still generate a <code>calculation_reference</code> so the checkout can remain idempotent.</li>\n<li><strong>Currency mismatches.</strong> Respond with <code>400</code> and a descriptive error if the provided currency is unsupported—OneCheckout will surface the error to the merchant instead of attempting redemption.</li>\n<li><strong>Partial redemption failures.</strong> If the wallet has already marked credits as redeemed for the supplied <code>calculation_reference</code>, respond with <code>409</code> and include the original <code>redemption_reference</code>. OneCheckout will persist that identifier without duplicating the redemption request.</li>\n</ul>\n<h2 id=\"10-sandbox-mode-optional\">10. Sandbox mode (optional)</h2>\n<p>If a sandbox environment is offered, expose identical endpoints with a different API key. The payload and response structure must not differ between sandbox and production.</p>\n<hr />\n<p>By adhering to this specification, the external wallet can be seamlessly integrated into OneCheckout while remaining fully independent in terms of credit accrual and lifecycle management.</p>\n","_postman_id":"a11bba79-d149-4b6c-b1cd-8668a2946f36"},{"name":"ShipAxis","item":[{"name":"Pragma APIs / Webhooks","item":[{"name":"Couriers","item":[{"name":"Create Courier Priority For Warehouse API","id":"6d53e919-cc54-4dcc-99e6-4bd596489594","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"priority_type\": \"forward\",\n    \"priority\": 1,\n    \"courier_display_name\": \"string\",\n    \"courier_identifier\": \"string\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.example.com/api/v1/couriers/warehouse_courier_priority/:sa_warehouse_identifier/create","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","name":"Pragma APIs / Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","couriers","warehouse_courier_priority",":sa_warehouse_identifier","create"],"host":["https://api.example.com"],"query":[],"variable":[{"type":"any","value":"","key":"sa_warehouse_identifier"}]}},"response":[],"_postman_id":"6d53e919-cc54-4dcc-99e6-4bd596489594"},{"name":"Get Courier Priorities For Warehouse API","id":"b26b4e59-25b4-4f60-bf3b-159ac2726876","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.example.com/api/v1/couriers/warehouse_courier_priority/:sa_warehouse_identifier/list","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","name":"Pragma APIs / Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","couriers","warehouse_courier_priority",":sa_warehouse_identifier","list"],"host":["https://api.example.com"],"query":[],"variable":[{"type":"any","value":"","key":"sa_warehouse_identifier"}]}},"response":[],"_postman_id":"b26b4e59-25b4-4f60-bf3b-159ac2726876"}],"id":"24fce157-5764-41d9-b542-a33780251a10","_postman_id":"24fce157-5764-41d9-b542-a33780251a10","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","name":"Pragma APIs / Webhooks","type":"folder"}}},{"name":"Shipments","item":[{"name":"Create Forward Shipment API","id":"7c28ee26-0e94-4a26-80af-2a4a07684e5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"order_id\": \"string\",\n    \"order_name\": \"string\",\n    \"order_number\": \"string\",\n    \"order_vendor\": \"string\",\n    \"order_url\": \"http://example.com\",\n    \"is_test_order\": false,\n    \"payment_type\": \"cod\",\n    \"subtotal_order_price\": 0,\n    \"total_discounts\": 0,\n    \"total_shipping_price\": 0,\n    \"is_tax_included\": true,\n    \"total_tax\": 0,\n    \"total_order_price\": 0,\n    \"total_paid\": 0,\n    \"total_outstanding\": 0,\n    \"package_weight\": \"500\",\n    \"package_length\": \"10\",\n    \"package_breadth\": \"10\",\n    \"package_height\": \"10\",\n    \"awb_number\": \"string\",\n    \"tracking_url\": \"http://example.com\",\n    \"logistics_provider\": \"bluedart\",\n    \"logistics_provider_identifier\": \"string\",\n    \"store_provider\": \"amazon\",\n    \"billing_address\": {\n        \"address_category\": \"commercial\",\n        \"first_name\": \"Customer\",\n        \"last_name\": \"string\",\n        \"address_line_1\": \"string\",\n        \"address_line_2\": \"string\",\n        \"landmark\": \"string\",\n        \"city\": \"string\",\n        \"state\": \"string\",\n        \"pincode\": \"string\",\n        \"country\": \"India\",\n        \"country_code\": \"IN\",\n        \"latitude\": \"string\",\n        \"longitude\": \"string\",\n        \"email\": \"user@example.com\",\n        \"phone_number\": \"string\"\n    },\n    \"shipping_address\": {\n        \"address_category\": \"commercial\",\n        \"first_name\": \"Customer\",\n        \"last_name\": \"string\",\n        \"address_line_1\": \"string\",\n        \"address_line_2\": \"string\",\n        \"landmark\": \"string\",\n        \"city\": \"string\",\n        \"state\": \"string\",\n        \"pincode\": \"string\",\n        \"country\": \"India\",\n        \"country_code\": \"IN\",\n        \"latitude\": \"string\",\n        \"longitude\": \"string\",\n        \"email\": \"user@example.com\",\n        \"phone_number\": \"string\"\n    },\n    \"items\": [\n        {\n            \"line_item_id\": \"string\",\n            \"product_id\": \"string\",\n            \"product_title\": \"string\",\n            \"variant_id\": \"string\",\n            \"variant_name\": \"string\",\n            \"sku\": \"string\",\n            \"quantity\": 0,\n            \"item_unit_price\": 0,\n            \"item_total_discounts\": 0,\n            \"is_tax_included\": true,\n            \"item_total_tax\": 0,\n            \"size\": \"string\",\n            \"color\": \"string\",\n            \"image\": \"http://example.com\",\n            \"hsn_code\": \"string\",\n            \"barcode\": \"string\",\n            \"category\": \"string\",\n            \"weight\": 0,\n            \"length\": 0,\n            \"breadth\": 0,\n            \"height\": 0\n        }\n    ],\n    \"pickup_warehouse_identifier\": \"string\",\n    \"rto_warehouse_identifier\": \"string\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.example.com/api/v1/shipments/forward/create","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","name":"Pragma APIs / Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","shipments","forward","create"],"host":["https://api.example.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7c28ee26-0e94-4a26-80af-2a4a07684e5b"},{"name":"Get Forward Shipment Details API","id":"a8a4f933-6f8d-42dc-a9c1-3fe179cfe925","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.example.com/api/v1/shipments/forward/details?awb_number","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","name":"Pragma APIs / Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","shipments","forward","details"],"host":["https://api.example.com"],"query":[{"key":"awb_number","value":null}],"variable":[]}},"response":[],"_postman_id":"a8a4f933-6f8d-42dc-a9c1-3fe179cfe925"},{"name":"Get All Forward Shipments API","id":"8207bdba-d1b2-4ce6-b728-1bd7191d0a16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.example.com/api/v1/shipments/forward/list","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","name":"Pragma APIs / Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","shipments","forward","list"],"host":["https://api.example.com"],"query":[{"disabled":true,"key":"limit","value":"10"},{"disabled":true,"key":"offset","value":"0"},{"disabled":true,"key":"order_id","value":"UHD123456"},{"disabled":true,"key":"query","value":""}],"variable":[]}},"response":[],"_postman_id":"8207bdba-d1b2-4ce6-b728-1bd7191d0a16"},{"name":"Cancel Forward Shipment API","id":"e9111fcb-ffbb-471c-a6c5-aa9e37a88902","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"awb_number\": \"string\",\n    \"cancel_shipment_order\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://api.example.com/api/v1/shipments/forward/cancel","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","name":"Pragma APIs / Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","shipments","forward","cancel"],"host":["https://api.example.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e9111fcb-ffbb-471c-a6c5-aa9e37a88902"},{"name":"Get Shipment Label API","id":"cdf684c0-2a85-4c71-969e-1297b2c3170f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.example.com/api/v1/shipments/label?awb_number","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","name":"Pragma APIs / Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","shipments","label"],"host":["https://api.example.com"],"query":[{"key":"awb_number","value":null},{"disabled":true,"key":"dimensions","value":"5x5"},{"disabled":true,"key":"img_url","value":"https://logisy-connect.s3.amazonaws.com/MerchantUploadedMedia/597/6321_logothor1png.png"}],"variable":[]}},"response":[],"_postman_id":"cdf684c0-2a85-4c71-969e-1297b2c3170f"}],"id":"0bfee68d-6f2c-4598-8cd8-bd3a68c3c407","_postman_id":"0bfee68d-6f2c-4598-8cd8-bd3a68c3c407","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","name":"Pragma APIs / Webhooks","type":"folder"}}},{"name":"Warehouses","item":[{"name":"Create Warehouse API","id":"904f70ee-9c66-451e-9dc3-ba037f047efa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"is_active\": true,\n    \"is_default\": false,\n    \"title\": \"string\",\n    \"address_line_1\": \"string\",\n    \"address_line_2\": \"string\",\n    \"landmark\": \"string\",\n    \"city\": \"string\",\n    \"state\": \"string\",\n    \"pincode\": \"string\",\n    \"country\": \"India\",\n    \"country_code\": \"IN\",\n    \"latitude\": \"string\",\n    \"longitude\": \"string\",\n    \"contact_first_name\": \"string\",\n    \"contact_last_name\": \"string\",\n    \"contact_email\": \"user@example.com\",\n    \"contact_phone_number\": \"string\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.example.com/api/v1/warehouses/create","description":"<h1 id=\"create-warehouse-api\">Create Warehouse API</h1>\n<h2 id=\"api-overview\">API Overview</h2>\n<p>The Create Warehouse API allows merchants to register a new warehouse/pickup location in the ShipAxis system. This warehouse can then be used as a pickup point for shipments.</p>\n<hr />\n<h2 id=\"endpoint-details\">Endpoint Details</h2>\n<p><strong>HTTP Method:</strong> <code>POST</code><br /><strong>Endpoint:</strong> <code>/api/v1/warehouses/create</code><br /><strong>Status Code on Success:</strong> <code>201 Created</code><br /><strong>Authentication Required:</strong> Yes (Merchant API Key)</p>\n<hr />\n<h2 id=\"request-parameters\">Request Parameters</h2>\n<p>All parameters are sent in the <strong>request body</strong> as JSON.</p>\n<h3 id=\"request-body-schema\">Request Body Schema</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Max Length</th>\n<th>Default</th>\n<th>Validation</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>is_active</code></td>\n<td>boolean</td>\n<td>No</td>\n<td>-</td>\n<td><code>true</code></td>\n<td>-</td>\n<td>Indicates if the warehouse is active and can be used for shipments</td>\n</tr>\n<tr>\n<td><code>is_default</code></td>\n<td>boolean</td>\n<td>No</td>\n<td>-</td>\n<td><code>false</code></td>\n<td>-</td>\n<td>Marks this warehouse as the default pickup location for the merchant. <strong>Note:</strong> Only one warehouse can be default per merchant</td>\n</tr>\n<tr>\n<td><strong>Address Related Fields</strong></td>\n<td></td>\n<td></td>\n<td></td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>title</code></td>\n<td>string</td>\n<td><strong>Yes</strong></td>\n<td>150 chars</td>\n<td>-</td>\n<td>Required</td>\n<td>Name/title of the warehouse (e.g., \"Main Warehouse\", \"Mumbai Distribution Center\")</td>\n</tr>\n<tr>\n<td><code>address_line_1</code></td>\n<td>string</td>\n<td><strong>Yes</strong></td>\n<td>90 chars</td>\n<td>-</td>\n<td>Required</td>\n<td>Primary address line of the warehouse</td>\n</tr>\n<tr>\n<td><code>address_line_2</code></td>\n<td>string</td>\n<td>No</td>\n<td>90 chars</td>\n<td><code>null</code></td>\n<td>-</td>\n<td>Secondary address line (e.g., floor, building number)</td>\n</tr>\n<tr>\n<td><code>landmark</code></td>\n<td>string</td>\n<td>No</td>\n<td>150 chars</td>\n<td><code>null</code></td>\n<td>-</td>\n<td>Nearby landmark for easy location identification</td>\n</tr>\n<tr>\n<td><code>city</code></td>\n<td>string</td>\n<td><strong>Yes</strong></td>\n<td>150 chars</td>\n<td>-</td>\n<td>Required</td>\n<td>City where the warehouse is located</td>\n</tr>\n<tr>\n<td><code>state</code></td>\n<td>string</td>\n<td><strong>Yes</strong></td>\n<td>100 chars</td>\n<td>-</td>\n<td>Required</td>\n<td>State where the warehouse is located</td>\n</tr>\n<tr>\n<td><code>pincode</code></td>\n<td>string</td>\n<td><strong>Yes</strong></td>\n<td>15 chars</td>\n<td>-</td>\n<td>Required</td>\n<td>Postal/PIN code of the warehouse location</td>\n</tr>\n<tr>\n<td><code>country</code></td>\n<td>string</td>\n<td>No</td>\n<td>100 chars</td>\n<td><code>\"India\"</code></td>\n<td>-</td>\n<td>Country where the warehouse is located</td>\n</tr>\n<tr>\n<td><code>country_code</code></td>\n<td>string</td>\n<td>No</td>\n<td>3 chars</td>\n<td><code>\"IN\"</code></td>\n<td>-</td>\n<td>ISO country code (e.g., \"IN\" for India, \"US\" for United States)</td>\n</tr>\n<tr>\n<td><code>latitude</code></td>\n<td>string</td>\n<td>No</td>\n<td>50 chars</td>\n<td><code>null</code></td>\n<td>-</td>\n<td>Latitude coordinate of the warehouse location</td>\n</tr>\n<tr>\n<td><code>longitude</code></td>\n<td>string</td>\n<td>No</td>\n<td>50 chars</td>\n<td><code>null</code></td>\n<td>-</td>\n<td>Longitude coordinate of the warehouse location</td>\n</tr>\n<tr>\n<td><strong>Contact Related Fields</strong></td>\n<td></td>\n<td></td>\n<td></td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>contact_first_name</code></td>\n<td>string</td>\n<td><strong>Yes</strong></td>\n<td>150 chars</td>\n<td>-</td>\n<td>Required</td>\n<td>First name of the warehouse contact person</td>\n</tr>\n<tr>\n<td><code>contact_last_name</code></td>\n<td>string</td>\n<td>No</td>\n<td>150 chars</td>\n<td><code>null</code></td>\n<td>-</td>\n<td>Last name of the warehouse contact person</td>\n</tr>\n<tr>\n<td><code>contact_email</code></td>\n<td>string (email)</td>\n<td><strong>Yes</strong></td>\n<td>255 chars</td>\n<td>-</td>\n<td>Valid email format</td>\n<td>Email address of the warehouse contact person</td>\n</tr>\n<tr>\n<td><code>contact_phone_number</code></td>\n<td>string</td>\n<td><strong>Yes</strong></td>\n<td>15 chars</td>\n<td>-</td>\n<td>Pattern: <code>^\\\\+?1?\\\\d{9,15}$</code></td>\n<td>Phone number of the warehouse contact person (9-15 digits, optionally starting with + or 1)</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"important-notes\">Important Notes:</h3>\n<ol>\n<li><p><strong>Unique Warehouse Identification:</strong> The system automatically generates a unique <code>sa_warehouse_identifier</code> for every warehouse.</p>\n</li>\n<li><p><strong>Default Warehouse Constraint:</strong> If <code>is_default</code> is set to <code>true</code>, the system enforces that only ONE default warehouse can exist per merchant. Attempting to create another default warehouse will result in a <code>409 Conflict</code> error.</p>\n</li>\n<li><p><strong>Duplicate Warehouse Detection:</strong> The system prevents duplicate warehouses creation</p>\n</li>\n<li><p><strong>Phone Number Validation:</strong> The phone number must:</p>\n<ul>\n<li><p>Contain 9 to 15 digits</p>\n</li>\n<li><p>Optionally start with <code>+</code> or <code>1</code></p>\n</li>\n<li><p>Example valid formats: <code>9876543210</code>, <code>+919876543210</code>, <code>19876543210</code></p>\n</li>\n</ul>\n</li>\n</ol>\n<hr />\n<h2 id=\"responses\">Responses</h2>\n<h3 id=\"success-response-201-created\">Success Response (201 Created)</h3>\n<p>When a warehouse is successfully created, the API returns:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"message\": \"Warehouse created successfully\",\n  \"data\": {\n    \"sa_warehouse_identifier\": \"unique_sa_warehouse_identifier\"\n  },\n  \"trace_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n  \"timestamp\": \"2026-01-28T09:23:13.123456+05:30\"\n}\n\n</code></pre>\n<p><strong>Response Data Object Fields:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sa_warehouse_identifier</code></td>\n<td>string</td>\n<td>Unique ShipAxis warehouse identifier - use this to reference the warehouse in future API calls</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-responses\">Error Responses</h3>\n<h4 id=\"1-duplicate-default-warehouse-409-conflict\">1. Duplicate Default Warehouse (409 Conflict)</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": false,\n  \"message\": \"Default Warehouse already exists\\nAssociated unique sa_warehouse_identifier: &lt;sa_default_warehouse_identifier&gt;\",\n  \"error\": {\n    \"detail\": \"&lt;database_error_message&gt;\"\n  },\n  \"trace_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n  \"timestamp\": \"2026-01-28T09:23:13.123456+05:30\"\n}\n\n</code></pre>\n<h4 id=\"2-duplicate-warehouse-409-conflict\">2. Duplicate Warehouse (409 Conflict)</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": false,\n  \"message\": \"Warehouse titled &amp;#x27;Mumbai Main Warehouse&amp;#x27; already exists for pincode 400069. Associated unique sa_warehouse_identifier: &lt;sa_associated_warehouse_identifier&gt;\",\n  \"error\": {\n    \"detail\": \"&lt;database_error_message&gt;\"\n  },\n  \"trace_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n  \"timestamp\": \"2026-01-28T09:23:13.123456+05:30\"\n}\n\n</code></pre>\n<p><strong>What to do with the response:</strong></p>\n<ul>\n<li><p>Save the <code>sa_warehouse_identifier</code> value from the response</p>\n</li>\n<li><p>Use this identifier in subsequent API calls to:</p>\n<ul>\n<li><p>Add warehouse sources (marketplace integrations)</p>\n</li>\n<li><p>Create shipments with this warehouse as the pickup location</p>\n</li>\n<li><p>Update warehouse details</p>\n</li>\n<li><p>Fetch warehouse information</p>\n</li>\n</ul>\n</li>\n</ul>\n<hr />\n<h2 id=\"common-use-cases\">Common Use Cases</h2>\n<h3 id=\"1-creating-a-default-warehouse\">1. Creating a Default Warehouse</h3>\n<p>Set <code>is_default</code> to <code>true</code> for the first warehouse you create. This warehouse will be used as the default pickup location when no specific warehouse is mentioned in shipment creation.</p>\n<h3 id=\"2-multiple-warehouses\">2. Multiple Warehouses</h3>\n<p>Create multiple warehouses for different locations. Each warehouse will have a unique <code>sa_warehouse_identifier</code> that you can use to specify pickup locations for different shipments.</p>\n<h3 id=\"3-marketplace-integration\">3. Marketplace Integration</h3>\n<p>After creating a warehouse in ShipAxis, you can link it to your marketplace warehouse using the \"Create Warehouse Source\" API endpoint:<br /><code>POST /api/v1/warehouses/{sa_warehouse_identifier}/warehouse_sources/create</code></p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","name":"Pragma APIs / Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","warehouses","create"],"host":["https://api.example.com"],"query":[],"variable":[]}},"response":[{"id":"8bb8fe71-926d-4d5b-95bf-cd265389971b","name":"Warehouse Created Successfully","originalRequest":{"method":"POST","header":[{"key":"X-API-Key","value":"your_merchant_api_key_here"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"is_active\": true,\n  \"is_default\": true,\n  \"title\": \"Mumbai Main Warehouse\",\n  \"address_line_1\": \"123, Industrial Area, Andheri East\",\n  \"address_line_2\": \"Near Metro Station\",\n  \"landmark\": \"Opposite City Mall\",\n  \"city\": \"Mumbai\",\n  \"state\": \"Maharashtra\",\n  \"pincode\": \"400069\",\n  \"country\": \"India\",\n  \"country_code\": \"IN\",\n  \"latitude\": \"19.1136\",\n  \"longitude\": \"72.8697\",\n  \"contact_first_name\": \"Rajesh\",\n  \"contact_last_name\": \"Kumar\",\n  \"contact_email\": \"rajesh.kumar@example.com\",\n  \"contact_phone_number\": \"+919876543210\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.example.com/api/v1/warehouses/create"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Warehouse created successfully\",\n    \"data\": {\n        \"sa_warehouse_identifier\": \"SA_a7f3e9d2c1b4f8e5a6d7c9b8e1f2a3d4e5f6a7b8_1234_400069\"\n    },\n    \"trace_id\": \"f47ac10b-58cc-4372-a567-0e02b2c3d479\",\n    \"timestamp\": \"2026-01-28T09:23:13.456789+05:30\"\n}"}],"_postman_id":"904f70ee-9c66-451e-9dc3-ba037f047efa"},{"name":"Get Warehouse Details API","id":"769c6210-11eb-4088-8cd6-a99f8fb3e290","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.example.com/api/v1/warehouses/:sa_warehouse_identifier/details","description":"<h1 id=\"get-warehouse-details-api\">Get Warehouse Details API</h1>\n<h2 id=\"api-overview\">API Overview</h2>\n<p>The Get Warehouse Details API allows merchants to retrieve detailed information about a specific warehouse using its unique identifier. This includes all warehouse configuration, address details, and contact information.</p>\n<hr />\n<h2 id=\"endpoint-details\">Endpoint Details</h2>\n<p><strong>HTTP Method:</strong> <code>GET</code><br /><strong>Endpoint:</strong> <code>/api/v1/warehouses/{sa_warehouse_identifier}/details</code><br /><strong>Status Code on Success:</strong> <code>200 OK</code><br /><strong>Authentication Required:</strong> Yes (Merchant API Key)</p>\n<hr />\n<h2 id=\"path-parameters\">Path Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sa_warehouse_identifier</code></td>\n<td>string</td>\n<td><strong>Yes</strong></td>\n<td>Unique ShipAxis warehouse identifier (e.g., <code>SA_a7f3e9d2c1b4f8e5a6d7c9b8e1f2a3d4e5f6a7b8_1234_400069</code>). This is the identifier returned when creating a warehouse.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h2 id=\"responses\">Responses</h2>\n<h3 id=\"success-response-200-ok\">Success Response (200 OK)</h3>\n<p>When a warehouse is successfully retrieved, the API returns:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"message\": \"Warehouse fetched successfully\",\n  \"data\": {\n    \"sa_warehouse_identifier\": \"SA_a7f3e9d2c1b4f8e5a6d7c9b8e1f2a3d4e5f6a7b8_1234_400069\",\n    \"is_active\": true,\n    \"is_default\": false,\n    \"title\": \"Mumbai Main Warehouse\",\n    \"address_line_1\": \"123, Industrial Area, Andheri East\",\n    \"address_line_2\": \"Near Metro Station\",\n    \"landmark\": \"Opposite City Mall\",\n    \"city\": \"Mumbai\",\n    \"state\": \"Maharashtra\",\n    \"pincode\": \"400069\",\n    \"country\": \"India\",\n    \"country_code\": \"IN\",\n    \"latitude\": \"19.1136\",\n    \"longitude\": \"72.8697\",\n    \"contact_first_name\": \"Rajesh\",\n    \"contact_last_name\": \"Kumar\",\n    \"contact_email\": \"rajesh.kumar@example.com\",\n    \"contact_phone_number\": \"+919876543210\",\n    \"created_at\": \"2026-01-15T10:30:00+05:30\",\n    \"modified_at\": \"2026-01-20T14:45:00+05:30\"\n  },\n  \"trace_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n  \"timestamp\": \"2026-01-28T10:29:53.123456+05:30\"\n}\n\n</code></pre>\n<p><strong>Response Data Object Fields:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Nullable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sa_warehouse_identifier</code></td>\n<td>string</td>\n<td>No</td>\n<td>Unique ShipAxis warehouse identifier</td>\n</tr>\n<tr>\n<td><code>is_active</code></td>\n<td>boolean</td>\n<td>No</td>\n<td>Whether the warehouse is active and can be used</td>\n</tr>\n<tr>\n<td><code>is_default</code></td>\n<td>boolean</td>\n<td>No</td>\n<td>Whether this is the default warehouse for the merchant</td>\n</tr>\n<tr>\n<td><strong>Address Fields</strong></td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>title</code></td>\n<td>string</td>\n<td>No</td>\n<td>Name/title of the warehouse</td>\n</tr>\n<tr>\n<td><code>address_line_1</code></td>\n<td>string</td>\n<td>No</td>\n<td>Primary address line</td>\n</tr>\n<tr>\n<td><code>address_line_2</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Secondary address line (excluded if null)</td>\n</tr>\n<tr>\n<td><code>landmark</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Nearby landmark (excluded if null)</td>\n</tr>\n<tr>\n<td><code>city</code></td>\n<td>string</td>\n<td>No</td>\n<td>City name</td>\n</tr>\n<tr>\n<td><code>state</code></td>\n<td>string</td>\n<td>No</td>\n<td>State name</td>\n</tr>\n<tr>\n<td><code>pincode</code></td>\n<td>string</td>\n<td>No</td>\n<td>Postal/PIN code</td>\n</tr>\n<tr>\n<td><code>country</code></td>\n<td>string</td>\n<td>No</td>\n<td>Country name</td>\n</tr>\n<tr>\n<td><code>country_code</code></td>\n<td>string</td>\n<td>No</td>\n<td>ISO country code</td>\n</tr>\n<tr>\n<td><code>latitude</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Latitude coordinate (excluded if null)</td>\n</tr>\n<tr>\n<td><code>longitude</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Longitude coordinate (excluded if null)</td>\n</tr>\n<tr>\n<td><strong>Contact Fields</strong></td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>contact_first_name</code></td>\n<td>string</td>\n<td>No</td>\n<td>First name of contact person</td>\n</tr>\n<tr>\n<td><code>contact_last_name</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Last name of contact person (excluded if null)</td>\n</tr>\n<tr>\n<td><code>contact_email</code></td>\n<td>string</td>\n<td>No</td>\n<td>Email address of contact person</td>\n</tr>\n<tr>\n<td><code>contact_phone_number</code></td>\n<td>string</td>\n<td>No</td>\n<td>Phone number of contact person</td>\n</tr>\n<tr>\n<td><strong>Metadata Fields</strong></td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>created_at</code></td>\n<td>string (ISO 8601)</td>\n<td>No</td>\n<td>Timestamp when the warehouse was created</td>\n</tr>\n<tr>\n<td><code>modified_at</code></td>\n<td>string (ISO 8601)</td>\n<td>No</td>\n<td>Timestamp when the warehouse was last modified</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Note:</strong> Fields with null values are automatically excluded from the response.</p>\n<h3 id=\"error-responses\">Error Responses</h3>\n<h4 id=\"1-warehouse-not-found-404-not-found\">1. Warehouse Not Found (404 Not Found)</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": false,\n  \"message\": \"No matching Warehouse found\",\n  \"trace_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n  \"timestamp\": \"2026-01-28T10:29:53.123456+05:30\"\n}\n\n</code></pre>\n<p><strong>Note:</strong> This error occurs when the provided <code>sa_warehouse_identifier</code> doesn't exist or you don't have access to it.</p>\n<p><strong>What to do with the response:</strong></p>\n<ul>\n<li><p>Use the warehouse details to display in your application UI</p>\n</li>\n<li><p>Verify the warehouse configuration before creating shipments</p>\n</li>\n<li><p>Update local cache/database with the latest warehouse information</p>\n</li>\n<li><p>Use the contact details for customer communication</p>\n</li>\n<li><p>Use the address details for shipping labels and documentation</p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","name":"Pragma APIs / Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","warehouses",":sa_warehouse_identifier","details"],"host":["https://api.example.com"],"query":[],"variable":[{"type":"any","value":"","key":"sa_warehouse_identifier"}]}},"response":[{"id":"bd9cd2d0-bfa8-422c-a941-914c80b2d3d7","name":"Warehouse Details Fetched","originalRequest":{"method":"GET","header":[{"key":"X-API-Key","value":"your_merchant_api_key_here"}],"url":"https://api.example.com/api/v1/warehouses/SA_a7f3e9d2c1b4f8e5a6d7c9b8e1f2a3d4e5f6a7b8_1234_400069/details"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"success\": true,\n  \"message\": \"Warehouse fetched successfully\",\n  \"data\": {\n    \"sa_warehouse_identifier\": \"SA_a7f3e9d2c1b4f8e5a6d7c9b8e1f2a3d4e5f6a7b8_1234_400069\",\n    \"is_active\": true,\n    \"is_default\": true,\n    \"title\": \"Mumbai Main Warehouse\",\n    \"address_line_1\": \"123, Industrial Area, Andheri East\",\n    \"address_line_2\": \"Near Metro Station\",\n    \"landmark\": \"Opposite City Mall\",\n    \"city\": \"Mumbai\",\n    \"state\": \"Maharashtra\",\n    \"pincode\": \"400069\",\n    \"country\": \"India\",\n    \"country_code\": \"IN\",\n    \"latitude\": \"19.1136\",\n    \"longitude\": \"72.8697\",\n    \"contact_first_name\": \"Rajesh\",\n    \"contact_last_name\": \"Kumar\",\n    \"contact_email\": \"rajesh.kumar@example.com\",\n    \"contact_phone_number\": \"+919876543210\",\n    \"created_at\": \"2026-01-15T10:30:00+05:30\",\n    \"modified_at\": \"2026-01-20T14:45:00+05:30\"\n  },\n  \"trace_id\": \"f47ac10b-58cc-4372-a567-0e02b2c3d479\",\n  \"timestamp\": \"2026-01-28T10:29:53.456789+05:30\"\n}"}],"_postman_id":"769c6210-11eb-4088-8cd6-a99f8fb3e290"},{"name":"Get All Warehouses API","id":"81647d92-afc2-412a-a9a2-77df4b41701f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.example.com/api/v1/warehouses/list","description":"<h2 id=\"get-list-of-warehouses\">Get List of Warehouses</h2>\n<p>This endpoint retrieves a list of warehouses from the system. It supports pagination through the use of <code>limit</code> and <code>offset</code> query parameters.</p>\n<h3 id=\"query-parameters\">Query Parameters</h3>\n<ul>\n<li><p><strong>jwt_token</strong> (string): A valid JSON Web Token required for authentication.</p>\n</li>\n<li><p><strong>limit</strong> (integer): This parameter specifies the maximum number of warehouse records to return in the response. It is useful for controlling the size of the data returned.</p>\n<ul>\n<li><strong>Expected Values</strong>: Any positive integer. Default is typically set by the server if not provided.</li>\n</ul>\n</li>\n<li><p><strong>offset</strong> (integer): This parameter indicates the starting point from which to return warehouse records. It is used for pagination to skip a certain number of records.</p>\n<ul>\n<li><strong>Expected Values</strong>: Any non-negative integer. Default is typically 0 if not provided.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"example-request\">Example Request</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET https://api.example.com/api/v1/warehouses/list?jwt_token=&lt;your_jwt_token&gt;&amp;limit=10&amp;offset=0\n\n</code></pre><h3 id=\"response\">Response</h3>\n<p>The response will include a list of warehouses based on the specified <code>limit</code> and <code>offset</code> values, along with additional metadata about the request.</p>\n<p>Ensure to use the <code>limit</code> and <code>offset</code> parameters effectively to manage the data returned by the API.</p>\n<p>This endpoint retrieves a list of warehouses from the Shipaxis API.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","name":"Pragma APIs / Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","warehouses","list"],"host":["https://api.example.com"],"query":[{"disabled":true,"key":"limit","value":"10"},{"disabled":true,"key":"offset","value":"0"}],"variable":[]}},"response":[],"_postman_id":"81647d92-afc2-412a-a9a2-77df4b41701f"},{"name":"Create Warehouse Source API","id":"ffa1fbec-111a-4c13-a150-5fdde847d27f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"source_category\": \"courier\",\n  \"source_platform\": \"string\",\n  \"source_warehouse_identifier\": \"string\",\n  \"is_active_at_source\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://api.example.com/api/v1/warehouses/:sa_warehouse_identifier/warehouse_sources/create","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","name":"Pragma APIs / Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","warehouses",":sa_warehouse_identifier","warehouse_sources","create"],"host":["https://api.example.com"],"query":[],"variable":[{"type":"any","value":"","key":"sa_warehouse_identifier"}]}},"response":[],"_postman_id":"ffa1fbec-111a-4c13-a150-5fdde847d27f"},{"name":"Get Warehouse Sources For Warehouse API","id":"f6bf9fb1-7e72-4250-a918-d0a7b81bc0eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.example.com/api/v1/warehouses/:sa_warehouse_identifier/warehouse_sources/list","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","name":"Pragma APIs / Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","warehouses",":sa_warehouse_identifier","warehouse_sources","list"],"host":["https://api.example.com"],"query":[{"disabled":true,"key":"limit","value":"10"},{"disabled":true,"key":"offset","value":"0"}],"variable":[{"type":"any","value":"","key":"sa_warehouse_identifier"}]}},"response":[],"_postman_id":"f6bf9fb1-7e72-4250-a918-d0a7b81bc0eb"},{"name":"Create Package Dimension API","id":"a300a4e7-a736-4d8a-8aaf-2ba0e14a184b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"is_default\": false,\n    \"name\": \"Default Package\",\n    \"weight\": \"500\",\n    \"length\": \"10\",\n    \"breadth\": \"10\",\n    \"height\": \"10\",\n    \"is_enabled_for_automation\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://api.example.com/api/v1/warehouses/package_dimensions/create","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","name":"Pragma APIs / Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","warehouses","package_dimensions","create"],"host":["https://api.example.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a300a4e7-a736-4d8a-8aaf-2ba0e14a184b"},{"name":"Get All Package Dimensions API","id":"1934e102-9c44-4c7b-8c38-d08fc3bd034d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.example.com/api/v1/warehouses/package_dimensions/list","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","name":"Pragma APIs / Webhooks","type":"folder"}},"urlObject":{"path":["api","v1","warehouses","package_dimensions","list"],"host":["https://api.example.com"],"query":[{"disabled":true,"key":"limit","value":"10"},{"disabled":true,"key":"offset","value":"0"}],"variable":[]}},"response":[],"_postman_id":"1934e102-9c44-4c7b-8c38-d08fc3bd034d"}],"id":"f5b0c2d1-a2b5-41b0-b816-2ce7a9a536a5","_postman_id":"f5b0c2d1-a2b5-41b0-b816-2ce7a9a536a5","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":true,"source":{"_postman_id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","name":"Pragma APIs / Webhooks","type":"folder"}}}],"id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"{{API_KEY}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"b0a61507-9640-4181-94ff-fe6d07458943","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"b2feaed2-2191-410b-bfdf-9433d84b7e1e","type":"text/javascript","packages":{},"exec":[""]}}],"_postman_id":"45f3f4a8-7752-4113-a44a-04c3ef0f153a","description":""},{"name":"Client-side APIs / Webhooks","item":[],"id":"363e2e8f-8f72-4042-b8ca-e83e2dc8fcbe","_postman_id":"363e2e8f-8f72-4042-b8ca-e83e2dc8fcbe","description":""}],"id":"73bd5cab-6469-43de-89ca-5a880ac1c4f9","description":"<h1 id=\"shipaxis---overview\">ShipAxis - Overview</h1>\n<h2 id=\"about-shipaxis\">About ShipAxis</h2>\n<p>ShipAxis by Pragma is a comprehensive shipping and logistics solution that streamlines your order fulfillment operations. This API documentation consists of the APIs you can use to integrate ShipAxis into your application.</p>\n<h2 id=\"base-url\">Base URL</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://api.example.com\n\n</code></pre><p><strong>Note:</strong> This is example base URL. Contact ShipAxis support team to obtain ShipAxis API Base URL.</p>\n<hr />\n<h2 id=\"authentication\">Authentication</h2>\n<p>All ShipAxis API requests require authentication using an API key passed in the request header.</p>\n<h3 id=\"api-key-authentication\">API Key Authentication</h3>\n<p>Include your API key in the <code>X-API-Key</code> header with every request:</p>\n<p><strong>Header Format:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>X-API-Key: your_api_key_here\n\n</code></pre><p><strong>Example Request:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl --location 'https://api.example.com/api/v1/warehouses/list' \\\n--header 'X-API-Key: your_api_key_here'\n\n</code></pre>\n<h3 id=\"getting-your-api-key\">Getting Your API Key</h3>\n<p>Contact the ShipAxis support team to obtain your API key. Once received, store it securely and use it to authenticate all API requests.</p>\n<h3 id=\"security-best-practices\">Security Best Practices</h3>\n<ul>\n<li><p><strong>Keep your API key secure</strong> - Never commit API keys to version control or share them publicly</p>\n</li>\n<li><p><strong>Use environment variables</strong> - Store API keys in environment variables, not in code</p>\n</li>\n<li><p><strong>Use HTTPS only</strong> - All API requests must use HTTPS protocol</p>\n</li>\n<li><p><strong>Monitor API usage</strong> - Regularly review API access logs for unauthorized usage</p>\n</li>\n</ul>\n<hr />\n<h2 id=\"standard-response-format\">Standard Response Format</h2>\n<p>All ShipAxis APIs follow a consistent response structure for both success and error cases.</p>\n<h3 id=\"response-structure\">Response Structure</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true/false,\n  \"message\": \"Human-readable message\",\n  \"data\": {},\n  \"error\": {},\n  \"trace_id\": \"UUID\",\n  \"timestamp\": \"ISO 8601 timestamp\"\n}\n\n</code></pre>\n<h3 id=\"response-fields\">Response Fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Always Present</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>success</code></td>\n<td>boolean</td>\n<td>Yes</td>\n<td>Indicates whether the request was successful (<code>true</code>) or failed (<code>false</code>)</td>\n</tr>\n<tr>\n<td><code>message</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Human-readable message describing the result</td>\n</tr>\n<tr>\n<td><code>data</code></td>\n<td>object/array</td>\n<td>On success</td>\n<td>Contains the response data. Only present when there's data to return</td>\n</tr>\n<tr>\n<td><code>error</code></td>\n<td>object</td>\n<td>On error</td>\n<td>Contains error details with a nested <code>detail</code> field</td>\n</tr>\n<tr>\n<td><code>trace_id</code></td>\n<td>string (UUID)</td>\n<td>Yes</td>\n<td>Unique identifier for tracking and debugging the request</td>\n</tr>\n<tr>\n<td><code>timestamp</code></td>\n<td>string (ISO 8601)</td>\n<td>Yes</td>\n<td>Timestamp of the response in IST timezone</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Important Notes:</strong></p>\n<ul>\n<li><p>Fields with <code>null</code> or empty values are automatically excluded from responses</p>\n</li>\n<li><p>HTTP status code is returned in the response header, NOT in the response body</p>\n</li>\n<li><p>The <code>trace_id</code> can be used for debugging and support requests</p>\n</li>\n</ul>\n<hr />\n<h2 id=\"success-responses\">Success Responses</h2>\n<h3 id=\"standard-success-response\">Standard Success Response</h3>\n<p>When an API request is successful, the response follows this structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"message\": \"Operation completed successfully\",\n  \"data\": {\n    \"key\": \"value\"\n  },\n  \"trace_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n  \"timestamp\": \"2026-01-28T11:43:52.123456+05:30\"\n}\n\n</code></pre>\n<h3 id=\"common-success-status-codes\">Common Success Status Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>HTTP Status</th>\n<th>Code</th>\n<th>Description</th>\n<th>Typical Use Case</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>OK</td>\n<td>200</td>\n<td>Request successful</td>\n<td>GET, PUT, PATCH operations</td>\n</tr>\n<tr>\n<td>Created</td>\n<td>201</td>\n<td>Resource created successfully</td>\n<td>POST operations creating new resources</td>\n</tr>\n<tr>\n<td>Accepted</td>\n<td>202</td>\n<td>Request accepted for processing</td>\n<td>Async operations</td>\n</tr>\n<tr>\n<td>No Content</td>\n<td>204</td>\n<td>Request successful, no content to return</td>\n<td>DELETE operations</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"success-response-examples\">Success Response Examples</h3>\n<h4 id=\"example-1-resource-creation-201\">Example 1: Resource Creation (201)</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"message\": \"Warehouse created successfully\",\n  \"data\": {\n    \"sa_warehouse_identifier\": \"SA_xyz123abc...\"\n  },\n  \"trace_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n  \"timestamp\": \"2026-01-28T11:43:52.456789+05:30\"\n}\n\n</code></pre>\n<h4 id=\"example-2-data-retrieval-200\">Example 2: Data Retrieval (200)</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"message\": \"Shipment fetched successfully\",\n  \"data\": {\n    \"order_id\": \"ORD-12345\",\n    \"status\": \"in_transit\",\n    \"awb_number\": \"AWB123456789\"\n  },\n  \"trace_id\": \"b2c3d4e5-f6a7-8901-bcde-f12345678901\",\n  \"timestamp\": \"2026-01-28T11:43:52.789012+05:30\"\n}\n\n</code></pre>\n<h4 id=\"example-3-list-response-200\">Example 3: List Response (200)</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"message\": \"Warehouses fetched successfully\",\n  \"data\": [\n    {\n      \"sa_warehouse_identifier\": \"SA_abc123...\",\n      \"title\": \"Mumbai Warehouse\",\n      \"is_active\": true\n    },\n    {\n      \"sa_warehouse_identifier\": \"SA_def456...\",\n      \"title\": \"Delhi Warehouse\",\n      \"is_active\": true\n    }\n  ],\n  \"trace_id\": \"c3d4e5f6-a7b8-9012-cdef-123456789012\",\n  \"timestamp\": \"2026-01-28T11:43:52.345678+05:30\"\n}\n\n</code></pre>\n<hr />\n<h2 id=\"error-responses\">Error Responses</h2>\n<p>All error responses follow a consistent format with detailed error information.</p>\n<h3 id=\"error-response-structure\">Error Response Structure</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": false,\n  \"message\": \"Human-readable error message\",\n  \"error\": {\n    \"detail\": \"&lt;error_details&gt;\"\n  },\n  \"trace_id\": \"UUID for tracking\",\n  \"timestamp\": \"ISO 8601 timestamp in IST\"\n}\n\n</code></pre>\n<h3 id=\"error-detail-structure\">Error Detail Structure</h3>\n<p>The <code>error.detail</code> field structure varies based on the error type:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Error Type</th>\n<th>Detail Structure</th>\n<th>Example</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>Application Errors</strong> (404, 409, 500)</td>\n<td>String</td>\n<td><code>\"Resource not found\"</code></td>\n</tr>\n<tr>\n<td><strong>HTTP Exceptions</strong> (401, 403)</td>\n<td>Object with <code>type</code> and <code>info</code></td>\n<td><code>{\"type\": \"HTTPException\", \"info\": \"Invalid credentials\"}</code></td>\n</tr>\n<tr>\n<td><strong>Validation Errors</strong> (422)</td>\n<td>Array of validation error objects</td>\n<td><code>[{\"type\": \"missing\", \"loc\": [\"body\", \"field\"], \"msg\": \"Field required\"}]</code></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Note:</strong> Fields with <code>null</code> values are automatically excluded from error responses.</p>\n<hr />\n<h2 id=\"common-error-status-codes\">Common Error Status Codes</h2>\n<h3 id=\"4xx-client-errors\">4xx Client Errors</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>HTTP Status</th>\n<th>Code</th>\n<th>Description</th>\n<th>Common Causes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Bad Request</td>\n<td>400</td>\n<td>Invalid request format</td>\n<td>Malformed JSON, invalid parameters</td>\n</tr>\n<tr>\n<td>Unauthorized</td>\n<td>401</td>\n<td>Authentication failed</td>\n<td>Missing/invalid API key or token</td>\n</tr>\n<tr>\n<td>Forbidden</td>\n<td>403</td>\n<td>Authorization failed</td>\n<td>Valid credentials but insufficient permissions</td>\n</tr>\n<tr>\n<td>Not Found</td>\n<td>404</td>\n<td>Resource not found</td>\n<td>Invalid identifier or deleted resource</td>\n</tr>\n<tr>\n<td>Conflict</td>\n<td>409</td>\n<td>Resource conflict</td>\n<td>Duplicate resource, constraint violation</td>\n</tr>\n<tr>\n<td>Unprocessable Entity</td>\n<td>422</td>\n<td>Validation failed</td>\n<td>Missing required fields, invalid field values</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"5xx-server-errors\">5xx Server Errors</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>HTTP Status</th>\n<th>Code</th>\n<th>Description</th>\n<th>Action</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Internal Server Error</td>\n<td>500</td>\n<td>Unexpected server error</td>\n<td>Retry request, contact support with trace_id</td>\n</tr>\n<tr>\n<td>Service Unavailable</td>\n<td>503</td>\n<td>Service temporarily unavailable</td>\n<td>Retry after some time</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h2 id=\"detailed-error-response-examples\">Detailed Error Response Examples</h2>\n<h3 id=\"1-authentication-error-401-unauthorized\">1. Authentication Error (401 Unauthorized)</h3>\n<p><strong>Scenario:</strong> Missing or invalid authentication credentials</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": false,\n  \"message\": \"HTTP error occurred\",\n  \"error\": {\n    \"detail\": {\n      \"type\": \"HTTPException\",\n      \"info\": \"Missing X-API-Key header\"\n    }\n  },\n  \"trace_id\": \"d4e5f6a7-b8c9-0123-def0-123456789abc\",\n  \"timestamp\": \"2026-01-28T11:43:52.123456+05:30\"\n}\n\n</code></pre>\n<p><strong>Common Reasons:</strong></p>\n<ul>\n<li><p>API key not provided in request header</p>\n</li>\n<li><p>Invalid API key format</p>\n</li>\n<li><p>Expired authentication token</p>\n</li>\n</ul>\n<p><strong>Resolution:</strong></p>\n<ul>\n<li><p>Verify that the correct authentication header is included</p>\n</li>\n<li><p>Check that the API key/token is valid and active</p>\n</li>\n<li><p>Ensure the authentication value is correctly formatted</p>\n</li>\n</ul>\n<hr />\n<h3 id=\"2-authorization-error-403-forbidden\">2. Authorization Error (403 Forbidden)</h3>\n<p><strong>Scenario:</strong> Valid credentials but insufficient permissions</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": false,\n  \"message\": \"HTTP error occurred\",\n  \"error\": {\n    \"detail\": {\n      \"type\": \"HTTPException\",\n      \"info\": \"Insufficient permissions to access this resource\"\n    }\n  },\n  \"trace_id\": \"e5f6a7b8-c9d0-1234-ef01-23456789abcd\",\n  \"timestamp\": \"2026-01-28T11:43:52.234567+05:30\"\n}\n\n</code></pre>\n<p><strong>Common Reasons:</strong></p>\n<ul>\n<li><p>Account doesn't have required feature enabled</p>\n</li>\n<li><p>API key doesn't have permission for this operation</p>\n</li>\n<li><p>Resource belongs to a different account</p>\n</li>\n</ul>\n<p><strong>Resolution:</strong></p>\n<ul>\n<li><p>Contact ShipAxis support to enable required features</p>\n</li>\n<li><p>Verify you're accessing resources that belong to your account</p>\n</li>\n<li><p>Check API key permissions and scope</p>\n</li>\n</ul>\n<hr />\n<h3 id=\"3-resource-not-found-404-not-found\">3. Resource Not Found (404 Not Found)</h3>\n<p><strong>Scenario:</strong> Requested resource doesn't exist or is inaccessible</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": false,\n  \"message\": \"No matching Warehouse found\",\n  \"trace_id\": \"f6a7b8c9-d0e1-2345-f012-3456789abcde\",\n  \"timestamp\": \"2026-01-28T11:43:52.345678+05:30\"\n}\n\n</code></pre>\n<p><strong>Common Reasons:</strong></p>\n<ul>\n<li><p>Invalid resource identifier</p>\n</li>\n<li><p>Resource has been deleted</p>\n</li>\n<li><p>You don't have access to the resource</p>\n</li>\n</ul>\n<p><strong>Resolution:</strong></p>\n<ul>\n<li><p>Verify the resource identifier is correct</p>\n</li>\n<li><p>Ensure the resource exists and is active</p>\n</li>\n<li><p>Check that you have permission to access this resource</p>\n</li>\n</ul>\n<hr />\n<h3 id=\"4-validation-error-422-unprocessable-entity\">4. Validation Error (422 Unprocessable Entity)</h3>\n<p><strong>Scenario:</strong> Request data failed validation</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": false,\n  \"message\": \"Validation Error\",\n  \"error\": {\n    \"detail\": [\n      {\n        \"type\": \"missing\",\n        \"loc\": [\"body\", \"title\"],\n        \"msg\": \"Field required\",\n        \"input\": {}\n      },\n      {\n        \"type\": \"string_pattern_mismatch\",\n        \"loc\": [\"body\", \"contact_phone_number\"],\n        \"msg\": \"String should match pattern '^\\\\+?1?\\\\d{9,15}$'\",\n        \"input\": \"123\"\n      }\n    ]\n  },\n  \"trace_id\": \"a7b8c9d0-e1f2-3456-0123-456789abcdef\",\n  \"timestamp\": \"2026-01-28T11:43:52.456789+05:30\"\n}\n\n</code></pre>\n<p><strong>Validation Error Detail Fields:</strong></p>\n<ul>\n<li><p><code>type</code> - Type of validation error (e.g., <code>missing</code>, <code>string_pattern_mismatch</code>, <code>value_error</code>)</p>\n</li>\n<li><p><code>loc</code> - Location of the error in the request (e.g., <code>[\"body\", \"field_name\"]</code>)</p>\n</li>\n<li><p><code>msg</code> - Human-readable error message</p>\n</li>\n<li><p><code>input</code> - The invalid value that was provided (if applicable)</p>\n</li>\n</ul>\n<p><strong>Common Reasons:</strong></p>\n<ul>\n<li><p>Missing required fields</p>\n</li>\n<li><p>Invalid field format (e.g., email, phone number)</p>\n</li>\n<li><p>Value out of allowed range</p>\n</li>\n<li><p>Invalid data type</p>\n</li>\n</ul>\n<p><strong>Resolution:</strong></p>\n<ul>\n<li><p>Check all required fields are provided</p>\n</li>\n<li><p>Verify field values match expected format/pattern</p>\n</li>\n<li><p>Ensure data types are correct (string, number, boolean, etc.)</p>\n</li>\n<li><p>Review API documentation for field requirements</p>\n</li>\n</ul>\n<hr />\n<h3 id=\"5-conflict-error-409-conflict\">5. Conflict Error (409 Conflict)</h3>\n<p><strong>Scenario:</strong> Resource conflict or constraint violation</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": false,\n  \"message\": \"Warehouse titled 'Mumbai Main Warehouse' already exists for pincode 400069\",\n  \"error\": {\n    \"detail\": \"Duplicate resource detected\"\n  },\n  \"trace_id\": \"b8c9d0e1-f2a3-4567-1234-56789abcdef0\",\n  \"timestamp\": \"2026-01-28T11:43:52.567890+05:30\"\n}\n\n</code></pre>\n<p><strong>Common Reasons:</strong></p>\n<ul>\n<li><p>Attempting to create a duplicate resource</p>\n</li>\n<li><p>Constraint violation (e.g., only one default allowed)</p>\n</li>\n<li><p>Resource state conflict</p>\n</li>\n</ul>\n<p><strong>Resolution:</strong></p>\n<ul>\n<li><p>Check if the resource already exists</p>\n</li>\n<li><p>Update existing resource instead of creating new one</p>\n</li>\n<li><p>Resolve the business logic conflict</p>\n</li>\n</ul>\n<hr />\n<h3 id=\"6-internal-server-error-500-internal-server-error\">6. Internal Server Error (500 Internal Server Error)</h3>\n<p><strong>Scenario:</strong> Unexpected server-side error</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": false,\n  \"message\": \"Internal Server Error\",\n  \"error\": {\n    \"detail\": \"An unexpected error occurred\"\n  },\n  \"trace_id\": \"c9d0e1f2-a3b4-5678-2345-6789abcdef01\",\n  \"timestamp\": \"2026-01-28T11:43:52.678901+05:30\"\n}\n\n</code></pre>\n<p><strong>Common Reasons:</strong></p>\n<ul>\n<li><p>Unexpected server-side issue</p>\n</li>\n<li><p>Database connectivity problems</p>\n</li>\n<li><p>Third-party service unavailability</p>\n</li>\n</ul>\n<p><strong>Resolution:</strong></p>\n<ul>\n<li><p>Retry the request after a short delay</p>\n</li>\n<li><p>If the issue persists, contact ShipAxis support</p>\n</li>\n<li><p>Provide the <code>trace_id</code> when reporting the issue for faster resolution</p>\n</li>\n</ul>\n<hr />\n<h2 id=\"rate-limiting\">Rate Limiting</h2>\n<p>ShipAxis APIs may implement rate limiting to ensure fair usage and platform stability.</p>\n<p><strong>Rate Limit Headers:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>X-RateLimit-Limit: 1000\nX-RateLimit-Remaining: 999\nX-RateLimit-Reset: 1643723400\n\n</code></pre><p><strong>Rate Limit Exceeded (429 Too Many Requests):</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": false,\n  \"message\": \"Rate limit exceeded\",\n  \"error\": {\n    \"detail\": {\n      \"type\": \"RateLimitExceeded\",\n      \"info\": \"Too many requests. Please retry after some time.\"\n    }\n  },\n  \"trace_id\": \"d0e1f2a3-b4c5-6789-3456-789abcdef012\",\n  \"timestamp\": \"2026-01-28T11:43:52.789012+05:30\"\n}\n\n</code></pre>\n<p><strong>Best Practices:</strong></p>\n<ul>\n<li><p>Implement exponential backoff for retries</p>\n</li>\n<li><p>Cache responses when appropriate</p>\n</li>\n<li><p>Batch requests where possible</p>\n</li>\n<li><p>Monitor rate limit headers and adjust request frequency</p>\n</li>\n</ul>\n<hr />\n<h2 id=\"pagination\">Pagination</h2>\n<p>List endpoints support pagination to manage large datasets efficiently.</p>\n<h3 id=\"pagination-parameters\">Pagination Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Default</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>limit</code></td>\n<td>integer</td>\n<td>10</td>\n<td>Number of items to return per page (max: 100)</td>\n</tr>\n<tr>\n<td><code>offset</code></td>\n<td>integer</td>\n<td>0</td>\n<td>Number of items to skip</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"pagination-example\">Pagination Example</h3>\n<p><strong>Request:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>GET /api/v1/warehouses/list?limit=20&amp;offset=40\n\n</code></pre><p><strong>Response:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"success\": true,\n  \"message\": \"Warehouses fetched successfully\",\n  \"data\": [\n    { \"sa_warehouse_identifier\": \"SA_abc...\", \"title\": \"Warehouse 1\" },\n    { \"sa_warehouse_identifier\": \"SA_def...\", \"title\": \"Warehouse 2\" }\n  ],\n  \"trace_id\": \"e1f2a3b4-c5d6-7890-4567-89abcdef0123\",\n  \"timestamp\": \"2026-01-28T11:43:52.890123+05:30\"\n}\n\n</code></pre>\n<hr />\n<h2 id=\"best-practices\">Best Practices</h2>\n<h3 id=\"request-best-practices\">Request Best Practices</h3>\n<ol>\n<li><p><strong>Always include authentication headers</strong> - Ensure the correct authentication header is present</p>\n</li>\n<li><p><strong>Use HTTPS</strong> - All API requests should use secure HTTPS protocol</p>\n</li>\n<li><p><strong>Set proper Content-Type</strong> - Use <code>Content-Type: application/json</code> for JSON payloads</p>\n</li>\n<li><p><strong>Handle timeouts</strong> - Implement appropriate timeout handling (recommended: 30 seconds)</p>\n</li>\n<li><p><strong>Validate before sending</strong> - Validate request data on client side before making API calls</p>\n</li>\n</ol>\n<h3 id=\"response-handling-best-practices\">Response Handling Best Practices</h3>\n<ol>\n<li><p><strong>Check</strong> <strong><code>success</code></strong> <strong>field</strong> - Always check the <code>success</code> boolean before processing response</p>\n</li>\n<li><p><strong>Handle all error codes</strong> - Implement handlers for all possible HTTP status codes</p>\n</li>\n<li><p><strong>Use</strong> <strong><code>trace_id</code></strong> <strong>for debugging</strong> - Include <code>trace_id</code> when reporting issues to support</p>\n</li>\n<li><p><strong>Parse error details</strong> - Extract meaningful information from <code>error.detail</code> for user feedback</p>\n</li>\n<li><p><strong>Log responses</strong> - Log API responses for debugging and monitoring (exclude sensitive data)</p>\n</li>\n</ol>\n<h3 id=\"error-handling-best-practices\">Error Handling Best Practices</h3>\n<ol>\n<li><p><strong>Implement retry logic</strong> - Retry failed requests with exponential backoff for 5xx errors</p>\n</li>\n<li><p><strong>Show user-friendly messages</strong> - Convert technical errors to user-friendly messages</p>\n</li>\n<li><p><strong>Don't retry 4xx errors</strong> - Client errors typically won't succeed on retry (except 429)</p>\n</li>\n<li><p><strong>Monitor error rates</strong> - Track and alert on increased error rates</p>\n</li>\n<li><p><strong>Preserve</strong> <strong><code>trace_id</code></strong> - Store <code>trace_id</code> for failed requests for support escalation</p>\n</li>\n</ol>\n<hr />\n<h2 id=\"support--contact\">Support &amp; Contact</h2>\n<p>For API integration support, technical assistance, or to report issues:</p>\n<ul>\n<li><strong>Support Email:</strong> <a href=\"mailto:support@logisy.tech\">support@logisy.tech</a></li>\n</ul>\n<p><strong>When contacting support, please provide:</strong></p>\n<ul>\n<li><p>API endpoint being called</p>\n</li>\n<li><p>Request payload (sanitize sensitive data)</p>\n</li>\n<li><p>Complete error response including <code>trace_id</code></p>\n</li>\n<li><p>Timestamp of the incident</p>\n</li>\n<li><p>Expected vs actual behavior</p>\n</li>\n</ul>\n<hr />\n<h2 id=\"changelog--versioning\">Changelog &amp; Versioning</h2>\n<p>ShipAxis APIs follow semantic versioning. The current API version is <code>v1</code>.</p>\n<p><strong>Version Format:</strong> <code>/api/v{major}</code></p>\n<p><strong>Backward Compatibility:</strong></p>\n<ul>\n<li><p>Minor updates and bug fixes maintain backward compatibility</p>\n</li>\n<li><p>Deprecated features will be announced 90 days before removal</p>\n</li>\n<li><p>Breaking changes will be released as new major versions</p>\n</li>\n</ul>\n<p><strong>Stay Updated:</strong></p>\n<ul>\n<li><p>Subscribe to API changelog notifications</p>\n</li>\n<li><p>Monitor the documentation for updates</p>\n</li>\n<li><p>Test integrations in staging before production deployments</p>\n</li>\n</ul>\n<hr />\n<h2 id=\"quick-start-checklist\">Quick Start Checklist</h2>\n<ul>\n<li><p>Obtain API credentials from ShipAxis team</p>\n</li>\n<li><p>Set up authentication headers in your application</p>\n</li>\n<li><p>Review response format and error handling guidelines</p>\n</li>\n<li><p>Implement proper error handling and retry logic</p>\n</li>\n<li><p>Test API calls in development/staging environment</p>\n</li>\n<li><p>Monitor API usage and error rates</p>\n</li>\n<li><p>Set up logging with <code>trace_id</code> for debugging</p>\n</li>\n<li><p>Implement rate limit handling</p>\n</li>\n<li><p>Review security best practices</p>\n</li>\n<li><p>Set up monitoring and alerts for API health</p>\n</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"id":"949f3b82-420d-47ab-a4d3-d3c5486ae787","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"b1837dc5-6dec-42f3-83af-2eccef245d28","type":"text/javascript","packages":{},"exec":[""]}}],"_postman_id":"73bd5cab-6469-43de-89ca-5a880ac1c4f9"}],"event":[{"listen":"prerequest","script":{"id":"56546280-b4de-4fe4-b339-fdebfa73d58f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"87e883d9-f346-4098-ac1e-799aca0b658b","type":"text/javascript","exec":[""]}}],"variable":[{"key":"Order ID","value":"order_id"},{"key":"order_id","value":"123456789"},{"key":"SHIPAXIS_HOST","value":"https://api.example.com","type":"string"}]}