{"info":{"_postman_id":"955678a1-2d11-4214-8ce2-371d7c0caa60","name":"Production API","description":"<html><head></head><body><h1 id=\"get-started-here\">📄 Get started here</h1>\n<hr>\n<p>The Acenda provides many API endpoints that allows your to manage your</p>\n<h2 id=\"getting-started-guide\"><strong>Getting started guide</strong></h2>\n<p>To start using the Acenda API, you need to -</p>\n<ul>\n<li><p>Have access to a valid Acenda account.</p>\n</li>\n<li><p>The API has <a href=\"https://postman.postman.co/workspace/Collection-Templates~6311738d-2e70-441f-ae12-78caf078c5b7/collection/22517504-e9c28f47-1253-44af-a2f3-20dce4da1f18?ctx=documentation#rate-and-usage-limits\">rate and usage limits</a>.</p>\n</li>\n<li><p>The API only responds to HTTPS-secured communications. Any requests sent via HTTP return an HTTP 301 redirect to the corresponding HTTPS resources.</p>\n</li>\n<li><p>The API returns request responses in JSON format. When an API request returns an error, it is sent in the JSON response as an error key.</p>\n</li>\n</ul>\n<h1 id=\"authentication\">Authentication</h1>\n<p>The Acenda API uses oauth 2.0 and access_tokens for authentication. You will need a valid <code>client_id</code> and <code>client_secret</code> to perform this request.</p>\n<p>After generating a token, you will be required to include the <code>X-Astur-Organization</code> header in all requests to our endpoints to indicate the acenda organization that you will be interacting with.</p>\n<h3 id=\"authentication-error-response\">Authentication error response</h3>\n<p>If an API key is missing, malformed, or invalid, you will receive an HTTP 401 Unauthorized response code.</p>\n<h2 id=\"rate-and-usage-limits\">Rate and usage limits</h2>\n<p>API access rate limits apply at a per-API key basis in unit time. The limit is 1000 requests per minute. If you exceed either limit, your request will return an HTTP 429 Too Many Requests status code.</p>\n<p>Each API response returns the following set of headers to help you identify your use status:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Header</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>x-ratelimit-limit-second</code></td>\n<td>The maximum number of requests that the consumer is permitted to make per second.</td>\n</tr>\n<tr>\n<td><code>x-ratelimit-limit-minute</code></td>\n<td>The maximum number of requests that the consumer is permitted to make per minute.</td>\n</tr>\n<tr>\n<td><code>x-ratelimit-limit-hour</code></td>\n<td>The maximum number of requests that the consumer is permitted to make per hour.</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"503-response\">503 response</h3>\n<p>An HTTP <code>503</code> response from our servers indicates there is an unexpected spike in API access traffic. The server is usually operational within the next five minutes. If the outage persists or you receive any other form of an HTTP <code>5XX</code> error, contact your acenda support representative.</p>\n<h3 id=\"need-some-help\"><strong>Need some help?</strong></h3>\n<p>Additional help resources coming soon.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"📄 Get started here","slug":"get-started-here"},{"content":"Authentication","slug":"authentication"}],"owner":"17225144","collectionId":"955678a1-2d11-4214-8ce2-371d7c0caa60","publishedId":"2s9Xy5Kpqe","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-08-11T21:11:22.000Z"},"item":[{"name":"Authentication","item":[{"name":"Generate Token","id":"45282653-85ae-4b84-9039-b1d02a6d8184","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"{{client_id}}","type":"text"},{"key":"client_secret","value":"{{client_secret}}","type":"text"},{"key":"grant_type","value":"client_credentials","type":"text"}]},"url":"https://login.acenda.io/auth/realms/acenda/protocol/openid-connect/token","description":"<p>From the response the <code>\"access_token\"</code> will be used in all subsequent API calls and is valid for the duration of the <code>\"expires_in\"</code>. Once the token has expired you will need to generate a new token to continue interacting with the API.</p>\n","urlObject":{"path":["token"],"host":["https://login.acenda.io/auth/realms/acenda/protocol/openid-connect"],"query":[],"variable":[]}},"response":[],"_postman_id":"45282653-85ae-4b84-9039-b1d02a6d8184"}],"id":"c2f78809-ef1e-43b7-94bc-25422fbdfe72","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"c947813a-968f-4d00-8a31-893bf06fb64c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c7e2f2ac-0e0f-4b8b-af88-74c7292db53c","type":"text/javascript","exec":[""]}}],"_postman_id":"c2f78809-ef1e-43b7-94bc-25422fbdfe72","description":""},{"name":"Sales Channel","item":[{"name":"Sales Channels","id":"dd5af3aa-97ef-4da3-af82-de73505a581f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Astur-Organization","value":"{{organization}}","description":"<p>Required</p>\n","type":"text"}],"url":"https://api.acenda.io/v1/sales_channel","description":"<p>Sales Channels are used to segment orders by order source. This list will provide all available sales channels a store could receive orders from.</p>\n","urlObject":{"path":["v1","sales_channel"],"host":["https://api.acenda.io"],"query":[],"variable":[]}},"response":[{"id":"133ec2fb-c621-4899-bcdc-48ef9071e052","name":"Sales Channels","originalRequest":{"method":"GET","header":[{"key":"X-Astur-Organization","value":"{{organization}}","description":"Required","type":"text"}],"url":"https://api.acenda.io/v1/sales_channel"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 11 Aug 2023 22:46:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-ratelimit-limit-second","value":"100"},{"key":"x-ratelimit-limit-minute","value":"1000"},{"key":"x-ratelimit-limit-hour","value":"100000"},{"key":"x-ratelimit-remaining-second","value":"99"},{"key":"x-ratelimit-remaining-minute","value":"999"},{"key":"ratelimit-limit","value":"100"},{"key":"ratelimit-remaining","value":"99"},{"key":"ratelimit-reset","value":"1"},{"key":"x-ratelimit-remaining-hour","value":"99981"},{"key":"Cache-Control","value":"no-cache=#headers"},{"key":"Cache-Control","value":"max-age=0"},{"key":"took","value":"38.754074ms"},{"key":"traceparent","value":"00-05d5554ac8962ef43f744f828272ab5b-29ef642bf655f361-01"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-astur-cache","value":"MISS"},{"key":"x-kong-upstream-latency","value":"40"},{"key":"x-kong-proxy-latency","value":"1"},{"key":"via","value":"kong/3.3.0"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=GYj1vKn8iEqWJ2CxpXYQ5P9lWcQ5Q0%2ByZ5wr9tDggKeIDo4RAqfhb7%2FFaOFWsJfUGWm5njxakJgRPB4xKGKhnBWB%2FECvwIFDKA2ZdHDOK8tr7GTdDDKrH2IvYpnaSC5I\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7f54032d0ee22a91-LAX"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"execution_time\": 0.038754074,\n    \"num_results\": 2,\n    \"errors\": null,\n    \"result\": [\n        {\n            \"id\": 4,\n            \"created_at\": \"2023-07-27T01:18:56.599Z\",\n            \"created_by\": null,\n            \"updated_at\": \"2023-08-11T22:45:56.367Z\",\n            \"updated_by\": null,\n            \"fields\": {},\n            \"integration_subscription_id\": 44,\n            \"connection_params\": {\n                \"property_1\": null,\n                \"property_2\": null\n            },\n            \"name\": \"Walmart Marketplace\",\n            \"country\": null,\n            \"phone_number\": null,\n            \"type\": null,\n            \"subtype\": null,\n            \"sync_inventory\": null,\n            \"sync_price\": null,\n            \"always_route\": false\n        },\n        {\n            \"id\": 5,\n            \"created_at\": \"2023-07-28T02:27:25.014Z\",\n            \"created_by\": null,\n            \"updated_at\": \"2023-08-11T22:45:26.262Z\",\n            \"updated_by\": null,\n            \"fields\": {},\n            \"integration_subscription_id\": 48,\n            \"connection_params\": {\n                \"property_1\": null,\n                \"property_2\": null\n            },\n            \"name\": \"Target Plus\",\n            \"country\": null,\n            \"phone_number\": null,\n            \"type\": null,\n            \"subtype\": null,\n            \"sync_inventory\": null,\n            \"sync_price\": null,\n            \"always_route\": false\n        }\n    ]\n}"}],"_postman_id":"dd5af3aa-97ef-4da3-af82-de73505a581f"}],"id":"18c32e38-571e-4d11-a664-6ff215195fa6","_postman_id":"18c32e38-571e-4d11-a664-6ff215195fa6","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"955678a1-2d11-4214-8ce2-371d7c0caa60","id":"955678a1-2d11-4214-8ce2-371d7c0caa60","name":"Production API","type":"collection"}}},{"name":"Catalog","item":[{"name":"Catalog","id":"78faad70-4ae2-4776-855d-8c55f920b88b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Astur-Organization","value":"{{organization}}","type":"text","description":"<p>Required</p>\n"}],"url":"https://api.acenda.io/v1/catalog","urlObject":{"path":["v1","catalog"],"host":["https://api.acenda.io"],"query":[],"variable":[]}},"response":[],"_postman_id":"78faad70-4ae2-4776-855d-8c55f920b88b"}],"id":"ce02aef6-73b6-4409-b890-246dcce1dc24","_postman_id":"ce02aef6-73b6-4409-b890-246dcce1dc24","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"955678a1-2d11-4214-8ce2-371d7c0caa60","id":"955678a1-2d11-4214-8ce2-371d7c0caa60","name":"Production API","type":"collection"}}},{"name":"Warehouse","item":[{"name":"Warehouse","id":"b958e208-93e3-4537-a435-6f0471befb5a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Astur-Organization","value":"{{organization}}","type":"text","description":"<p>Required</p>\n"}],"url":"https://api.acenda.io/v1/warehouse","description":"<p>Returns all warehouses created for an organization. When submitting inventory, inventory will need to be submitted against the appropriate <code>id</code> of an existing warehouse.</p>\n","urlObject":{"path":["v1","warehouse"],"host":["https://api.acenda.io"],"query":[],"variable":[]}},"response":[{"id":"97219588-b1e0-45d0-a3cc-815722ab5c75","name":"Warehouse","originalRequest":{"method":"GET","header":[{"key":"X-Astur-Organization","value":"{{organization}}","type":"text","description":"Required"}],"url":"https://api.acenda.io/v1/warehouse"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 14 Aug 2023 23:10:25 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-ratelimit-remaining-second","value":"99"},{"key":"x-ratelimit-remaining-minute","value":"999"},{"key":"ratelimit-limit","value":"100"},{"key":"ratelimit-remaining","value":"99"},{"key":"ratelimit-reset","value":"1"},{"key":"x-ratelimit-limit-second","value":"100"},{"key":"x-ratelimit-limit-minute","value":"1000"},{"key":"x-ratelimit-limit-hour","value":"100000"},{"key":"x-ratelimit-remaining-hour","value":"99886"},{"key":"Cache-Control","value":"no-cache=#headers"},{"key":"Cache-Control","value":"max-age=0"},{"key":"took","value":"84.377074ms"},{"key":"traceparent","value":"00-4814b9d641cfda58cf78df4091767c96-d881d3adbd3bdb71-01"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-astur-cache","value":"MISS"},{"key":"x-kong-upstream-latency","value":"86"},{"key":"x-kong-proxy-latency","value":"0"},{"key":"via","value":"kong/3.3.0"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=1OaV1r9mGlTKE2fmPIwwU7OXBDz7%2BJoH55Q46eLrFsTJYTD1IsLmrxDL0Uk44nB4SGJsdUS%2BQDKDqIA%2BLmmHTfs9mWG0ChVqKdK1PQWvyEl53TjmmJ3KkpXQRIDLbsWD\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7f6cdf025f682ac3-LAX"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"execution_time\": 0.084377074,\n    \"num_results\": 1,\n    \"errors\": null,\n    \"result\": [\n        {\n            \"id\": 1,\n            \"created_at\": \"2023-07-31T18:39:47.215Z\",\n            \"created_by\": \"user@company.com\",\n            \"updated_at\": \"2023-07-31T18:39:47.223Z\",\n            \"updated_by\": \"user@company.com\",\n            \"fields\": {},\n            \"active\": true,\n            \"fulfillment_provider_id\": 1,\n            \"inventory_tracking\": \"basic\",\n            \"respect_allocations\": true,\n            \"type\": \"physical\",\n            \"address\": null,\n            \"location\": {\n                \"type\": \"Point\",\n                \"coordinates\": [\n                    43.0372,\n                    -89.3971\n                ]\n            },\n            \"name\": \"My Warehouse\",\n            \"warehouse_aliases\": null,\n            \"external_id\": null\n        }\n    ]\n}"}],"_postman_id":"b958e208-93e3-4537-a435-6f0471befb5a"}],"id":"4edb8aab-f19a-4826-8a82-a421aa9b91c4","_postman_id":"4edb8aab-f19a-4826-8a82-a421aa9b91c4","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"955678a1-2d11-4214-8ce2-371d7c0caa60","id":"955678a1-2d11-4214-8ce2-371d7c0caa60","name":"Production API","type":"collection"}}},{"name":"Inventory","item":[{"name":"Inventory Detail","item":[{"name":"Inventory Detail","id":"2633039e-2468-4134-943e-729886d7f586","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Astur-Organization","value":"{{organization}}","type":"text","description":"<p>Required</p>\n"}],"url":"https://api.acenda.io/v1/inventory_detail","description":"<p>Inventory Detail is a core inventory object that represents the inventory records you for items across the warehouses you have setup.</p>\n","urlObject":{"path":["v1","inventory_detail"],"host":["https://api.acenda.io"],"query":[],"variable":[]}},"response":[{"id":"2e51ac1d-7d47-42ea-9285-7784f1e18f3a","name":"Inventory","originalRequest":{"method":"GET","header":[{"key":"X-Astur-Organization","value":"{{organization}}","type":"text","description":"Required"}],"url":"https://api.acenda.io/v1/inventory_detail"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 14 Aug 2023 23:17:56 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-ratelimit-remaining-second","value":"99"},{"key":"x-ratelimit-remaining-minute","value":"999"},{"key":"ratelimit-limit","value":"100"},{"key":"ratelimit-remaining","value":"99"},{"key":"ratelimit-reset","value":"1"},{"key":"x-ratelimit-limit-second","value":"100"},{"key":"x-ratelimit-limit-minute","value":"1000"},{"key":"x-ratelimit-limit-hour","value":"100000"},{"key":"x-ratelimit-remaining-hour","value":"99881"},{"key":"Cache-Control","value":"no-cache=#headers"},{"key":"Cache-Control","value":"max-age=0"},{"key":"took","value":"7.624136ms"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-astur-cache","value":"HIT"},{"key":"x-kong-upstream-latency","value":"8"},{"key":"x-kong-proxy-latency","value":"1"},{"key":"via","value":"kong/3.3.0"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=QKtizW5NU2N8Bhl%2FnbOjBlCxQ7wTSuZsoPy5W275HbWYkvB16G05IMgNgEd6vEEk8NwLoBAKbm8sTF385qXPgCMXy%2FpjK6PzGRNtZou7dE8gygFQMBketisiEOd6jCWS\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7f6cea00dcc12ac3-LAX"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"execution_time\": 0.007624136,\n    \"num_results\": 2,\n    \"errors\": null,\n    \"result\": [\n        {\n            \"id\": 1,\n            \"created_at\": \"2023-07-31T18:47:46.258Z\",\n            \"created_by\": \"user\",\n            \"updated_at\": \"2023-08-14T12:31:50.474Z\",\n            \"updated_by\": \"user\",\n            \"fields\": {},\n            \"inventory_id\": 0,\n            \"allocated\": 0,\n            \"cost\": 0,\n            \"date_received\": null,\n            \"expiration_date\": null,\n            \"fulfillment_provider_id\": 1,\n            \"not_available\": 0,\n            \"on_hand\": 126,\n            \"quantity\": 126,\n            \"sku\": \"ABC123\",\n            \"product_id\": 14,\n            \"tracking\": \"basic\",\n            \"warehouse_id\": 1\n        },\n        {\n            \"id\": 2,\n            \"created_at\": \"2023-07-31T18:47:46.258Z\",\n            \"created_by\": \"user\",\n            \"updated_at\": \"2023-08-14T12:31:50.474Z\",\n            \"updated_by\": \"user\",\n            \"fields\": {},\n            \"inventory_id\": 0,\n            \"allocated\": 0,\n            \"cost\": 0,\n            \"date_received\": null,\n            \"expiration_date\": null,\n            \"fulfillment_provider_id\": 1,\n            \"not_available\": 0,\n            \"on_hand\": 213,\n            \"quantity\": 213,\n            \"sku\": \"DEF987\",\n            \"product_id\": 29,\n            \"tracking\": \"basic\",\n            \"warehouse_id\": 1\n        }\n    ]\n}"}],"_postman_id":"2633039e-2468-4134-943e-729886d7f586"},{"name":"Add Inventory to Warehouse","id":"616d2ee2-35fa-4698-ab9d-3deb25ff85e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Astur-Organization","value":"{{organization}}","type":"text","description":"<p>Required</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"cost\": 0.00,\n    \"quantity\": 15,\n    \"sku\": \"A43747222728\",\n    \"tracking\": \"basic\",\n    \"warehouse_id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://api.acenda.io/v1/inventory_detail","description":"<p>Add Inventory for a specific item into a warehouse.</p>\n","urlObject":{"path":["v1","inventory_detail"],"host":["https://api.acenda.io"],"query":[],"variable":[]}},"response":[{"id":"e29addf7-afad-4adf-9384-7e061dc214ba","name":"Create Inventory Detail","originalRequest":{"method":"POST","header":[{"key":"X-Astur-Organization","value":"{{organization}}","type":"text","description":"Required"}],"body":{"mode":"raw","raw":"{\n    \"cost\": 0.00,\n    \"quantity\": 15,\n    \"sku\": \"ABC123\",\n    \"tracking\": \"basic\",\n    \"warehouse_id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://api.acenda.io/v1/inventory_detail"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 14 Aug 2023 23:31:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-ratelimit-remaining-second","value":"99"},{"key":"x-ratelimit-remaining-minute","value":"999"},{"key":"ratelimit-limit","value":"100"},{"key":"ratelimit-remaining","value":"99"},{"key":"ratelimit-reset","value":"1"},{"key":"x-ratelimit-limit-second","value":"100"},{"key":"x-ratelimit-limit-minute","value":"1000"},{"key":"x-ratelimit-limit-hour","value":"100000"},{"key":"x-ratelimit-remaining-hour","value":"99862"},{"key":"Cache-Control","value":"no-cache=#headers"},{"key":"Cache-Control","value":"max-age=0"},{"key":"took","value":"17.324887ms"},{"key":"traceparent","value":"00-44e593958eaaeabe16158d7b962ce765-b5b489e4bd5e73fe-01"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-astur-cache","value":"MISS"},{"key":"x-kong-upstream-latency","value":"18"},{"key":"x-kong-proxy-latency","value":"1"},{"key":"via","value":"kong/3.3.0"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=gTeOtgJZNJFOEaA8jP%2BvBEq%2FpbuCicWXWhd4%2FlufcNwBANe5ReZrnTmcLObe1ZFBf9M93frySZJ1MZ0DhQRFWrvWV360RP9PblKN4KKI59hJ4c%2FU0ispawPIxkZ5FPQ2\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7f6cfdae59c32aab-LAX"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 201,\n    \"execution_time\": 0.017324887,\n    \"num_results\": 2,\n    \"errors\": null,\n    \"result\": {\n        \"id\": 198,\n        \"created_at\": \"2023-08-14T23:31:22.027Z\",\n        \"created_by\": \"user\",\n        \"updated_at\": \"2023-08-14T23:31:22.027Z\",\n        \"updated_by\": \"user\",\n        \"fields\": {},\n        \"inventory_id\": 0,\n        \"allocated\": 0,\n        \"cost\": 0,\n        \"date_received\": null,\n        \"expiration_date\": null,\n        \"fulfillment_provider_id\": 1,\n        \"not_available\": 0,\n        \"on_hand\": 15,\n        \"quantity\": 15,\n        \"sku\": \"ABC123\",\n        \"product_id\": 355,\n        \"tracking\": \"basic\",\n        \"warehouse_id\": 1\n    }\n}"}],"_postman_id":"616d2ee2-35fa-4698-ab9d-3deb25ff85e7"},{"name":"BULK Add Inventory to Warehouse","id":"5cabfe8b-d7f1-4b78-b5c7-5065c2882c15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Astur-Organization","value":"{{organization}}","type":"text","description":"<p>Required</p>\n"}],"body":{"mode":"raw","raw":"[\n    {\n        \"quantity\": 10,\n        \"sku\": \"abcd1234\",\n        \"tracking\": \"basic\",\n        \"warehouse_id\": 1\n    },\n    {\n        \"quantity\": 5,\n        \"sku\": \"abcd1234\",\n        \"tracking\": \"basic\",\n        \"warehouse_id\": 2\n    },\n    {\n        \"quantity\": 5,\n        \"sku\": \"efgh5678\",\n        \"tracking\": \"basic\",\n        \"warehouse_id\": 1\n    },\n    {\n        \"quantity\": 8,\n        \"sku\": \"efgh5678\",\n        \"tracking\": \"basic\",\n        \"warehouse_id\": 2\n    }\n]","options":{"raw":{"language":"json"}}},"url":"https://api.acenda.io/v1/inventory_detail/bulk","description":"<p>You can use this endpoint to add inventory to multiple warehouses at once. Only add inventory to items that are of group: variant.</p>\n","urlObject":{"path":["v1","inventory_detail","bulk"],"host":["https://api.acenda.io"],"query":[],"variable":[]}},"response":[{"id":"4b289b3d-acd5-489e-8793-073318b5b5b5","name":"BULK update Inventroy detail","originalRequest":{"method":"POST","header":[{"key":"X-Astur-Organization","value":"{{organization}}","type":"text","description":"Required"}],"body":{"mode":"raw","raw":"[\n    {\n        \"quantity\": 10,\n        \"sku\": \"abcd1234\",\n        \"tracking\": \"basic\",\n        \"warehouse_id\": 1\n    },\n    {\n        \"quantity\": 5,\n        \"sku\": \"abcd1234\",\n        \"tracking\": \"basic\",\n        \"warehouse_id\": 2\n    },\n    {\n        \"quantity\": 5,\n        \"sku\": \"efgh5678\",\n        \"tracking\": \"basic\",\n        \"warehouse_id\": 1\n    },\n    {\n        \"quantity\": 8,\n        \"sku\": \"efgh5678\",\n        \"tracking\": \"basic\",\n        \"warehouse_id\": 2\n    }\n]","options":{"raw":{"language":"json"}}},"url":"https://api.acenda.io/v1/inventory_detail/bulk"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"5cabfe8b-d7f1-4b78-b5c7-5065c2882c15"}],"id":"86f6279e-8a86-47d3-8015-b7e050ad3614","_postman_id":"86f6279e-8a86-47d3-8015-b7e050ad3614","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"955678a1-2d11-4214-8ce2-371d7c0caa60","id":"955678a1-2d11-4214-8ce2-371d7c0caa60","name":"Production API","type":"collection"}}},{"name":"Inventory","id":"037d143e-224d-4249-939b-4d6fc78f6610","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Astur-Organization","value":"{{organization}}","type":"text","description":"<p>Required</p>\n"}],"url":"https://api.acenda.io/v1/inventory?query={\"warehouse_id\":1}","description":"<p>Returns all warehouses created for an organization. When submitting inventory, inventory will need to be submitted against the appropriate <code>id</code> of an existing warehouse.</p>\n","urlObject":{"path":["v1","inventory"],"host":["https://api.acenda.io"],"query":[{"key":"query","value":"{\"warehouse_id\":1}"}],"variable":[]}},"response":[],"_postman_id":"037d143e-224d-4249-939b-4d6fc78f6610"}],"id":"16734802-349c-4dfc-9289-0795f6982afb","_postman_id":"16734802-349c-4dfc-9289-0795f6982afb","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"955678a1-2d11-4214-8ce2-371d7c0caa60","id":"955678a1-2d11-4214-8ce2-371d7c0caa60","name":"Production API","type":"collection"}}},{"name":"Catalog","item":[{"name":"Pricing Item","item":[{"name":"Pricing Item","id":"d446b978-9fc9-49c1-ae50-1547fb703470","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Astur-Organization","value":"{{organization}}","type":"text","description":"<p>Required</p>\n"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.acenda.io/v1/pricing_item?query={\"product_id\":id}","description":"<p>Returns all warehouses created for an organization. When submitting inventory, inventory will need to be submitted against the appropriate <code>id</code> of an existing warehouse.</p>\n","urlObject":{"path":["v1","pricing_item"],"host":["https://api.acenda.io"],"query":[{"key":"query","value":"{\"product_id\":id}"}],"variable":[]}},"response":[],"_postman_id":"d446b978-9fc9-49c1-ae50-1547fb703470"},{"name":"Update Pricing Item","id":"ecfbd5f9-5fed-48b7-a07e-bfd4477ee8cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":false},"method":"PATCH","header":[{"key":"X-Astur-Organization","value":"{{organization}}","type":"text","description":"<p>Required</p>\n"}],"body":{"mode":"raw","raw":"{\n    \"price\": {\n        \"amount\": 21.99,\n        \"currency\": \"USD\"\n    },\n    \"msrp\": {\n        \"amount\": 27.99,\n        \"currency\": \"USD\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.acenda.io/v1/pricing_item/:pricing_item_id","description":"<p>Returns all warehouses created for an organization. When submitting inventory, inventory will need to be submitted against the appropriate <code>id</code> of an existing warehouse.</p>\n","urlObject":{"path":["v1","pricing_item",":pricing_item_id"],"host":["https://api.acenda.io"],"query":[],"variable":[{"type":"any","value":"","key":"pricing_item_id"}]}},"response":[],"_postman_id":"ecfbd5f9-5fed-48b7-a07e-bfd4477ee8cd"}],"id":"0e0ad539-5466-45cf-a3d0-f32f7bde7f85","_postman_id":"0e0ad539-5466-45cf-a3d0-f32f7bde7f85","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"955678a1-2d11-4214-8ce2-371d7c0caa60","id":"955678a1-2d11-4214-8ce2-371d7c0caa60","name":"Production API","type":"collection"}}},{"name":"Catalog Item by Sku","id":"0aa203b0-146c-4b97-a131-dd78d8ad977a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Astur-Organization","value":"{{organization}}","type":"text","description":"<p>Required</p>\n"}],"url":"https://api.acenda.io/v1/catalog?query={\"sku\":\"your_sku\"}","description":"<p>Returns all warehouses created for an organization. When submitting inventory, inventory will need to be submitted against the appropriate <code>id</code> of an existing warehouse.</p>\n","urlObject":{"path":["v1","catalog"],"host":["https://api.acenda.io"],"query":[{"key":"query","value":"{\"sku\":\"your_sku\"}"}],"variable":[]}},"response":[],"_postman_id":"0aa203b0-146c-4b97-a131-dd78d8ad977a"},{"name":"Current Price for Item","id":"6ed3ab1f-ee47-4401-a038-634886778a98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Astur-Organization","value":"{{organization}}","type":"text","description":"<p>Required</p>\n"}],"url":"https://api.acenda.io/v1/catalog/:catalog_id/pricing_item","description":"<p>Returns all warehouses created for an organization. When submitting inventory, inventory will need to be submitted against the appropriate <code>id</code> of an existing warehouse.</p>\n","urlObject":{"path":["v1","catalog",":catalog_id","pricing_item"],"host":["https://api.acenda.io"],"query":[],"variable":[{"type":"any","value":"","key":"catalog_id"}]}},"response":[],"_postman_id":"6ed3ab1f-ee47-4401-a038-634886778a98"}],"id":"47a7c4ff-c207-4b50-9714-538e06e57098","_postman_id":"47a7c4ff-c207-4b50-9714-538e06e57098","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"955678a1-2d11-4214-8ce2-371d7c0caa60","id":"955678a1-2d11-4214-8ce2-371d7c0caa60","name":"Production API","type":"collection"}}},{"name":"Ship Advice","item":[{"name":"Fulfillment","item":[{"name":"Fulfill Ship Advice Items","id":"dee90cac-fc23-44fd-92e4-65b1affebf5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"\n{\n    \"type\": \"shipment\",\n    \"carrier\": \"Fedex\",\n    \"shipping_method\": \"ground\",\n    \"cost\": 0,\n    \"tracking_info\": [\n        {\n            \"number\": \"122816215025810\",\n            \"url\": \"https://www.fedex.com/apps/fedextrack/?tracknumbers=122816215025810\"\n        }\n    ],\n    \"is_ltl\": false,\n    \"fulfillment_items\": [\n        {\n            \"quantity\": 1,\n            \"ship_advice_item_id\": 10944\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.acenda.io/v1/ship_advice/[ship_advice.id]/fulfillment","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>field</th>\n<th>value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>\"type\" (required)</td>\n<td><strong>enum</strong>: <code>\"shipment\"</code> <code>\"replacement\"</code> The standard way is to send <code>\"shipment\"</code> A <code>\"replacement\"</code> type shipment should only be used when you want to re-ship an item to the customer after you have already completed the fulfillment. **Note that not all marketplaces will accept a replacement style fulfillment and you may need to communicate this in some other means</td>\n</tr>\n<tr>\n<td>\"carrier\" (required)</td>\n<td><strong>string</strong></td>\n</tr>\n<tr>\n<td>\"shipping_method\" (required)</td>\n<td><strong>string</strong></td>\n</tr>\n<tr>\n<td>\"tracking_info\"</td>\n<td><em><strong>array of objects</strong></em> Only create one array. Create multiple fulfillments to the ship_advice if you need to communicate unique tracking numbers per item.</td>\n</tr>\n<tr>\n<td>\"tracking_info.number\" (required)</td>\n<td><strong>string</strong></td>\n</tr>\n<tr>\n<td>\"tracking_info.url\" (optional)</td>\n<td><strong>string</strong></td>\n</tr>\n<tr>\n<td>\"fulfillment_items\"</td>\n<td><em><strong>array of objects</strong></em> multiple items can be associated to the same tracking informatin from the tracking_info array.</td>\n</tr>\n<tr>\n<td>\"fulfillment_items.quantity\" (required)</td>\n<td><strong>int</strong> you are not allowed to ship a quantity greater than what is left to be shipped.</td>\n</tr>\n<tr>\n<td>\"fulfillment_items.ship_advice_item_id\" (required)</td>\n<td><strong>int</strong> this is in reference to the ship_advice.ship_advice_item.id</td>\n</tr>\n<tr>\n<td>\"cost\" (optional)</td>\n<td><strong>int</strong> provide a cost for us to conduct profitability metrics on your orders. 0 if omitted.</td>\n</tr>\n<tr>\n<td>\"is_ltl\" (optional)</td>\n<td><strong>boolean</strong> false is the default if omitted</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"955678a1-2d11-4214-8ce2-371d7c0caa60","id":"955678a1-2d11-4214-8ce2-371d7c0caa60","name":"Production API","type":"collection"}},"urlObject":{"path":["v1","ship_advice","[ship_advice.id]","fulfillment"],"host":["https://api.acenda.io"],"query":[],"variable":[]}},"response":[{"id":"ed255b3c-3ac7-4510-b034-a76ef66f50a6","name":"Ship 1 item","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"\n{\n    \"type\": \"shipment\",\n    \"carrier\": \"Fedex\",\n    \"shipping_method\": \"ground\",\n    \"cost\": 0,\n    \"tracking_info\": [\n        {\n            \"number\": \"122816215025810\",\n            \"url\": \"https://www.fedex.com/apps/fedextrack/?tracknumbers=122816215025810\"\n        }\n    ],\n    \"is_ltl\": false,\n    \"fulfillment_items\": [\n        {\n            \"quantity\": 1,\n            \"ship_advice_item_id\": 10944\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.acenda.io/v1/ship_advice/[ship_advice.id]/fulfillment"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"52cbd709-ce49-402d-935b-685f2dd79d18","name":"Ship Multiple Items","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"\n{\n    \"type\": \"shipment\",\n    \"carrier\": \"Fedex\",\n    \"shipping_method\": \"ground\",\n    \"cost\": 0,\n    \"tracking_info\": [\n        {\n            \"number\": \"122816215025810\",\n            \"url\": \"https://www.fedex.com/apps/fedextrack/?tracknumbers=122816215025810\"\n        }\n    ],\n    \"is_ltl\": false,\n    \"fulfillment_items\": [\n        {\n            \"quantity\": 1,\n            \"ship_advice_item_id\": 10944\n        },\n        {\n            \"quantity\": 2,\n            \"ship_advice_item_id\": 10946\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.acenda.io/v1/ship_advice/[ship_advice.id]/fulfillment"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"dee90cac-fc23-44fd-92e4-65b1affebf5c"}],"id":"b002256d-c4f7-48d9-bb68-0d11f37be563","_postman_id":"b002256d-c4f7-48d9-bb68-0d11f37be563","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"955678a1-2d11-4214-8ce2-371d7c0caa60","id":"955678a1-2d11-4214-8ce2-371d7c0caa60","name":"Production API","type":"collection"}}},{"name":"Cancel Item","item":[{"name":"Cancel Ship Advice Item(s)","id":"663e9c6d-1511-4d3e-a386-fe1d94643856","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"reason\": \"\",\n    \"cancellation_items\": [\n        {\n            \"quantity\": 1,\n            \"ship_advice_item_id\": 90\n        },\n        {\n            \"quantity\": 1,\n            \"ship_advice_item_id\": 91\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.acenda.io/v1/ship_advice/[ship_advice.id]/cancellation","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>field</th>\n<th>value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>\"shipping_method\" (required)</td>\n<td><strong>string</strong></td>\n</tr>\n<tr>\n<td>\"cancellation_items\" (required)</td>\n<td><em><strong>array of objects</strong></em> Only create one array. Create multiple fulfillments to the ship_advice if you need to communicate unique tracking numbers per item.</td>\n</tr>\n<tr>\n<td>\"cancellation_items.quantity\" (required)</td>\n<td><strong>int</strong> must be a positive number and not greater than the number of unshipped items remaining on the ship_advice</td>\n</tr>\n<tr>\n<td>\"cancellation_items.ship_advice_item_id\" (required)</td>\n<td><strong>int</strong> must reference the ship_advice_item.id of the ship_advice you are updating</td>\n</tr>\n<tr>\n<td>\"reason\" (optional)</td>\n<td><strong>string</strong> provide a reason for the cancellation</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"955678a1-2d11-4214-8ce2-371d7c0caa60","id":"955678a1-2d11-4214-8ce2-371d7c0caa60","name":"Production API","type":"collection"}},"urlObject":{"path":["v1","ship_advice","[ship_advice.id]","cancellation"],"host":["https://api.acenda.io"],"query":[],"variable":[]}},"response":[{"id":"739ab5cc-f2d9-4a56-9e83-4e0204179f61","name":"Cancel Ship Advice Item(s)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"reason\": \"\",\n    \"cancellation_items\": [\n        {\n            \"quantity\": 1,\n            \"ship_advice_item_id\": 90\n        },\n        {\n            \"quantity\": 1,\n            \"ship_advice_item_id\": 91\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.acenda.io/v1/ship_advice/[ship_advice.id]/cacellation"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"663e9c6d-1511-4d3e-a386-fe1d94643856"}],"id":"31200095-f183-48ab-baa9-e96007c9a24a","_postman_id":"31200095-f183-48ab-baa9-e96007c9a24a","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"955678a1-2d11-4214-8ce2-371d7c0caa60","id":"955678a1-2d11-4214-8ce2-371d7c0caa60","name":"Production API","type":"collection"}}},{"name":"Re-Route Ship Advice Item","item":[{"name":"Re-Route Ship Advice Item","id":"bb912bce-aeff-4596-8443-b7f704717787","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"quantity_rerouted\": 2,\n    \"ship_advice_item_id\": 97\n}","options":{"raw":{"language":"json"}}},"url":"https://api.acenda.io/v1/ship_advice_item_reroute","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>field</th>\n<th>value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>\"carrier\" (required)</td>\n<td><strong>string</strong></td>\n</tr>\n<tr>\n<td>\"shipping_method\" (required)</td>\n<td><strong>string</strong></td>\n</tr>\n<tr>\n<td>\"tracking_info\"</td>\n<td><em><strong>array of objects</strong></em> Only create one array. Create multiple fulfillments to the ship_advice if you need to communicate unique tracking numbers per item.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"955678a1-2d11-4214-8ce2-371d7c0caa60","id":"955678a1-2d11-4214-8ce2-371d7c0caa60","name":"Production API","type":"collection"}},"urlObject":{"path":["v1","ship_advice_item_reroute"],"host":["https://api.acenda.io"],"query":[],"variable":[]}},"response":[{"id":"93f27598-ad1f-4e54-86c8-1fbd6ef48e59","name":"Re-Route Ship Advice Item","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"quantity_rerouted\": 2,\n    \"ship_advice_item_id\": 97\n}","options":{"raw":{"language":"json"}}},"url":"https://api.acenda.io/v1/ship_advice_item_reroute"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"bb912bce-aeff-4596-8443-b7f704717787"}],"id":"cafcaa53-433b-4204-a407-15f644da5bb7","_postman_id":"cafcaa53-433b-4204-a407-15f644da5bb7","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"955678a1-2d11-4214-8ce2-371d7c0caa60","id":"955678a1-2d11-4214-8ce2-371d7c0caa60","name":"Production API","type":"collection"}}},{"name":"All Ship Advices","id":"27d07c21-b321-43db-b150-c9ef2c66617e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Astur-Organization","value":"{{organization}}","type":"text","description":"<p>Required</p>\n"}],"url":"https://api.acenda.io/v1/ship_advice?fulfillment_provider_id={{fulfillment_provider_id}}&warehouse_id={{warehouse_id}}&sort=id:1&page=1&limit=100","description":"<p>Use this request to get ship advices for your particular fulfillment provider/warehouse combination.</p>\n","urlObject":{"path":["v1","ship_advice"],"host":["https://api.acenda.io"],"query":[{"description":{"content":"<p>OPTIONAL - Pass this in to retreive ship_advice for a specific fulfillment_provider</p>\n","type":"text/plain"},"key":"fulfillment_provider_id","value":"{{fulfillment_provider_id}}"},{"description":{"content":"<p>OPTIONAL - Pass this in to retrieve ship_advice for a specific warehouse</p>\n","type":"text/plain"},"key":"warehouse_id","value":"{{warehouse_id}}"},{"key":"sort","value":"id:1"},{"key":"page","value":"1"},{"key":"limit","value":"100"}],"variable":[]}},"response":[],"_postman_id":"27d07c21-b321-43db-b150-c9ef2c66617e"},{"name":"All Unacknowledged Ship Advices","id":"b146d9f9-746c-499e-8f92-a9b5f549eeb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Astur-Organization","value":"{{organization}}","type":"text","description":"<p>Required</p>\n"}],"url":"https://api.acenda.io/v1/ship_advice?unacked=true&query={\"status\":\"pending\",\"fulfillment_provider_id\":{{fulfillment_provider_id}},\"warehouse_id\":{{warehouse_id}}}&sort=id:1&page=1&limit=100","description":"<p>Use this request to get ship advices for your particular fulfillment provider/warehouse combination.</p>\n","urlObject":{"path":["v1","ship_advice"],"host":["https://api.acenda.io"],"query":[{"key":"unacked","value":"true"},{"key":"query","value":"{\"status\":\"pending\",\"fulfillment_provider_id\":{{fulfillment_provider_id}},\"warehouse_id\":{{warehouse_id}}}"},{"key":"sort","value":"id:1"},{"key":"page","value":"1"},{"key":"limit","value":"100"}],"variable":[]}},"response":[],"_postman_id":"b146d9f9-746c-499e-8f92-a9b5f549eeb9"},{"name":"Acknowledge Ship Advice","id":"1d3a70a6-0f7a-4b3b-b5ed-9c1643089c71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Astur-Organization","value":"{{organization}}","type":"text","description":"<p>Required</p>\n"}],"body":{"mode":"raw","raw":"{\n  \"external_id\": \"external reference\"\n}"},"url":"https://api.acenda.io/v1/acknowledge/ship_advice/[ship_advice_id]","description":"<p>Use this request to acknowledge a Ship Advice so that you don't get the same ship advice on subsequent calls.</p>\n","urlObject":{"path":["v1","acknowledge","ship_advice","[ship_advice_id]"],"host":["https://api.acenda.io"],"query":[],"variable":[]}},"response":[{"id":"979639ba-aa49-46b3-9772-634dabe23c5f","name":"Acknowledge Ship Advice","originalRequest":{"method":"POST","header":[{"key":"X-Astur-Organization","value":"{{organization}}","type":"text","description":"Required"}],"body":{"mode":"raw","raw":"{\n  \"external_id\": \"external reference\"\n}"},"url":"https://api.acenda.io/v1/acknowledge/ship_advice/[ship_advice_id]"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 19 Dec 2023 23:17:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"ratelimit-limit","value":"100"},{"key":"ratelimit-remaining","value":"99"},{"key":"ratelimit-reset","value":"1"},{"key":"x-ratelimit-limit-second","value":"100"},{"key":"x-ratelimit-limit-minute","value":"1000"},{"key":"x-ratelimit-limit-hour","value":"100000"},{"key":"x-ratelimit-remaining-second","value":"99"},{"key":"x-ratelimit-remaining-minute","value":"972"},{"key":"x-ratelimit-remaining-hour","value":"99247"},{"key":"Cache-Control","value":"no-cache=#headers"},{"key":"Cache-Control","value":"max-age=0"},{"key":"took","value":"14.757937ms"},{"key":"traceparent","value":"00-363f1f9cc06ff23c0a87c10f4f226d16-f5e5c5519e34af15-01"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-astur-cache","value":"MISS"},{"key":"x-sampled","value":"true"},{"key":"x-kong-upstream-latency","value":"15"},{"key":"x-kong-proxy-latency","value":"1"},{"key":"via","value":"kong/3.3.1"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=kXYRss2jJ%2BM1gkXdaNrk%2FqIKtWYec0Dfdwxh%2FTc2CA6JdxOd1ePWkskFJzMCccnA5uOMk%2FZAGkzCirADKsx%2FqfU%2BYZe2o8yXQ9YuBapAO9Q7u5DsPhOCHVJMp1accX6b\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"83835c8c2d8d7cec-LAX"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"execution_time\": 0.014757937,\n    \"num_results\": 0,\n    \"errors\": null,\n    \"result\": {\n        \"id\": 8,\n        \"created_at\": \"2023-12-19T23:17:52.692Z\",\n        \"created_by\": \"service-account-api_client_org_alotofhome_jysp7xynam\",\n        \"resource\": \"ship_advice\",\n        \"ref_id\": 8519,\n        \"external_id\": \"external reference\"\n    }\n}"}],"_postman_id":"1d3a70a6-0f7a-4b3b-b5ed-9c1643089c71"},{"name":"Ship Advice by Id","id":"d5b817ea-b1a5-4a46-88f5-9373b0084051","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"X-Astur-Organization","value":"{{organization}}","type":"text","description":"<p>Required</p>\n"}],"url":"https://api.acenda.io/v1/ship_advice/1","description":"<p>Retreive a specific ship advice from the API</p>\n","urlObject":{"path":["v1","ship_advice","1"],"host":["https://api.acenda.io"],"query":[{"disabled":true,"description":{"content":"<p>OPTIONAL - Pass this in to retreive ship_advice for a specific fulfillment_provider</p>\n","type":"text/plain"},"key":"fulfillment_provider_id","value":"{{fulfillment_provider_id}}"},{"disabled":true,"description":{"content":"<p>OPTIONAL - Pass this in to retrieve ship_advice for a specific warehouse</p>\n","type":"text/plain"},"key":"warehouse_id","value":"{{warehouse_id}}"}],"variable":[]}},"response":[{"id":"a6d0f3f2-9c79-4451-a1b9-58e71003134a","name":"Ship Advice by Id","originalRequest":{"method":"GET","header":[{"key":"X-Astur-Organization","value":"{{organization}}","type":"text","description":"Required"}],"url":{"raw":"https://api.acenda.io/v1/ship_advice/1","host":["https://api.acenda.io"],"path":["v1","ship_advice","1"],"query":[{"key":"fulfillment_provider_id","value":"{{fulfillment_provider_id}}","description":"OPTIONAL - Pass this in to retreive ship_advice for a specific fulfillment_provider","disabled":true},{"key":"warehouse_id","value":"{{warehouse_id}}","description":"OPTIONAL - Pass this in to retrieve ship_advice for a specific warehouse","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 14 Aug 2023 23:56:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-ratelimit-limit-minute","value":"1000"},{"key":"x-ratelimit-limit-hour","value":"100000"},{"key":"x-ratelimit-remaining-second","value":"99"},{"key":"x-ratelimit-remaining-minute","value":"999"},{"key":"x-ratelimit-remaining-hour","value":"99542"},{"key":"ratelimit-remaining","value":"99"},{"key":"ratelimit-reset","value":"1"},{"key":"ratelimit-limit","value":"100"},{"key":"x-ratelimit-limit-second","value":"100"},{"key":"Cache-Control","value":"no-cache=#headers"},{"key":"Cache-Control","value":"max-age=0"},{"key":"took","value":"25.470842ms"},{"key":"traceparent","value":"00-2bc571c6cfb0048109d1c798cae67bb6-087f629da128ef4a-01"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-astur-cache","value":"MISS"},{"key":"x-kong-upstream-latency","value":"26"},{"key":"x-kong-proxy-latency","value":"1"},{"key":"via","value":"kong/3.3.0"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=QA%2F780ILruOp6bQK8Jl%2B6J%2BEo5PG%2FDeBPyLaaum1fybB0pcVeFNi8I8NvadX0nysb7NzvrwauhYbrtN9YAdkSjlfKOdAAXHBw7rJujA8EwIjlQQrA0lCWP7c8hIy7cJw\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7f6d226e19427e7d-LAX"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"execution_time\": 0.025470842,\n    \"num_results\": 1,\n    \"errors\": null,\n    \"result\": {\n        \"id\": 1,\n        \"created_at\": \"2023-08-02T18:15:46.881Z\",\n        \"created_by\": \"user\",\n        \"updated_at\": \"2023-08-02T18:15:46.881Z\",\n        \"updated_by\": \"user\",\n        \"fields\": {},\n        \"order_id\": 1,\n        \"purchase_order\": null,\n        \"status\": \"pending\",\n        \"external_order_id\": \"1111111111111-22222222222\",\n        \"sales_channel_id\": 1,\n        \"sales_channel_name\": \"Marketplace Name\",\n        \"sales_channel_type\": null,\n        \"sales_channel_subtype\": null,\n        \"sales_channel_country\": null,\n        \"order_routing_status\": null,\n        \"fulfillment_provider_id\": 1,\n        \"warehouse_id\": 1,\n        \"shipping_method\": \"GROUND\",\n        \"shipping_code\": null,\n        \"delivery_information\": {\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"company\": \"\",\n            \"address_1\": \"123 Avenue Street\",\n            \"address_2\": \"\",\n            \"city\": \"Springfield\",\n            \"state\": \"MA\",\n            \"postal_code\": \"12345-1234\",\n            \"county\": \"\",\n            \"country\": \"US\",\n            \"email\": \"no-reply@acenda.com\",\n            \"phone_number\": \"(555) 555-5555\",\n            \"location\": null\n        },\n        \"requested_ship_date\": \"2023-08-03T03:00:00Z\",\n        \"requested_delivery_date\": \"2023-08-09T05:00:00Z\",\n        \"ship_advice_item\": [\n            {\n                \"id\": 1,\n                \"created_at\": \"2023-08-02T18:15:46.883Z\",\n                \"created_by\": \"user\",\n                \"updated_at\": \"2023-08-02T18:15:46.883Z\",\n                \"updated_by\": \"user\",\n                \"fields\": {},\n                \"inventory_detail_id\": 279,\n                \"order_item_id\": 1,\n                \"ship_advice_id\": 1,\n                \"line_id\": \"1\",\n                \"subscription_id\": 53,\n                \"external_sku\": \"marketplace_sku_reference\",\n                \"product_id\": 234,\n                \"product_name\": \"Acme Products Big Red Truck\",\n                \"sku\": \"ABC123\",\n                \"upc\": \"195468719691\",\n                \"ean\": null,\n                \"isbn\": null,\n                \"unit_price\": 112.99,\n                \"giftwrap\": false,\n                \"giftwrap_price\": 0,\n                \"giftwrap_tax_price\": 0,\n                \"gift_message\": \"\",\n                \"gift_message_price\": 0,\n                \"gift_message_tax_price\": 0,\n                \"total_customization_price\": 0,\n                \"total_customization_tax_price\": 0,\n                \"total_shipping_price\": 5.99,\n                \"total_shipping_tax_price\": 0,\n                \"total_handling_price\": 0,\n                \"total_item_tax\": 0,\n                \"total_tax_price\": 0,\n                \"total_item_price\": 112.99,\n                \"total_price\": 112.99,\n                \"other_fees\": 0,\n                \"tax_rate\": 0,\n                \"total_item_discount\": 0,\n                \"total_shipping_discount\": 5.99,\n                \"total_gift_option_price\": 0,\n                \"total_gift_option_tax_price\": 0,\n                \"expected_shipping_date\": null,\n                \"expected_delivery_date\": null,\n                \"shipping_method\": null,\n                \"external_warehouse_id\": \"\",\n                \"two_day_shipping\": false,\n                \"discounts\": [\n                    {\n                        \"id\": 2,\n                        \"created_at\": \"2023-08-02T18:15:46.887Z\",\n                        \"created_by\": \"user\",\n                        \"updated_at\": \"2023-08-02T18:15:46.887Z\",\n                        \"updated_by\": \"user\",\n                        \"fields\": {},\n                        \"promotion_code\": \"Discount\",\n                        \"promotion_text\": \"\",\n                        \"affects\": \"shipping\",\n                        \"price\": 5.99\n                    }\n                ],\n                \"customization\": [],\n                \"kit_items\": [],\n                \"status\": \"pending\",\n                \"quantity\": 1,\n                \"quantity_fulfilled\": 0,\n                \"quantity_canceled\": 0,\n                \"quantity_rerouted\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"d5b817ea-b1a5-4a46-88f5-9373b0084051"}],"id":"a6eb0844-ca3c-44f3-a1af-40ae8ccd1af9","_postman_id":"a6eb0844-ca3c-44f3-a1af-40ae8ccd1af9","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":true,"source":{"_postman_id":"955678a1-2d11-4214-8ce2-371d7c0caa60","id":"955678a1-2d11-4214-8ce2-371d7c0caa60","name":"Production API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]}},"event":[{"listen":"prerequest","script":{"id":"b0d1e2a6-5432-437f-aa21-30ae02078e54","type":"text/javascript","exec":["// refresh token if it's expired","var getToken = true;","","if (!pm.environment.get('accessTokenExpiry') || ","\t!pm.environment.get('access_token')) {","\tconsole.log('Token or expiry date are missing')","} else if (pm.environment.get('accessTokenExpiry') <= (new Date()).getTime()) {","\tconsole.log('Token is expired')","} else {","\t// getToken = false;","\tconsole.log('Token and expiry date are all good');","}","","if (getToken === true) {","var client_id = pm.environment.get(\"client_id\")","var client_secret = pm.environment.get(\"client_secret\")","","","const postRequest = {","\turl: pm.collectionVariables.get(\"auth_url\") + \"/token\",","\tmethod: 'POST',","\theader: 'Content-Type:application/x-www-form-urlencoded',","\tbody:{","\t\tmode: 'raw',","\t\traw: `grant_type=client_credentials&client_id=${client_id}&client_secret=${client_secret}&scope=openid`","\t}","}","\tpm.sendRequest(postRequest, (error, response) => {","\t\tconsole.log(error ? error : response.json());","\t\tpm.environment.set('access_token', response.json().access_token)","","\t\tvar expiryDate = new Date();","\t\texpiryDate.setSeconds(expiryDate.getSeconds() + response.json().expires_in);","\t\tpm.environment.set('accessTokenExpiry', expiryDate.getTime());","\t});","}",""]}},{"listen":"test","script":{"id":"64a7866f-b017-4865-aab1-b88f782b7f6c","type":"text/javascript","exec":[""]}}],"variable":[{"key":"auth_url","value":"https://login.acenda.io/auth/realms/acenda/protocol/openid-connect","type":"string"},{"key":"url","value":"https://api.acenda.io","type":"string"}]}