{"info":{"_postman_id":"0ae499af-be85-408c-bef6-86f5fd1deb0f","name":"Enervee Fulfillment API","description":"<html><head></head><body><h2 id=\"base-urls\">Base URLs</h2>\n<p>dev: <a href=\"https://commerce-uat.enervee.com/\">https://commerce-uat.enervee.com</a></p>\n<p>production: <a href=\"https://commerce.enervee.com/\">https://commerce.enervee.com</a></p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>Authentication is via an API token. Enervee will supply separate tokens for dev and prod.</p>\n<p>A request to the API requires an Authentication header</p>\n<p>The header should have the key \"Authorization\" and value \"Token <code>token-given-by-Enervee</code>\"</p>\n<h3 id=\"authentication-examples\">Authentication examples</h3>\n<p>Here's an example request to the order status endpoint, in CURL syntax:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl -X GET -H \"Authorization: Token &lt;token&gt;\" \"https://commerce-uat.enervee.com/api/fulfillment/orders/\"\n\n</code></pre>\n<p>Or with a fake token:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl -X GET -H \"Authorization: Token 989393939393939a65\" \"https://commerce-uat.enervee.com/api/fulfillment/orders/158288-001\"\n\n</code></pre>\n<h2 id=\"conventions\">Conventions</h2>\n<p>This documentation uses some conventions in notation:</p>\n<ul>\n<li><p><code>NRV1234</code>: identifiers starting with <code>NRV</code> denote Enervee order numbers.</p>\n</li>\n<li><p><code>FFL1234</code>: identifiers starting with <code>FFL</code> denote Fulfillment Partner order numbers.</p>\n</li>\n<li><p><code>SRL1234</code>: identifiers starting with <code>SRL</code> denote product serial numbers.</p>\n</li>\n<li><p><code>UPS1234</code>, <code>FEDEX1234</code>: shipment tracking identifiers start with a carrier’s short name.</p>\n</li>\n<li><p><code>sku</code>: is the fulfillment partner SKU ID, ie not the Enervee SKU ID.</p>\n</li>\n</ul>\n<h2 id=\"order-cancelation\">Order cancelation</h2>\n<p>Order cancellation is currently a manual process.</p>\n<p>When the user requests order cancelation with Enervee, Enervee customer support will email the Fulfillment Partner’s customer support with a cancelation request for the order, including the order’s external order number for reference. Once Enervee receives confirmation of the cancelation from the Fulfillment Partner, Enervee will cancel the order internally.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"45386809","collectionId":"0ae499af-be85-408c-bef6-86f5fd1deb0f","publishedId":"2sB2qdgzop","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"017AFF"},"publishDate":"2025-05-28T21:03:21.000Z"},"item":[{"name":"Retrieve Orders","id":"15105083-40ce-4474-8d38-baf0050d823c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Token ","type":"text"}],"url":"https://commerce-uat.enervee.com/api/fulfillment/orders?after=2025-05-27T00:00&before=2025-05-28T00:00&partner_code=appliance-retailer-01","description":"<p>As orders enter a fulfillable state, they will become available at the <code>orders</code> endpoint.</p>\n<p>We suggest polling for new orders in the last hour, or however long you want to wait in between polling for orders. Most of our partners pull orders hourly.</p>\n<h2 id=\"endpoint\">Endpoint:</h2>\n<p><code>GET /api/fulfillment/orders</code></p>\n<h2 id=\"url-parameters\">URL Parameters:</h2>\n<ul>\n<li><p><code>partner_code</code> (required, <code>str</code>):<br />  Your partner code as assigned by Enervee. One API access token may be associated with multiple fulfillment partner IDs. For example, if one fulfillment partner has multiple platforms which may interact with Enervee, each platform may receive its own <code>partner_code</code>.</p>\n</li>\n<li><p>specific date range:</p>\n<ul>\n<li><p><code>after</code> (required, <code>datetime</code> format <code>YYYY-MM-DDThh:mm[:ss[.uuuuuu]]</code>):<br />  Return orders updated after this time.</p>\n</li>\n<li><p><code>before</code> (optional, <code>datetime</code> format <code>YYYY-MM-DDThh:mm[:ss[.uuuuuu]]</code>, default <code>now</code>):<br />  Return orders updated before this time.</p>\n</li>\n</ul>\n</li>\n<li><p>last <code>x</code> hours:</p>\n<ul>\n<li><code>after</code> (required, -xh hours format <code>-#h</code>, ex: <code>-5h</code>): Return orders updated within the last <code>x</code> hours</li>\n</ul>\n</li>\n</ul>\n<p>The maximum time span that can be requested is 7 days.</p>\n<h2 id=\"potential-errors\">Potential errors:</h2>\n<ul>\n<li><p>If <code>after</code> or <code>partner_code</code> parameters are omitted, we return <code>HTTP 400</code></p>\n</li>\n<li><p>If <code>after</code> and <code>before</code> specify a time period longer than 7 days, we return <code>HTTP 400</code></p>\n</li>\n<li><p>If <code>after</code> is a time after <code>before</code>, we return <code>HTTP 400</code></p>\n</li>\n<li><p>If <code>partner_code</code> is incorrect for the user, we return <code>HTTP 400</code></p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"0ae499af-be85-408c-bef6-86f5fd1deb0f","id":"0ae499af-be85-408c-bef6-86f5fd1deb0f","name":"Enervee Fulfillment API","type":"collection"}},"urlObject":{"path":["api","fulfillment","orders"],"host":["https://commerce-uat.enervee.com"],"query":[{"key":"after","value":"2025-05-27T00:00"},{"key":"before","value":"2025-05-28T00:00"},{"key":"partner_code","value":"appliance-retailer-01"}],"variable":[]}},"response":[{"id":"0aabbc8e-4b99-4a41-864f-552cff8b10ff","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token ","type":"text"}],"url":{"raw":"https://commerce-uat.enervee.com/api/fulfillment/orders?after=2025-05-27T00:00&before=2025-05-28T00:00&partner_code=appliance-retailer-01","host":["https://commerce-uat.enervee.com"],"path":["api","fulfillment","orders"],"query":[{"key":"after","value":"2025-05-27T00:00"},{"key":"before","value":"2025-05-28T00:00"},{"key":"partner_code","value":"appliance-retailer-01"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"[\n  {\n    \"order_number\": \"NRV0123456\",\n    \"status\": \"fulfillment_pending\",\n    \"customer\": {\n      \"first_name\": \"John\",\n      \"last_name\": \"Doe\",\n      \"phone_number\": \"+1-555-123-4567\",\n      \"email\": \"customer@enervee.com\",\n      \"shipping_address\": {\n        \"address_1\": \"1 Address Line\",\n        \"address_2\": \"\",\n        \"city\": \"Some City\",\n        \"state\": \"CA\",\n        \"zip_code\": \"12345\",\n        \"country\": \"US\"\n      }\n    },\n    \"products\": [\n      {\n        \"sku\": \"SKU10001\",\n        \"quantity\": 1,\n        \"status\": \"fulfillment_pending\"\n      },\n      {\n        \"sku\": \"SKU10002\",\n        \"quantity\": 2,\n        \"status\": \"fulfillment_pending\"\n      }\n    ]\n  }\n]"},{"id":"1bdec5ac-476d-45e1-878b-4b66ed71aec5","name":"Missing Parameters","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token ","type":"text"}],"url":{"raw":"https://commerce-uat.enervee.com/api/fulfillment/orders?before=2025-05-28T00:00","host":["https://commerce-uat.enervee.com"],"path":["api","fulfillment","orders"],"query":[{"key":"before","value":"2025-05-28T00:00"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"partner_code\": [\n        \"This field is required.\"\n    ],\n    \"after\": [\n        \"This field is required.\"\n    ]\n}"},{"id":"7a532115-cc9f-4490-bf02-27d27107667f","name":"Date Range Too Large","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token ","type":"text"}],"url":{"raw":"https://commerce-uat.enervee.com/api/fulfillment/orders?after=2025-05-01T00:00&before=2025-05-28T00:00&partner_code=appliance-retailer-01","host":["https://commerce-uat.enervee.com"],"path":["api","fulfillment","orders"],"query":[{"key":"after","value":"2025-05-01T00:00"},{"key":"before","value":"2025-05-28T00:00"},{"key":"partner_code","value":"appliance-retailer-01"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"non_field_errors\": [\n        \"Date range is too large. Limit is 7 days.\"\n    ]\n}"},{"id":"9629a00f-9b17-40f3-ba9c-656abea89178","name":"Invalid Date Parameter","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token ","type":"text"}],"url":{"raw":"https://commerce-uat.enervee.com/api/fulfillment/orders?after=2025-05-27T00:00&before=2025-05-18T00:00&partner_code=appliance-retailer-01","host":["https://commerce-uat.enervee.com"],"path":["api","fulfillment","orders"],"query":[{"key":"after","value":"2025-05-27T00:00"},{"key":"before","value":"2025-05-18T00:00"},{"key":"partner_code","value":"appliance-retailer-01"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"after\": [\n        \"Must be before: 2025-05-18 00:00:00+00:00\"\n    ]\n}"},{"id":"4cab73b9-dab9-4a8b-9380-8b6ea4de0122","name":"Unauthorized Partner","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Token ","type":"text"}],"url":{"raw":"https://commerce-uat.enervee.com/api/fulfillment/orders?after=2025-05-27T00:00&before=2025-05-28T00:00&partner_code=partner2","host":["https://commerce-uat.enervee.com"],"path":["api","fulfillment","orders"],"query":[{"key":"after","value":"2025-05-27T00:00"},{"key":"before","value":"2025-05-28T00:00"},{"key":"partner_code","value":"partner2"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"partner_code\": [\n        \"User not authorized to access this partner.\"\n    ]\n}"}],"_postman_id":"15105083-40ce-4474-8d38-baf0050d823c"},{"name":"Acknowledge Single Order","id":"c28b9972-f1a2-47be-bc73-bdb7ac496dab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"external_order_number\": \"test_order_01\"\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/TEST-ORDER-001/acknowledge","description":"<p>This request acknowledges an order.</p>\n<p>Note that there are two options for acknowledging received orders back to Enervee, each with pros and cons. A single order can be acknowledged at a time (this request), returning clear success and failure responses for each attempt, at the cost of performance with having to make multiple HTTP calls for multiple orders. Alternatively, multiple orders can be acknowledged with a single call (see the <code>Acknowledge Multiple Orders</code> request below), but any issues with any of the orders will prevent all submitted orders from being processed.</p>\n<h2 id=\"endpoint\"><strong>Endpoint:</strong></h2>\n<p><code>PUT /api/fulfillment/orders/{order_number}/acknowledge</code></p>\n<h2 id=\"potential-errors\">Potential errors:</h2>\n<ul>\n<li><p>If the order requested is not found, we return <code>HTTP 404</code> with the <code>order_number</code> that was not found</p>\n</li>\n<li><p>If the order requested already has an external order number assigned, we return <code>HTTP 400</code> containing the current external order number</p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"0ae499af-be85-408c-bef6-86f5fd1deb0f","id":"0ae499af-be85-408c-bef6-86f5fd1deb0f","name":"Enervee Fulfillment API","type":"collection"}},"urlObject":{"path":["api","fulfillment","orders","TEST-ORDER-001","acknowledge"],"host":["https://commerce-uat.enervee.com"],"query":[],"variable":[]}},"response":[{"id":"f920215a-fad5-4401-96f3-07a842de36b1","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"external_order_number\": \"FFL123456789\"\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/acknowledge"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"order_number\": \"NRV0123456\",\n    \"external_order_number\": \"FFL123456789\"\n}"},{"id":"8199419a-084d-49ca-9476-8cfbeccea739","name":"Already Acknowledged","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"external_order_number\": \"FFL123456789\"\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/acknowledge"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"error_message\": \"Order already acknowledged\",\n  \"error_code\": \"ORDER_ALREADY_ACKNOWLEDGED\",\n  \"order_number\": \"NRV0123456\",\n  \"external_order_number\": \"FFL123456789\"\n}"},{"id":"4e3f9020-1d9d-4076-96f2-ce2650308554","name":"Order Not Found","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"external_order_number\": \"test_order_01\"\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/acknowledge"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"error_message\": \"Order not found\",\n  \"error_code\": \"ORDER_NOT_FOUND\",\n  \"order_number\": \"NRV0123456\"\n}"}],"_postman_id":"c28b9972-f1a2-47be-bc73-bdb7ac496dab"},{"name":"Acknowledge Multiple Orders","id":"35a8324a-968f-4be7-82aa-169e853cc5e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\n  {\n      \"order_number\": \"NRV0123456\",\n      \"external_order_number\": \"FFL123456789\"\n  },\n  {\n      \"order_number\": \"NRV0123457\",\n      \"external_order_number\": \"FFL123456788\"\n  }\n]","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/acknowledge","description":"<p>This endpoint acknowledges multiple orders with a single call.</p>\n<p>Note that any issues with any of the orders will prevent all submitted orders from being processed.</p>\n<h2 id=\"endpoint\"><strong>Endpoint:</strong></h2>\n<p><code>POST /api/fulfillment/orders/acknowledge</code></p>\n<h2 id=\"potential-errors\">Potential errors:</h2>\n<ul>\n<li><p>If <em>any</em> order listed is not found, we return <code>HTTP 404</code> with each <code>order_number</code> that was not found</p>\n</li>\n<li><p>If <em>any</em> order listed already has an external order number assigned, we return <code>HTTP 400</code> with each <code>order_number</code> that has already been acknowledged, along with its current external order number</p>\n</li>\n<li><p>The above two scenarios may be combined if both situations occur simultaneously</p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"0ae499af-be85-408c-bef6-86f5fd1deb0f","id":"0ae499af-be85-408c-bef6-86f5fd1deb0f","name":"Enervee Fulfillment API","type":"collection"}},"urlObject":{"path":["api","fulfillment","orders","acknowledge"],"host":["https://commerce-uat.enervee.com"],"query":[],"variable":[]}},"response":[{"id":"6a0433ae-1313-4f73-b2b2-5338f765d8cc","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\n  {\n      \"order_number\": \"NRV0123456\",\n      \"external_order_number\": \"FFL123456789\"\n  },\n  {\n      \"order_number\": \"NRV0123457\",\n      \"external_order_number\": \"FFL123456788\"\n  }\n]","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/acknowledge"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"[\n  {\n    \"order_number\": \"NRV0123456\",\n    \"external_order_number\": \"FFL123456789\"\n  },\n  {\n    \"order_number\": \"NRV0123457\",\n    \"external_order_number\": \"FFL123456788\"\n  }\n]"},{"id":"c87d9cd4-700b-4ffd-9037-6c236c7a8fdf","name":"Order Not Found","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\n  {\n      \"order_number\": \"NRV0123456\",\n      \"external_order_number\": \"FFL123456789\"\n  },\n  {\n      \"order_number\": \"NRV0123457\",\n      \"external_order_number\": \"FFL123456788\"\n  }\n]","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/acknowledge"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"[\n  {\n    \"error\": \"Order not found\",\n    \"order_number\": \"NRV0123456\",\n  }\n]"},{"id":"248e72c3-9b9a-4b53-8d9a-f1d7107e2844","name":"Order Already Acknowledged","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\n  {\n      \"order_number\": \"NRV0123456\",\n      \"external_order_number\": \"FFL123456789\"\n  },\n  {\n      \"order_number\": \"NRV0123457\",\n      \"external_order_number\": \"FFL123456788\"\n  }\n]","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/acknowledge"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"[\n  {\n    \"error_message\": \"Order already acknowledged\",\n    \"error_code\": \"ORDER_ALREADY_ACKNOWLEDGED\",\n    \"order_number\": \"NRV0123456\",\n    \"external_order_number\": \"FFL123456789\"\n  }\n]"},{"id":"0d372c6f-0d9d-47c8-b70c-aea02e3eb147","name":"Combination Error","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\n  {\n      \"order_number\": \"NRV0123456\",\n      \"external_order_number\": \"FFL123456789\"\n  },\n  {\n      \"order_number\": \"NRV0123457\",\n      \"external_order_number\": \"FFL123456788\"\n  }\n]","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/acknowledge"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"[\n  {\n    \"error_message\": \"Order not found\",\n    \"error_code\": \"ORDER_NOT_FOUND\",\n    \"order_number\": \"NRV0123456\",\n  },\n  {\n    \"error_message\": \"Order already acknowledged\",\n    \"error_code\": \"ORDER_ALREADY_ACKNOWLEDGED\",\n    \"order_number\": \"NRV0123457\",\n    \"external_order_number\": \"FFL123456789\"\n  }\n]"}],"_postman_id":"35a8324a-968f-4be7-82aa-169e853cc5e1"},{"name":"Order Status","id":"99384e82-36a1-4859-8e63-e21f8574dd6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/TEST-ORDER-001","description":"<p>To facilitate development and debugging, we provide an order details endpoint that will provide the comprehensive state of an order. This endpoint will not be used in the normal flow of processing an order, but may be useful for gleaning insights into the process or for debugging errors.</p>\n<h2 id=\"endpoint\">Endpoint:</h2>\n<p><code>GET /api/fulfillment/orders/{order_number}</code></p>\n<h2 id=\"notes-on-response-fields\">Notes on response fields:</h2>\n<ul>\n<li><p><code>external_order_number</code> may be an empty string if the fulfillment partner has not acknowledged the order yet.</p>\n</li>\n<li><p><code>status</code> may be any of <code>fulfillment_pending</code>, <code>shipped</code>, <code>settled</code>, <code>settled_cancel</code>, <code>settled_partial_return</code>, <code>settled_return</code>, or <code>error</code>.</p>\n</li>\n<li><p><code>products[].status</code> may be any of <code>fulfillment_pending</code>, <code>fulfillment_in_progress</code>, <code>shipped</code>, <code>delivered</code>, <code>return_fulfillment_pending</code>, <code>return_fulfillment_failed</code>, <code>returned</code>, <code>cancel_pending_fulfillment_partner</code>, or <code>canceled</code>.</p>\n</li>\n<li><p><code>products[].serial_numbers</code> is optional and dependent on the fulfillment partner providing such information to us. When present, the number of serial numbers will match the accompanying <code>products[].quantity</code>.</p>\n</li>\n</ul>\n<h2 id=\"potential-errors\">Potential errors:</h2>\n<ul>\n<li>If the order requested is not found, we return <code>HTTP 404</code> with the <code>order_number</code> that was not found</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"0ae499af-be85-408c-bef6-86f5fd1deb0f","id":"0ae499af-be85-408c-bef6-86f5fd1deb0f","name":"Enervee Fulfillment API","type":"collection"}},"urlObject":{"path":["api","fulfillment","orders","TEST-ORDER-001"],"host":["https://commerce-uat.enervee.com"],"query":[],"variable":[]}},"response":[{"id":"dd97d96b-807b-48d5-a3db-0dfe56bc6a27","name":"Success","originalRequest":{"method":"GET","header":[],"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"order_number\": \"NRV0123456\",\n  \"external_order_number\": \"FFL123456789\",\n  \"status\": \"settled_partial_return\",\n  \"customer\": {\n    \"first_name\": \"John\",\n    \"last_name\": \"Doe\",\n    \"phone_number\": \"+1-555-123-4567\",\n    \"email\": \"customer@enervee.com\",\n    \"shipping_address\": {\n      \"address_1\": \"1 Address Line\",\n      \"address_2\": \"\",\n      \"city\": \"Some City\",\n      \"state\": \"CA\",\n      \"zip_code\": \"12345\",\n      \"country\": \"US\"\n    }\n  },\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"quantity\": 2,\n      \"serial_numbers\": [\"SRL1234567890\", \"SRL1234567891\"],\n      \"status\": \"delivered\"\n    },\n    {\n      \"sku\": \"SKU10002\",\n      \"quantity\": 1,\n      \"serial_numbers\": [\"SRL1234567892\"],\n      \"status\": \"delivered\"\n    },\n    {\n      \"sku\": \"SKU10002\",\n      \"quantity\": 1,\n      \"serial_numbers\": [\"SRL1234567893\"],\n      \"status\": \"returned\"\n    }\n  ]\n}"},{"id":"7b2a7ad6-d2a0-4faa-81d4-0998ee6b0e10","name":"Order Not Found","originalRequest":{"method":"GET","header":[],"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"error_message\": \"Order not found\",\n  \"error_code\": \"ORDER_NOT_FOUND\",\n  \"order_number\": \"NRV0123456\"\n}"}],"_postman_id":"99384e82-36a1-4859-8e63-e21f8574dd6d"},{"name":"Shipments","id":"f3ca3cdf-5f77-4cc7-94e9-4cc8a57c9058","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"external_order_number\": \"test_order_01\",\n    \"products\": [\n        {\n            \"sku\": \"NST03848\",\n            \"quantity\": 1,\n            \"serial_numbers\": [\"SRL001\"],\n            \"carrier\": \"UPS\",\n            \"tracking_number\": \"UPS1234\",\n            \"shipping_method\": \"2-day shipping\",\n            \"date_shipped\": \"2025-04-07\",\n            \"freight_cost\": 19.99\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/TEST-ORDER-001/shipments","description":"<h2 id=\"endpoint\">Endpoint:</h2>\n<p><code>POST /api/fulfillment/orders/{order_number}/shipments</code></p>\n<ul>\n<li><p>Shipping details must be provided per-product. If multiple products are shipped together, shipping details for the single shipment must be provided separately for each product in the shipment.</p>\n</li>\n<li><p>If a shipped product has a serial number, it should be provided alongside shipping details.</p>\n</li>\n<li><p><code>serial_numbers</code> is optional. If present, the number of serial numbers provided must match the quantity of products being notified as “shipped”.</p>\n</li>\n</ul>\n<h2 id=\"potential-errors\">Potential errors:</h2>\n<ul>\n<li><p>If the order requested is not found, we return <code>HTTP 404</code> with the <code>order_number</code> that was not found</p>\n</li>\n<li><p>If the <code>external_order_number</code> provided does not match the <code>external_order_number</code> on the specified order, we return <code>HTTP 400</code> with error details specifying the <code>order_number</code> and the invalid <code>external_order_number</code></p>\n</li>\n<li><p>If the specified order has not been acknowledged, we return <code>HTTP 400</code></p>\n</li>\n<li><p>If specified product(s) (by <code>sku</code>) are not associated with the given order, we return <code>HTTP 404</code></p>\n</li>\n<li><p>If given product(s) specifies <code>serial_numbers</code> in number not matching <code>quantity</code>, we return <code>HTTP 400</code></p>\n</li>\n<li><p>If specified product(s) (by <code>sku</code>) contain duplicates in <code>serial_numbers</code>, we return <code>HTTP 400</code> with the <code>serial_numbers</code> that are duplicated</p>\n</li>\n<li><p>If specified product(s) (by <code>sku</code>) have a specified <code>quantity</code> greater the the quantity available to be shipped (regardless of <code>serial_numbers</code> presence), we return <code>HTTP 400</code></p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"0ae499af-be85-408c-bef6-86f5fd1deb0f","id":"0ae499af-be85-408c-bef6-86f5fd1deb0f","name":"Enervee Fulfillment API","type":"collection"}},"urlObject":{"path":["api","fulfillment","orders","TEST-ORDER-001","shipments"],"host":["https://commerce-uat.enervee.com"],"query":[],"variable":[]}},"response":[{"id":"ab92cd54-45c8-41ea-8b62-cbc53c36e5be","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1,\n      \"carrier\": \"UPS\",\n      \"tracking_number\": \"UPS0001234567890\",\n      \"shipping_method\": \"UPS Ground Shipping\",\n      \"date_shipped\": \"2021-01-30\",\n      \"freight_cost\": 19.99\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/shipments"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"order_number\": \"NRV0123456\",\n  \"external_order_number\": \"FFL123456789\",\n  \"status\": \"shipped\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1,\n      \"status\": \"shipped\"\n    },\n    {\n      \"sku\": \"SKU10002\",\n      \"quantity\": 2,\n      \"status\": \"fulfillment_in_progress\"\n    }\n  ]\n}"},{"id":"7f84c753-53d8-47fb-b7fc-6599ebd86290","name":"Order Not Found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1,\n      \"carrier\": \"UPS\",\n      \"tracking_number\": \"UPS0001234567890\",\n      \"shipping_method\": \"UPS Ground Shipping\",\n      \"date_shipped\": \"2021-01-30\",\n      \"freight_cost\": 19.99\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/shipments"},"status":"Not Found","code":404,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"error_message\": \"Order not found\",\n  \"error_code\": \"ORDER_NOT_FOUND\",\n  \"order_number\": \"NRV0123456\"\n}"},{"id":"8aee84e1-da36-463a-a54b-30f1bb26ef08","name":"External Order Mismatch","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1,\n      \"carrier\": \"UPS\",\n      \"tracking_number\": \"UPS0001234567890\",\n      \"shipping_method\": \"UPS Ground Shipping\",\n      \"date_shipped\": \"2021-01-30\",\n      \"freight_cost\": 19.99\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/shipments"},"status":"Not Found","code":404,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"error_message\": \"Order number does not match our records for this order\",\n  \"error_code\": \"ORDER_NUMBER_MISMATCH\",\n  \"order_number\": \"NRV0123456\",\n  \"external_order_number\": \"FFL123456789\"\n}"},{"id":"4f75c136-6dcf-41f1-bfc4-3518f4bc7ef6","name":"Order Not Yet Acknowledged","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1,\n      \"carrier\": \"UPS\",\n      \"tracking_number\": \"UPS0001234567890\",\n      \"shipping_method\": \"UPS Ground Shipping\",\n      \"date_shipped\": \"2021-01-30\",\n      \"freight_cost\": 19.99\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/shipments"},"status":"Bad Request","code":400,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"error_message\": \"Order has not been acknowledged yet\",\n  \"error_code\": \"ORDER_NOT_ACKNOWLEDGED\",\n  \"order_number\": \"NRV0123456\",\n  \"external_order_number\": \"FFL123456789\"\n}"},{"id":"83199683-c66e-4bb8-934a-74b1b450e3e4","name":"SKU Not Found In Order","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1,\n      \"carrier\": \"UPS\",\n      \"tracking_number\": \"UPS0001234567890\",\n      \"shipping_method\": \"UPS Ground Shipping\",\n      \"date_shipped\": \"2021-01-30\",\n      \"freight_cost\": 19.99\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/shipments"},"status":"Not Found","code":404,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"error_message\": \"Product(s) not found in order\",\n  \"error_code\": \"ORDER_PRODUCTS_NOT_FOUND\",\n  \"order_number\": \"NRV0123456\",\n  \"external_order_number\": \"FFL123456789\"\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1\n    }\n  ]\n}"},{"id":"df0ede16-ed6a-48c2-bdbf-7f6273cb6f0d","name":"SKU Quantity Mismatch","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1,\n      \"carrier\": \"UPS\",\n      \"tracking_number\": \"UPS0001234567890\",\n      \"shipping_method\": \"UPS Ground Shipping\",\n      \"date_shipped\": \"2021-01-30\",\n      \"freight_cost\": 19.99\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/shipments"},"status":"Bad Request","code":400,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"error_message\": \"Product(s) contain incorrect serial number quantity\",\n  \"error_code\": \"ORDER_PRODUCTS_SERIAL_NUMBERS_BAD_QUANTITY\",\n  \"order_number\": \"NRV0123456\",\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 2\n    }\n  ]\n}"},{"id":"501ac26b-6c36-4b85-88fd-2dc582470e97","name":"Duplicate Serial Numbers","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\", \"SRL1234567890\"],\n      \"quantity\": 2,\n      \"carrier\": \"UPS\",\n      \"tracking_number\": \"UPS0001234567890\",\n      \"shipping_method\": \"UPS Ground Shipping\",\n      \"date_shipped\": \"2021-01-30\",\n      \"freight_cost\": 19.99\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/shipments"},"status":"Bad Request","code":400,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"error_message\": \"Product(s) contain duplicate serial numbers\",\n  \"error_code\": \"ORDER_PRODUCTS_SERIAL_NUMBERS_DUPLICATED\",\n  \"order_number\": \"NRV0123456\",\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\", \"SRL1234567890\"],\n      \"quantity\": 2\n    }\n  ]\n}"},{"id":"4fb3df83-cf3c-45e8-ae14-99afe9cd9d3b","name":"Insufficient Quantity","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1,\n      \"carrier\": \"UPS\",\n      \"tracking_number\": \"UPS0001234567890\",\n      \"shipping_method\": \"UPS Ground Shipping\",\n      \"date_shipped\": \"2021-01-30\",\n      \"freight_cost\": 19.99\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/shipments"},"status":"Bad Request","code":400,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"error_message\": \"Product(s) do not have sufficient shippable quantity\",\n  \"error_code\": \"ORDER_PRODUCTS_INSUFFICIENT_SHIPPABLE_QUANTITY\",\n  \"order_number\": \"NRV0123456\",\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1\n    }\n  ]\n}"}],"_postman_id":"f3ca3cdf-5f77-4cc7-94e9-4cc8a57c9058"},{"name":"Returns","id":"bee374f7-e94c-4d15-a76e-eb9e9cd09648","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"external_order_number\": \"test_fulfillment_order_789\",\n    \"products\": [\n        {\n            \"sku\": \"6380840\",\n            \"quantity\": 1,\n            \"serial_numbers\": [\"SRL001\"]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/TEST-ORDER-001/returns","description":"<h2 id=\"endpoint\">Endpoint:</h2>\n<p><code>POST /api/fulfillment/orders/{order_number}/returns</code></p>\n<ul>\n<li><p><code>serial_numbers</code> is optional, but MUST be included if the returned products were notified to us as “shipped” with a serial number.</p>\n</li>\n<li><p>If provided, the number of serial numbers must match the quantity of products being notified as “returned”.</p>\n</li>\n</ul>\n<h2 id=\"potential-errors\">Potential errors:</h2>\n<ul>\n<li><p>If the order requested is not found, we return <code>HTTP 404</code> with the <code>order_number</code> that was not found</p>\n</li>\n<li><p>If the <code>external_order_number</code> provided does not match the <code>external_order_number</code> on the specified order, we return <code>HTTP 400:</code></p>\n</li>\n<li><p>If the specified order has not been acknowledged, we return <code>HTTP 400</code></p>\n</li>\n<li><p>If specified product(s) (by <code>sku</code>) are not associated with the given order, we return <code>HTTP 404</code></p>\n</li>\n<li><p>If given product(s) specifies <code>serial_numbers</code> in number not matching <code>quantity</code>, we return <code>HTTP 400</code></p>\n</li>\n<li><p>If specified product(s) (by <code>sku</code>) contain duplicates in <code>serial_numbers</code>, we return <code>HTTP 400</code> with the <code>serial_numbers</code> that are duplicated</p>\n</li>\n<li><p>If specified product(s) (by <code>sku</code>) contain no <code>serial_numbers</code> field, but were shipped with serial numbers, we return <code>HTTP 400</code> with the products requiring serial numbers for return</p>\n</li>\n<li><p>If specified product(s) (by <code>sku</code>) specify any <code>serial_numbers</code> that are not found in their shipping history, we return <code>HTTP 400</code> with the specified <code>serial_numbers</code> that have not been shipped yet</p>\n</li>\n<li><p>If specified product(s) (by <code>sku</code>) are already fully marked as <code>returned</code>, we return <code>HTTP 400</code> with the products that have no returnable quantity</p>\n</li>\n<li><p>If specified product(s) (by <code>sku</code>) have a specified <code>quantity</code> greater than the quantity available to be returned (regardless of <code>serial_numbers</code> presence), we return <code>HTTP 400</code></p>\n</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"0ae499af-be85-408c-bef6-86f5fd1deb0f","id":"0ae499af-be85-408c-bef6-86f5fd1deb0f","name":"Enervee Fulfillment API","type":"collection"}},"urlObject":{"path":["api","fulfillment","orders","TEST-ORDER-001","returns"],"host":["https://commerce-uat.enervee.com"],"query":[],"variable":[]}},"response":[{"id":"4fd99355-5a38-4f82-9c31-fcf23729298a","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/returns"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"order_number\": \"NRV0123456\",\n  \"external_order_number\": \"FFL123456789\",\n  \"status\": \"settled_partial_return\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"status\": \"returned\",\n      \"quantity\": 1\n    },\n    {\n      \"sku\": \"SKU10002\",\n      \"status\": \"shipped\",\n      \"serial_numbers\": [\"SRL1234567891\"],\n      \"quantity\": 1\n    },\n    {\n      \"sku\": \"SKU10002\",\n      \"status\": \"delivered\",\n      \"serial_numbers\": [\"SRL1234567892\"],\n      \"quantity\": 1\n    }\n  ]\n}"},{"id":"da55fb00-2dac-4bf9-a8f3-eea31f3841b3","name":"Order Not Found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/returns"},"status":"Not Found","code":404,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"error_message\": \"Order not found\",\n  \"error_code\": \"ORDER_NOT_FOUND\",\n  \"order_number\": \"NRV0123456\"\n}"},{"id":"62f61893-c620-446a-94d8-2d96d38bac2e","name":"External Order Mismatch","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/returns"},"status":"Bad Request","code":400,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"error_message\": \"Order number does not match our records for this order\",\n  \"error_code\": \"ORDER_NUMBER_MISMATCH\",\n  \"order_number\": \"NRV0123456\",\n  \"external_order_number\": \"FFL123456789\"\n}"},{"id":"e3514788-4275-4551-a781-722259abbcf3","name":"Order Not Yet Acknowledged","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/returns"},"status":"Bad Request","code":400,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"error_message\": \"Order has not been acknowledged yet\",\n  \"error_code\": \"ORDER_NOT_ACKNOWLEDGED\",\n  \"order_number\": \"NRV0123456\",\n  \"external_order_number\": \"FFL123456789\"\n}"},{"id":"74f2e22d-d00b-408d-b324-1a7ca300f215","name":"Serial Number Not Yet Shipped","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/returns"},"status":"Bad Request","code":400,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"error_message\": \"Product(s) contain unshipped serial numbers\",\n  \"error_code\": \"ORDER_PRODUCTS_SERIAL_NUMBERS_NOT_SHIPPED\",\n  \"order_number\": \"NRV0123456\",\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1\n    }\n  ]\n}"},{"id":"9c19fca9-ccb9-4ee9-96a6-754ff028a323","name":"Missing Serial Number","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"quantity\": 1\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/returns"},"status":"Bad Request","code":400,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"error_message\": \"Product(s) shipped with serial numbers must be returned with serial numbers\",\n  \"error_code\": \"ORDER_PRODUCTS_SERIAL_NUMBER_REQUIRED\",\n  \"order_number\": \"NRV0123456\",\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"quantity\": 2\n    }\n  ]\n}"},{"id":"cad7905b-ebb3-46b0-8480-7bc728914bfc","name":"Serial Number Quantity Mismatch","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 2\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/returns"},"status":"Bad Request","code":400,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"error_message\": \"Product(s) contain incorrect serial number quantity\",\n  \"error_code\": \"ORDER_PRODUCTS_SERIAL_NUMBERS_BAD_QUANTITY\",\n  \"order_number\": \"NRV0123456\",\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 2\n    }\n  ]\n}"},{"id":"451feac3-5de6-4393-9085-9ab861330995","name":"Serial Number Duplicates","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\", \"SRL1234567890\"],\n      \"quantity\": 2\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/returns"},"status":"Bad Request","code":400,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"error_message\": \"Product(s) contain incorrect serial number quantity\",\n  \"error_code\": \"ORDER_PRODUCTS_SERIAL_NUMBERS_BAD_QUANTITY\",\n  \"order_number\": \"NRV0123456\",\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 2\n    }\n  ]\n}"},{"id":"59a0aba6-e5d9-4f3a-83ab-a3f21cf263da","name":"Product SKUs Not In Order","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/returns"},"status":"Not Found","code":404,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"error_message\": \"Product(s) not found in order\",\n  \"error_code\": \"ORDER_PRODUCTS_NOT_FOUND\",\n  \"order_number\": \"NRV0123456\",\n  \"external_order_number\": \"FFL123456789\"\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1\n    }\n  ]\n}"},{"id":"6eec4447-f8cf-4585-b988-98c0b0e33daf","name":"Product Already Returned","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/returns"},"status":"Bad Request","code":400,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"error_message\": \"Product(s) contain unshipped serial numbers\",\n  \"error_code\": \"ORDER_PRODUCTS_SERIAL_NUMBERS_NOT_SHIPPED\",\n  \"order_number\": \"NRV0123456\",\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1\n    }\n  ]\n}"},{"id":"d8343404-99bb-4786-8605-effe265a4c53","name":"Product Has Insufficient Quantity To Return","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/orders/NRV0123456/returns"},"status":"Bad Request","code":400,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"error_message\": \"Product(s) do not have sufficient returnable quantity\",\n  \"error_code\": \"ORDER_PRODUCTS_INSUFFICIENT_RETURNABLE_QUANTITY\",\n  \"order_number\": \"NRV0123456\",\n  \"external_order_number\": \"FFL123456789\",\n  \"products\": [\n    {\n      \"sku\": \"SKU10001\",\n      \"serial_numbers\": [\"SRL1234567890\"],\n      \"quantity\": 1\n    }\n  ]\n}"}],"_postman_id":"bee374f7-e94c-4d15-a76e-eb9e9cd09648"},{"name":"Inventory Update","id":"797ccf26-972c-4dc0-8407-4fd561821dc0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"num_in_stock\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/inventory/SKU123/update","description":"<p>This request updates the inventory count of a single product SKU.</p>\n<h2 id=\"endpoint\"><strong>Endpoint:</strong></h2>\n<p><code>PUT /api/fulfillment/incentory/{sku}/update</code></p>\n<h2 id=\"potential-errors\">Potential errors:</h2>\n<ul>\n<li>If the SKU is not found, we return <code>HTTP 404</code> with the sku that was not found</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]},"isInherited":true,"source":{"_postman_id":"0ae499af-be85-408c-bef6-86f5fd1deb0f","id":"0ae499af-be85-408c-bef6-86f5fd1deb0f","name":"Enervee Fulfillment API","type":"collection"}},"urlObject":{"path":["api","fulfillment","inventory","SKU123","update"],"host":["https://commerce-uat.enervee.com"],"query":[],"variable":[]}},"response":[{"id":"0aea5cce-ec9a-4206-b7cc-adde6cbfce7b","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"num_in_stock\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/inventory/SKU123/update"},"status":"OK","code":200,"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"partner_sku\": \"SKU123\",\n  \"num_in_stock\": 1\n}"},{"id":"e2f92bb4-479b-4449-903d-f62cd0e9b899","name":"SKU Not Found","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"num_in_stock\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://commerce-uat.enervee.com/api/fulfillment/inventory/SKU555/update"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"error_message\": \"Stock Record not found\",\n  \"error_code\": \"STOCK_RECORD_NOT_FOUND\",\n  \"sku\": \"SKU123\"\n}"}],"_postman_id":"797ccf26-972c-4dc0-8407-4fd561821dc0"}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"<value>"}]}},"event":[{"listen":"prerequest","script":{"id":"bceca24b-e5ae-4af1-a4ab-ac7a36f2cdb8","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"23f20417-db1f-4d8e-91c3-24c4a7e441c5","type":"text/javascript","requests":{},"exec":[""]}}],"variable":[{"key":"commerce_url","value":"https://commerce-uat.enervee.com"},{"key":"commerce_token","value":""},{"key":"email","value":""},{"key":"external_customer_id","value":"test+2245738738"},{"key":"order_id","value":"TEST-ORDER-001"},{"key":"delivery_datetime","value":""},{"key":"stockrecord_partner_sku","value":"TEST-STOCKRECORD-001"},{"key":"enervee_fulfillment_partner_code","value":"appliance-retailer-01"},{"key":"sku","value":"","type":"default"}]}