{"info":{"_postman_id":"c7220508-1f65-4601-a2a5-382e970e6d23","name":"Awp Retailer API","description":"<html><head></head><body><h3 id=\"description\"><strong>Description</strong></h3>\n<p>This API is designed to synchronize <strong>a retailer's online customer transactions</strong> with the AllureBridals ecosystem and request the status of a transaction. Additionally, the related retailer has to log in using a <code>Basic Auth</code> user password strategy to have access.</p>\n<p>All endpoints have validation responses for different situations to guide the user during the request process.</p>\n<h3 id=\"good-to-know\"><strong>Good to know</strong></h3>\n<p>The data used in the <code>request body</code> in the endpoint request is to explain how it works only, it doesn't have any relation with real data and its use in the API can lead to possible errors.</p>\n<h3 id=\"status-and-error-code\">Status and error code</h3>\n<p>Here are short explanations for the specified HTTP status codes, separated into title and description:</p>\n<h5 id=\"200-ok\"><code>200 OK</code></h5>\n<p>The request has succeeded. The information returned with the response is dependent on the method used in the request, such as GET, POST, PUT, or DELETE.</p>\n<h5 id=\"201-created\"><code>201 Created</code></h5>\n<p>The request has been fulfilled, resulting in the creation of a new resource. The response typically includes a <code>Location</code> header field containing the address of the new resource.</p>\n<h5 id=\"400-bad-request\"><code>400 Bad Request</code></h5>\n<p>The server cannot or will not process the request due to an apparent client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).</p>\n<h5 id=\"401-unauthorized\"><code>401 Unauthorized</code></h5>\n<p>The request requires user authentication. The response must include a <code>WWW-Authenticate</code> header field containing a challenge applicable to the requested resource.</p>\n<h5 id=\"404-not-found\"><code>404 Not Found</code></h5>\n<p>The server cannot find the requested resource. This status code is commonly returned when the server does not wish to reveal whether it has the requested information.</p>\n<h5 id=\"500-internal-server-error\"><code>500 Internal Server Error</code></h5>\n<p>The server encountered an unexpected condition that prevented it from fulfilling the request. This generic error message is given when no more specific message is suitable.</p>\n<h3 id=\"retailer-authentication\">Retailer authentication</h3>\n<p>All API queries require a valid username and password, like the following example. You will receive your unique values once you have confirmed with Allure Bridals that your e-commerce site is eligible for integration.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">export async function getTransactionStatus(\n  retailerId: string,\n  orderId: string,\n) {\n  const URL = `${BASE_PATH}/retailers/${retailerId}/orders/${orderId}`;\n  const headers = new Headers();\n  headers.set(\n    'Authorization',\n    'Basic ' + nextBase64.encode(RETAILER_USERNAME + ':' + RETAILER_PASSWORD),\n  );\n  const response = await fetch(URL, {\n    headers,\n  });\n  const data = await response.json();\n  return data;\n}\n\n</code></pre>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"29967774","collectionId":"c7220508-1f65-4601-a2a5-382e970e6d23","publishedId":"2sA3e5cT8b","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-07-12T18:04:24.000Z"},"item":[{"name":"Retailer sync orders","id":"9df4ce58-aec3-4520-b3cc-392798a06107","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"retailerCode\": \"MOCK01\",\n    \"data\": [\n        {\n            \"order_id\": \"1234567\",\n            \"customer_id\": \"202\",\n            \"name\": \"Alex Johnson\",\n            \"email\": \"alex@example.com\",\n            \"phone\": \"(123)456-7890\",\n            \"order_date\": \"01-01-2022\",\n            \"ship_method\": \"UPS (Ground)\",\n            \"order_currency_code\": \"EUR\",\n            \"order_notes\": \"No special instructions\",\n            \"external_document_number\": \"SO12345\",\n            \"billing_address\": {\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"company\": \"Mocked Company\",\n                \"address_1\": \"1234 Elm Street\",\n                \"address_2\": \"Apt 567\",\n                \"city\": \"Faketown\",\n                \"state\": \"CA\",\n                \"zip\": \"90210\",\n                \"country\": \"Mockland\",\n                \"phone\": \"(123)456-7890\",\n                \"email\": \"john@example.com\"\n            },\n            \"shipping_address\": {\n                \"first_name\": \"Jane\",\n                \"last_name\": \"Doe\",\n                \"company\": \"Mocked Company\",\n                \"address_1\": \"5678 Oak Street\",\n                \"address_2\": \"Suite 890\",\n                \"city\": \"Faketown\",\n                \"state\": \"CA\",\n                \"zip\": \"90210\",\n                \"country\": \"Mockland\",\n                \"phone\": \"(123)456-7890\",\n                \"email\": \"jane@example.com\"\n            },\n            \"lines\": [\n                {\n                    \"special_order\": false,\n                    \"shipping_window\": \"Express\",\n                    \"wear_date\": \"12/25/2022\",\n                    \"quantity\": 2,\n                    \"sku\": \"MOCKSKU-01\",\n                    \"size\": \"Large\",\n                    \"color\": \"Red/White\",\n                    \"length\": \"Long\",\n                    \"customizations\": {\n                        \"hollow_to_hem\": false,\n                        \"color_change\": true,\n                        \"fabric_change\": true,\n                        \"add_remove_buttons\": false,\n                        \"modify_neckline\": true,\n                        \"extend_reduce_sleeves\": true,\n                        \"remove_beading_embroidery\": false,\n                        \"reduce_train_length\": true,\n                        \"extend_train_length\": true,\n                        \"change_to_zipper_laceup_back\": false\n                    },\n                    \"order_class\": \"Express\",\n                    \"ship_date\": \"12/01/2022\",\n                    \"product_unit_price\": \"999\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://stage-api-awp.azurewebsites.net/retailers","description":"<h3 id=\"description\">Description</h3>\n<p>The <code>POST /retailers</code> endpoint is used to submit the customer orders to the AllureBridals ecosystem to process them.</p>\n<p>There are validations in place for every field in the <code>request body</code>. They will help act as a guide to ensure that all required fields are filled out in their respective formats.</p>\n<p>Four types of answers (<code>status code</code>) come from the endpoint, <code>200</code>, <code>400</code>, <code>404</code>, and <code>500</code>. You can find the related documentation lines below.</p>\n<h3 id=\"limitations\"><strong>Limitations</strong></h3>\n<p>The endpoint is limited to 10 products per transaction to optimize the response speed. If there is a need to submit more products, repeat the request with the same data and new products in the array of products.</p>\n<h3 id=\"request-schema\">Request Schema</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"retailerCode\": {\n    \"type\": \"string\",\n    \"description\": \"The code of the retailer\"\n  },\n  \"data\": {\n    \"type\": \"array\",\n    \"description\": \"An array of orders\",\n    \"items\": {\n      \"type\": \"object\",\n      \"description\": \"Order details\",\n      \"properties\": {\n        \"order_id\": {\n          \"type\": \"string\",\n          \"description\": \"The ID of the order\"\n        },\n        \"customer_id\": {\n          \"type\": \"string\",\n          \"description\": \"The ID of the customer\"\n        },\n        \"name\": {\n          \"type\": \"string\",\n          \"description\": \"The name of the customer\"\n        },\n        \"email\": {\n          \"type\": \"string\",\n          \"description\": \"The email of the customer\"\n        },\n        \"phone\": {\n          \"type\": \"string\",\n          \"description\": \"The phone number of the customer\"\n        },\n        \"order_date\": {\n          \"type\": \"string\",\n          \"description\": \"The date of the order\"\n        },\n        \"ship_method\": {\n          \"type\": \"string\",\n          \"description\": \"The shipping method for the order\"\n        },\n        \"order_currency_code\": {\n          \"type\": \"string\",\n          \"description\": \"The currency code of the order\"\n        },\n        \"order_notes\": {\n          \"type\": \"string\",\n          \"description\": \"Any additional notes for the order\"\n        },\n        \"external_document_number\": {\n          \"type\": \"string\",\n          \"description\": \"The external document number for the order\"\n        },\n        \"billing_address\": {\n          \"type\": \"object\",\n          \"description\": \"The billing address details\",\n          \"properties\": {\n            \"first_name\": {\n              \"type\": \"string\",\n              \"description\": \"The first name in the billing address\"\n            },\n            \"last_name\": {\n              \"type\": \"string\",\n              \"description\": \"The last name in the billing address\"\n            },\n            \"company\": {\n              \"type\": \"string\",\n              \"description\": \"The company name in the billing address\"\n            },\n            \"address_1\": {\n              \"type\": \"string\",\n              \"description\": \"The first line of the billing address\"\n            },\n            \"address_2\": {\n              \"type\": \"string\",\n              \"description\": \"The second line of the billing address\"\n            },\n            \"city\": {\n              \"type\": \"string\",\n              \"description\": \"The city in the billing address\"\n            },\n            \"state\": {\n              \"type\": \"string\",\n              \"description\": \"The state in the billing address\"\n            },\n            \"zip\": {\n              \"type\": \"string\",\n              \"description\": \"The zip code in the billing address\"\n            },\n            \"country\": {\n              \"type\": \"string\",\n              \"description\": \"The country in the billing address\"\n            },\n            \"phone\": {\n              \"type\": \"string\",\n              \"description\": \"The phone number in the billing address\"\n            },\n            \"email\": {\n              \"type\": \"string\",\n              \"description\": \"The email in the billing address\"\n            }\n          }\n        },\n        \"shipping_address\": {\n          \"type\": \"object\",\n          \"description\": \"The shipping address details\",\n          \"properties\": {\n            \"first_name\": {\n              \"type\": \"string\",\n              \"description\": \"The first name in the shipping address\"\n            },\n            \"last_name\": {\n              \"type\": \"string\",\n              \"description\": \"The last name in the shipping address\"\n            },\n            \"company\": {\n              \"type\": \"string\",\n              \"description\": \"The company name in the shipping address\"\n            },\n            \"address_1\": {\n              \"type\": \"string\",\n              \"description\": \"The first line of the shipping address\"\n            },\n            \"address_2\": {\n              \"type\": \"string\",\n              \"description\": \"The second line of the shipping address\"\n            },\n            \"city\": {\n              \"type\": \"string\",\n              \"description\": \"The city in the shipping address\"\n            },\n            \"state\": {\n              \"type\": \"string\",\n              \"description\": \"The state in the shipping address\"\n            },\n            \"zip\": {\n              \"type\": \"string\",\n              \"description\": \"The zip code in the shipping address\"\n            },\n            \"country\": {\n              \"type\": \"string\",\n              \"description\": \"The country in the shipping address\"\n            },\n            \"phone\": {\n              \"type\": \"string\",\n              \"description\": \"The phone number in the shipping address\"\n            },\n            \"email\": {\n              \"type\": \"string\",\n              \"description\": \"The email in the shipping address\"\n            }\n          }\n        },\n        \"lines\": {\n          \"type\": \"array\",\n          \"description\": \"An array of product\",\n          \"items\": {\n            \"type\": \"object\",\n            \"description\": \"Product line details\",\n            \"properties\": {\n              \"special_order\": {\n                \"type\": \"boolean\",\n                \"description\": \"Indicates if the order is a special order\"\n              },\n              \"shipping_window\": {\n                \"type\": \"string\",\n                \"description\": \"The shipping window for the product\"\n              },\n              \"wear_date\": {\n                \"type\": \"string\",\n                \"description\": \"The wear date for the product\"\n              },\n              \"quantity\": {\n                \"type\": \"number\",\n                \"description\": \"The quantity of the product\"\n              },\n              \"sku\": {\n                \"type\": \"string\",\n                \"description\": \"The SKU of the product\"\n              },\n              \"size\": {\n                \"type\": \"string\",\n                \"description\": \"The size of the product\"\n              },\n              \"color\": {\n                \"type\": \"string\",\n                \"description\": \"The color of the product\"\n              },\n              \"length\": {\n                \"type\": \"string\",\n                \"description\": \"The length of the product\"\n              },\n              \"customizations\": {\n                \"type\": \"object\",\n                \"description\": \"Customizations for the product line\",\n                \"properties\": {\n                  \"hollow_to_hem\": {\n                    \"type\": \"boolean\",\n                    \"description\": \"Indicates if there is a hollow to hem customization\"\n                  },\n                  \"color_change\": {\n                    \"type\": \"boolean\",\n                    \"description\": \"Indicates if there is a color change customization\"\n                  },\n                  \"fabric_change\": {\n                    \"type\": \"boolean\",\n                    \"description\": \"Indicates if there is a fabric change customization\"\n                  },\n                  \"add_remove_buttons\": {\n                    \"type\": \"boolean\",\n                    \"description\": \"Indicates if there is an add/remove buttons customization\"\n                  },\n                  \"modify_neckline\": {\n                    \"type\": \"boolean\",\n                    \"description\": \"Indicates if there is a modify neckline customization\"\n                  },\n                  \"extend_reduce_sleeves\": {\n                    \"type\": \"boolean\",\n                    \"description\": \"Indicates if there is an extend/reduce sleeves customization\"\n                  },\n                  \"remove_beading_embroidery\": {\n                    \"type\": \"boolean\",\n                    \"description\": \"Indicates if there is a remove beading/embroidery customization\"\n                  },\n                  \"reduce_train_length\": {\n                    \"type\": \"boolean\",\n                    \"description\": \"Indicates if there is a reduce train length customization\"\n                  },\n                  \"extend_train_length\": {\n                    \"type\": \"boolean\",\n                    \"description\": \"Indicates if there is an extend train length customization\"\n                  },\n                  \"change_to_zipper_laceup_back\": {\n                    \"type\": \"boolean\",\n                    \"description\": \"Indicates if there is a change to zipper/lace-up back customization\"\n                  }\n                }\n              },\n              \"order_class\": {\n                \"type\": \"string\",\n                \"description\": \"The class of the order\"\n              },\n              \"ship_date\": {\n                \"type\": \"string\",\n                \"description\": \"The shipping date for the product line\"\n              },\n              \"product_unit_price\": {\n                \"type\": \"string\",\n                \"description\": \"The unit price of the product\"\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n<h3 id=\"response-schema\"><strong>Response Schema</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"status\": {\n      \"type\": \"number\"\n    },\n    \"message\": {\n      \"type\": \"string\"\n    },\n    \"data\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"order_ids\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"string\"\n          }\n        },\n        \"total_orders\": {\n          \"type\": \"number\"\n        },\n        \"order_status\": {\n          \"type\": \"string\"\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"username"},{"key":"password","value":"password"}]},"isInherited":true,"source":{"_postman_id":"c7220508-1f65-4601-a2a5-382e970e6d23","id":"c7220508-1f65-4601-a2a5-382e970e6d23","name":"Awp Retailer API","type":"collection"}},"urlObject":{"path":["retailers"],"host":["https://stage-api-awp.azurewebsites.net"],"query":[],"variable":[]}},"response":[{"id":"42183810-072e-46cb-8de5-dc5dda8284e7","name":"200 - order successfully created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"retailerCode\": \"MOCK01\",\n    \"data\": [\n        {\n            \"order_id\": \"1234567\",\n            \"customer_id\": \"202\",\n            \"name\": \"Alex Johnson\",\n            \"email\": \"alex@example.com\",\n            \"phone\": \"(123)456-7890\",\n            \"order_date\": \"01-01-2022\",\n            \"ship_method\": \"UPS (Ground)\",\n            \"order_currency_code\": \"EUR\",\n            \"order_notes\": \"No special instructions\",\n            \"external_document_number\": \"SO12345\",\n            \"billing_address\": {\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"company\": \"Mocked Company\",\n                \"address_1\": \"1234 Elm Street\",\n                \"address_2\": \"Apt 567\",\n                \"city\": \"Faketown\",\n                \"state\": \"CA\",\n                \"zip\": \"90210\",\n                \"country\": \"Mockland\",\n                \"phone\": \"(123)456-7890\",\n                \"email\": \"john@example.com\"\n            },\n            \"shipping_address\": {\n                \"first_name\": \"Jane\",\n                \"last_name\": \"Doe\",\n                \"company\": \"Mocked Company\",\n                \"address_1\": \"5678 Oak Street\",\n                \"address_2\": \"Suite 890\",\n                \"city\": \"Faketown\",\n                \"state\": \"CA\",\n                \"zip\": \"90210\",\n                \"country\": \"Mockland\",\n                \"phone\": \"(123)456-7890\",\n                \"email\": \"jane@example.com\"\n            },\n            \"lines\": [\n                {\n                    \"special_order\": false,\n                    \"shipping_window\": \"Express\",\n                    \"wear_date\": \"12/25/2022\",\n                    \"quantity\": 2,\n                    \"sku\": \"MOCKSKU-01\",\n                    \"size\": \"Large\",\n                    \"color\": \"Red/White\",\n                    \"length\": \"Long\",\n                    \"customizations\": {\n                        \"hollow_to_hem\": false,\n                        \"color_change\": true,\n                        \"fabric_change\": true,\n                        \"add_remove_buttons\": false,\n                        \"modify_neckline\": true,\n                        \"extend_reduce_sleeves\": true,\n                        \"remove_beading_embroidery\": false,\n                        \"reduce_train_length\": true,\n                        \"extend_train_length\": true,\n                        \"change_to_zipper_laceup_back\": false\n                    },\n                    \"order_class\": \"Express\",\n                    \"ship_date\": \"12/01/2022\",\n                    \"product_unit_price\": \"999\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://stage-api-awp.azurewebsites.net/retailers"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 201,\n    \"message\": \"Order has been successfully created\",\n    \"data\": {\n        \"order_ids\": [\n            \"1234567\"\n        ],\n        \"total_orders\": 1,\n        \"order_status\": \"Pending\"\n    }\n}"},{"id":"10cdc9ae-0eb8-43be-bb13-ff3de420b829","name":"400 - products belong to different collection","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"retailerCode\": \"MOCK01\",\n    \"data\": [\n        {\n            \"order_id\": \"1234567\",\n            \"customer_id\": \"202\",\n            \"name\": \"Alex Johnson\",\n            \"email\": \"alex@example.com\",\n            \"phone\": \"(123)456-7890\",\n            \"order_date\": \"01-01-2022\",\n            \"ship_method\": \"UPS (Ground)\",\n            \"order_currency_code\": \"EUR\",\n            \"order_notes\": \"No special instructions\",\n            \"external_document_number\": \"SO12345\",\n            \"billing_address\": {\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"company\": \"Mocked Company\",\n                \"address_1\": \"1234 Elm Street\",\n                \"address_2\": \"Apt 567\",\n                \"city\": \"Faketown\",\n                \"state\": \"CA\",\n                \"zip\": \"90210\",\n                \"country\": \"Mockland\",\n                \"phone\": \"(123)456-7890\",\n                \"email\": \"john@example.com\"\n            },\n            \"shipping_address\": {\n                \"first_name\": \"Jane\",\n                \"last_name\": \"Doe\",\n                \"company\": \"Mocked Company\",\n                \"address_1\": \"5678 Oak Street\",\n                \"address_2\": \"Suite 890\",\n                \"city\": \"Faketown\",\n                \"state\": \"CA\",\n                \"zip\": \"90210\",\n                \"country\": \"Mockland\",\n                \"phone\": \"(123)456-7890\",\n                \"email\": \"jane@example.com\"\n            },\n            \"lines\": [\n                {\n                    \"special_order\": false,\n                    \"shipping_window\": \"Express\",\n                    \"wear_date\": \"12/25/2022\",\n                    \"quantity\": 2,\n                    \"sku\": \"MOCKSKU-01\",\n                    \"size\": \"Large\",\n                    \"color\": \"Red/White\",\n                    \"length\": \"Long\",\n                    \"customizations\": {\n                        \"hollow_to_hem\": false,\n                        \"color_change\": true,\n                        \"fabric_change\": true,\n                        \"add_remove_buttons\": false,\n                        \"modify_neckline\": true,\n                        \"extend_reduce_sleeves\": true,\n                        \"remove_beading_embroidery\": false,\n                        \"reduce_train_length\": true,\n                        \"extend_train_length\": true,\n                        \"change_to_zipper_laceup_back\": false\n                    },\n                    \"order_class\": \"Express\",\n                    \"ship_date\": \"12/01/2022\",\n                    \"product_unit_price\": \"999\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://stage-api-awp.azurewebsites.net/retailers"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 400,\n    \"message\": \"One or more products belong to a different collection than expected.\"\n}"},{"id":"a7a183d5-43b6-437a-a06a-0aee51a566e3","name":"400 - order must contain at least 1 element","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"retailerCode\": \"MOCK01\",\n    \"data\": [\n        {\n            \"order_id\": \"1234567\",\n            \"customer_id\": \"202\",\n            \"name\": \"Alex Johnson\",\n            \"email\": \"alex@example.com\",\n            \"phone\": \"(123)456-7890\",\n            \"order_date\": \"01-01-2022\",\n            \"ship_method\": \"UPS (Ground)\",\n            \"order_currency_code\": \"EUR\",\n            \"order_notes\": \"No special instructions\",\n            \"external_document_number\": \"SO12345\",\n            \"billing_address\": {\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"company\": \"Mocked Company\",\n                \"address_1\": \"1234 Elm Street\",\n                \"address_2\": \"Apt 567\",\n                \"city\": \"Faketown\",\n                \"state\": \"CA\",\n                \"zip\": \"90210\",\n                \"country\": \"Mockland\",\n                \"phone\": \"(123)456-7890\",\n                \"email\": \"john@example.com\"\n            },\n            \"shipping_address\": {\n                \"first_name\": \"Jane\",\n                \"last_name\": \"Doe\",\n                \"company\": \"Mocked Company\",\n                \"address_1\": \"5678 Oak Street\",\n                \"address_2\": \"Suite 890\",\n                \"city\": \"Faketown\",\n                \"state\": \"CA\",\n                \"zip\": \"90210\",\n                \"country\": \"Mockland\",\n                \"phone\": \"(123)456-7890\",\n                \"email\": \"jane@example.com\"\n            },\n            \"lines\": [\n                {\n                    \"special_order\": false,\n                    \"shipping_window\": \"Express\",\n                    \"wear_date\": \"12/25/2022\",\n                    \"quantity\": 2,\n                    \"sku\": \"MOCKSKU-01\",\n                    \"size\": \"Large\",\n                    \"color\": \"Red/White\",\n                    \"length\": \"Long\",\n                    \"customizations\": {\n                        \"hollow_to_hem\": false,\n                        \"color_change\": true,\n                        \"fabric_change\": true,\n                        \"add_remove_buttons\": false,\n                        \"modify_neckline\": true,\n                        \"extend_reduce_sleeves\": true,\n                        \"remove_beading_embroidery\": false,\n                        \"reduce_train_length\": true,\n                        \"extend_train_length\": true,\n                        \"change_to_zipper_laceup_back\": false\n                    },\n                    \"order_class\": \"Express\",\n                    \"ship_date\": \"12/01/2022\",\n                    \"product_unit_price\": \"999\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://stage-api-awp.azurewebsites.net/retailers"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": [\n        \"data.0.lines must contain at least 1 elements\"\n    ],\n    \"error\": \"Bad Request\",\n    \"statusCode\": 400\n}"},{"id":"e617c35a-7346-47c4-a6a9-ee1533ad8b15","name":"404 - retailer not found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"retailerCode\": \"MOCK01\",\n    \"data\": [\n        {\n            \"order_id\": \"1234567\",\n            \"customer_id\": \"202\",\n            \"name\": \"Alex Johnson\",\n            \"email\": \"alex@example.com\",\n            \"phone\": \"(123)456-7890\",\n            \"order_date\": \"01-01-2022\",\n            \"ship_method\": \"UPS (Ground)\",\n            \"order_currency_code\": \"EUR\",\n            \"order_notes\": \"No special instructions\",\n            \"external_document_number\": \"SO12345\",\n            \"billing_address\": {\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"company\": \"Mocked Company\",\n                \"address_1\": \"1234 Elm Street\",\n                \"address_2\": \"Apt 567\",\n                \"city\": \"Faketown\",\n                \"state\": \"CA\",\n                \"zip\": \"90210\",\n                \"country\": \"Mockland\",\n                \"phone\": \"(123)456-7890\",\n                \"email\": \"john@example.com\"\n            },\n            \"shipping_address\": {\n                \"first_name\": \"Jane\",\n                \"last_name\": \"Doe\",\n                \"company\": \"Mocked Company\",\n                \"address_1\": \"5678 Oak Street\",\n                \"address_2\": \"Suite 890\",\n                \"city\": \"Faketown\",\n                \"state\": \"CA\",\n                \"zip\": \"90210\",\n                \"country\": \"Mockland\",\n                \"phone\": \"(123)456-7890\",\n                \"email\": \"jane@example.com\"\n            },\n            \"lines\": [\n                {\n                    \"special_order\": false,\n                    \"shipping_window\": \"Express\",\n                    \"wear_date\": \"12/25/2022\",\n                    \"quantity\": 2,\n                    \"sku\": \"MOCKSKU-01\",\n                    \"size\": \"Large\",\n                    \"color\": \"Red/White\",\n                    \"length\": \"Long\",\n                    \"customizations\": {\n                        \"hollow_to_hem\": false,\n                        \"color_change\": true,\n                        \"fabric_change\": true,\n                        \"add_remove_buttons\": false,\n                        \"modify_neckline\": true,\n                        \"extend_reduce_sleeves\": true,\n                        \"remove_beading_embroidery\": false,\n                        \"reduce_train_length\": true,\n                        \"extend_train_length\": true,\n                        \"change_to_zipper_laceup_back\": false\n                    },\n                    \"order_class\": \"Express\",\n                    \"ship_date\": \"12/01/2022\",\n                    \"product_unit_price\": \"999\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://stage-api-awp.azurewebsites.net/retailers"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"message\": \"Retailer not found.\",\n    \"originalError\": \"Could not find any entity of type \\\"Retailer\\\" matching: {\\n    \\\"retailerID\\\": \\\"HAP009\\\"\\n}\"\n}"},{"id":"69cae6a1-d611-4538-99e7-0e69b28855be","name":"400 - more that 10 elements","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"retailerCode\": \"MOCK01\",\n    \"data\": [\n        {\n            \"order_id\": \"1234567\",\n            \"customer_id\": \"202\",\n            \"name\": \"Alex Johnson\",\n            \"email\": \"alex@example.com\",\n            \"phone\": \"(123)456-7890\",\n            \"order_date\": \"01-01-2022\",\n            \"ship_method\": \"UPS (Ground)\",\n            \"order_currency_code\": \"EUR\",\n            \"order_notes\": \"No special instructions\",\n            \"external_document_number\": \"SO12345\",\n            \"billing_address\": {\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"company\": \"Mocked Company\",\n                \"address_1\": \"1234 Elm Street\",\n                \"address_2\": \"Apt 567\",\n                \"city\": \"Faketown\",\n                \"state\": \"CA\",\n                \"zip\": \"90210\",\n                \"country\": \"Mockland\",\n                \"phone\": \"(123)456-7890\",\n                \"email\": \"john@example.com\"\n            },\n            \"shipping_address\": {\n                \"first_name\": \"Jane\",\n                \"last_name\": \"Doe\",\n                \"company\": \"Mocked Company\",\n                \"address_1\": \"5678 Oak Street\",\n                \"address_2\": \"Suite 890\",\n                \"city\": \"Faketown\",\n                \"state\": \"CA\",\n                \"zip\": \"90210\",\n                \"country\": \"Mockland\",\n                \"phone\": \"(123)456-7890\",\n                \"email\": \"jane@example.com\"\n            },\n            \"lines\": [\n                {\n                    \"special_order\": false,\n                    \"shipping_window\": \"Express\",\n                    \"wear_date\": \"12/25/2022\",\n                    \"quantity\": 2,\n                    \"sku\": \"MOCKSKU-01\",\n                    \"size\": \"Large\",\n                    \"color\": \"Red/White\",\n                    \"length\": \"Long\",\n                    \"customizations\": {\n                        \"hollow_to_hem\": false,\n                        \"color_change\": true,\n                        \"fabric_change\": true,\n                        \"add_remove_buttons\": false,\n                        \"modify_neckline\": true,\n                        \"extend_reduce_sleeves\": true,\n                        \"remove_beading_embroidery\": false,\n                        \"reduce_train_length\": true,\n                        \"extend_train_length\": true,\n                        \"change_to_zipper_laceup_back\": false\n                    },\n                    \"order_class\": \"Express\",\n                    \"ship_date\": \"12/01/2022\",\n                    \"product_unit_price\": \"999\"\n                },\n                {\n                    \"special_order\": false,\n                    \"shipping_window\": \"Express\",\n                    \"wear_date\": \"12/25/2022\",\n                    \"quantity\": 2,\n                    \"sku\": \"MOCKSKU-01\",\n                    \"size\": \"Large\",\n                    \"color\": \"Red/White\",\n                    \"length\": \"Long\",\n                    \"customizations\": {\n                        \"hollow_to_hem\": false,\n                        \"color_change\": true,\n                        \"fabric_change\": true,\n                        \"add_remove_buttons\": false,\n                        \"modify_neckline\": true,\n                        \"extend_reduce_sleeves\": true,\n                        \"remove_beading_embroidery\": false,\n                        \"reduce_train_length\": true,\n                        \"extend_train_length\": true,\n                        \"change_to_zipper_laceup_back\": false\n                    },\n                    \"order_class\": \"Express\",\n                    \"ship_date\": \"12/01/2022\",\n                    \"product_unit_price\": \"999\"\n                },\n                {\n                    \"special_order\": true,\n                    \"shipping_window\": \"Standard\",\n                    \"wear_date\": \"01/10/2023\",\n                    \"quantity\": 1,\n                    \"sku\": \"MOCKSKU-02\",\n                    \"size\": \"Medium\",\n                    \"color\": \"Blue/Green\",\n                    \"length\": \"Short\",\n                    \"customizations\": {\n                        \"hollow_to_hem\": true,\n                        \"color_change\": false,\n                        \"fabric_change\": false,\n                        \"add_remove_buttons\": true,\n                        \"modify_neckline\": false,\n                        \"extend_reduce_sleeves\": false,\n                        \"remove_beading_embroidery\": true,\n                        \"reduce_train_length\": false,\n                        \"extend_train_length\": false,\n                        \"change_to_zipper_laceup_back\": true\n                    },\n                    \"order_class\": \"Standard\",\n                    \"ship_date\": \"12/15/2022\",\n                    \"product_unit_price\": \"499\"\n                },\n                {\n                    \"special_order\": false,\n                    \"shipping_window\": \"Overnight\",\n                    \"wear_date\": \"11/30/2022\",\n                    \"quantity\": 3,\n                    \"sku\": \"MOCKSKU-03\",\n                    \"size\": \"Small\",\n                    \"color\": \"Black/White\",\n                    \"length\": \"Medium\",\n                    \"customizations\": {\n                        \"hollow_to_hem\": false,\n                        \"color_change\": false,\n                        \"fabric_change\": true,\n                        \"add_remove_buttons\": false,\n                        \"modify_neckline\": true,\n                        \"extend_reduce_sleeves\": false,\n                        \"remove_beading_embroidery\": false,\n                        \"reduce_train_length\": true,\n                        \"extend_train_length\": true,\n                        \"change_to_zipper_laceup_back\": false\n                    },\n                    \"order_class\": \"Overnight\",\n                    \"ship_date\": \"11/20/2022\",\n                    \"product_unit_price\": \"1299\"\n                },\n                {\n                    \"special_order\": true,\n                    \"shipping_window\": \"Standard\",\n                    \"wear_date\": \"02/15/2023\",\n                    \"quantity\": 4,\n                    \"sku\": \"MOCKSKU-04\",\n                    \"size\": \"Extra Large\",\n                    \"color\": \"Green/Yellow\",\n                    \"length\": \"Long\",\n                    \"customizations\": {\n                        \"hollow_to_hem\": true,\n                        \"color_change\": true,\n                        \"fabric_change\": false,\n                        \"add_remove_buttons\": true,\n                        \"modify_neckline\": false,\n                        \"extend_reduce_sleeves\": true,\n                        \"remove_beading_embroidery\": false,\n                        \"reduce_train_length\": false,\n                        \"extend_train_length\": true,\n                        \"change_to_zipper_laceup_back\": true\n                    },\n                    \"order_class\": \"Standard\",\n                    \"ship_date\": \"01/25/2023\",\n                    \"product_unit_price\": \"899\"\n                },\n                {\n                    \"special_order\": false,\n                    \"shipping_window\": \"Express\",\n                    \"wear_date\": \"03/01/2023\",\n                    \"quantity\": 5,\n                    \"sku\": \"MOCKSKU-05\",\n                    \"size\": \"Small\",\n                    \"color\": \"White\",\n                    \"length\": \"Short\",\n                    \"customizations\": {\n                        \"hollow_to_hem\": false,\n                        \"color_change\": true,\n                        \"fabric_change\": true,\n                        \"add_remove_buttons\": false,\n                        \"modify_neckline\": true,\n                        \"extend_reduce_sleeves\": false,\n                        \"remove_beading_embroidery\": true,\n                        \"reduce_train_length\": true,\n                        \"extend_train_length\": false,\n                        \"change_to_zipper_laceup_back\": true\n                    },\n                    \"order_class\": \"Express\",\n                    \"ship_date\": \"02/15/2023\",\n                    \"product_unit_price\": \"799\"\n                },\n                {\n                    \"special_order\": true,\n                    \"shipping_window\": \"Overnight\",\n                    \"wear_date\": \"04/10/2023\",\n                    \"quantity\": 2,\n                    \"sku\": \"MOCKSKU-06\",\n                    \"size\": \"Medium\",\n                    \"color\": \"Black\",\n                    \"length\": \"Long\",\n                    \"customizations\": {\n                        \"hollow_to_hem\": true,\n                        \"color_change\": true,\n                        \"fabric_change\": false,\n                        \"add_remove_buttons\": true,\n                        \"modify_neckline\": false,\n                        \"extend_reduce_sleeves\": true,\n                        \"remove_beading_embroidery\": false,\n                        \"reduce_train_length\": false,\n                        \"extend_train_length\": true,\n                        \"change_to_zipper_laceup_back\": true\n                    },\n                    \"order_class\": \"Overnight\",\n                    \"ship_date\": \"03/25/2023\",\n                    \"product_unit_price\": \"1499\"\n                },\n                {\n                    \"special_order\": false,\n                    \"shipping_window\": \"Standard\",\n                    \"wear_date\": \"05/05/2023\",\n                    \"quantity\": 3,\n                    \"sku\": \"MOCKSKU-07\",\n                    \"size\": \"Large\",\n                    \"color\": \"Pink\",\n                    \"length\": \"Medium\",\n                    \"customizations\": {\n                        \"hollow_to_hem\": false,\n                        \"color_change\": true,\n                        \"fabric_change\": true,\n                        \"add_remove_buttons\": false,\n                        \"modify_neckline\": true,\n                        \"extend_reduce_sleeves\": false,\n                        \"remove_beading_embroidery\": true,\n                        \"reduce_train_length\": true,\n                        \"extend_train_length\": false,\n                        \"change_to_zipper_laceup_back\": false\n                    },\n                    \"order_class\": \"Standard\",\n                    \"ship_date\": \"04/15/2023\",\n                    \"product_unit_price\": \"599\"\n                },\n                {\n                    \"special_order\": true,\n                    \"shipping_window\": \"Express\",\n                    \"wear_date\": \"06/01/2023\",\n                    \"quantity\": 1,\n                    \"sku\": \"MOCKSKU-08\",\n                    \"size\": \"Extra Small\",\n                    \"color\": \"Red\",\n                    \"length\": \"Long\",\n                    \"customizations\": {\n                        \"hollow_to_hem\": true,\n                        \"color_change\": true,\n                        \"fabric_change\": true,\n                        \"add_remove_buttons\": true,\n                        \"modify_neckline\": true,\n                        \"extend_reduce_sleeves\": true,\n                        \"remove_beading_embroidery\": true,\n                        \"reduce_train_length\": true,\n                        \"extend_train_length\": true,\n                        \"change_to_zipper_laceup_back\": true\n                    },\n                    \"order_class\": \"Express\",\n                    \"ship_date\": \"05/20/2023\",\n                    \"product_unit_price\": \"999\"\n                },\n                {\n                    \"special_order\": false,\n                    \"shipping_window\": \"Overnight\",\n                    \"wear_date\": \"07/15/2023\",\n                    \"quantity\": 4,\n                    \"sku\": \"MOCKSKU-09\",\n                    \"size\": \"Medium\",\n                    \"color\": \"Purple\",\n                    \"length\": \"Short\",\n                    \"customizations\": {\n                        \"hollow_to_hem\": false,\n                        \"color_change\": false,\n                        \"fabric_change\": true,\n                        \"add_remove_buttons\": false,\n                        \"modify_neckline\": false,\n                        \"extend_reduce_sleeves\": true,\n                        \"remove_beading_embroidery\": true,\n                        \"reduce_train_length\": true,\n                        \"extend_train_length\": false,\n                        \"change_to_zipper_laceup_back\": false\n                    },\n                    \"order_class\": \"Overnight\",\n                    \"ship_date\": \"07/01/2023\",\n                    \"product_unit_price\": \"1299\"\n                },\n                {\n                    \"special_order\": true,\n                    \"shipping_window\": \"Standard\",\n                    \"wear_date\": \"08/20/2023\",\n                    \"quantity\": 2,\n                    \"sku\": \"MOCKSKU-10\",\n                    \"size\": \"Large\",\n                    \"color\": \"Yellow\",\n                    \"length\": \"Medium\",\n                    \"customizations\": {\n                        \"hollow_to_hem\": true,\n                        \"color_change\": true,\n                        \"fabric_change\": false,\n                        \"add_remove_buttons\": true,\n                        \"modify_neckline\": true,\n                        \"extend_reduce_sleeves\": false,\n                        \"remove_beading_embroidery\": false,\n                        \"reduce_train_length\": true,\n                        \"extend_train_length\": true,\n                        \"change_to_zipper_laceup_back\": true\n                    },\n                    \"order_class\": \"Standard\",\n                    \"ship_date\": \"08/05/2023\",\n                    \"product_unit_price\": \"699\"\n                },\n                {\n                    \"special_order\": false,\n                    \"shipping_window\": \"Express\",\n                    \"wear_date\": \"09/01/2023\",\n                    \"quantity\": 3,\n                    \"sku\": \"MOCKSKU-11\",\n                    \"size\": \"Small\",\n                    \"color\": \"Orange\",\n                    \"length\": \"Long\",\n                    \"customizations\": {\n                        \"hollow_to_hem\": false,\n                        \"color_change\": true,\n                        \"fabric_change\": true,\n                        \"add_remove_buttons\": false,\n                        \"modify_neckline\": false,\n                        \"extend_reduce_sleeves\": true,\n                        \"remove_beading_embroidery\": true,\n                        \"reduce_train_length\": true,\n                        \"extend_train_length\": false,\n                        \"change_to_zipper_laceup_back\": true\n                    },\n                    \"order_class\": \"Express\",\n                    \"ship_date\": \"08/15/2023\",\n                    \"product_unit_price\": \"1099\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://stage-api-awp.azurewebsites.net/retailers"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": [\n        \"data.0.lines must contain no more than 10 elements\"\n    ],\n    \"error\": \"Bad Request\",\n    \"statusCode\": 400\n}"},{"id":"a5fb2f4b-b3c0-4b3b-a75a-970eceef4675","name":"500 - Failed to sync retailer data","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"retailerCode\": \"MOCK01\",\n    \"data\": [\n        {\n            \"order_id\": \"1234567\",\n            \"customer_id\": \"202\",\n            \"name\": \"Alex Johnson\",\n            \"email\": \"alex@example.com\",\n            \"phone\": \"(123)456-7890\",\n            \"order_date\": \"01-01-2022\",\n            \"ship_method\": \"UPS (Ground)\",\n            \"order_currency_code\": \"EUR\",\n            \"order_notes\": \"No special instructions\",\n            \"external_document_number\": \"SO12345\",\n            \"billing_address\": {\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"company\": \"Mocked Company\",\n                \"address_1\": \"1234 Elm Street\",\n                \"address_2\": \"Apt 567\",\n                \"city\": \"Faketown\",\n                \"state\": \"CA\",\n                \"zip\": \"90210\",\n                \"country\": \"Mockland\",\n                \"phone\": \"(123)456-7890\",\n                \"email\": \"john@example.com\"\n            },\n            \"shipping_address\": {\n                \"first_name\": \"Jane\",\n                \"last_name\": \"Doe\",\n                \"company\": \"Mocked Company\",\n                \"address_1\": \"5678 Oak Street\",\n                \"address_2\": \"Suite 890\",\n                \"city\": \"Faketown\",\n                \"state\": \"CA\",\n                \"zip\": \"90210\",\n                \"country\": \"Mockland\",\n                \"phone\": \"(123)456-7890\",\n                \"email\": \"jane@example.com\"\n            },\n            \"lines\": [\n                {\n                    \"special_order\": false,\n                    \"shipping_window\": \"Express\",\n                    \"wear_date\": \"12/25/2022\",\n                    \"quantity\": 2,\n                    \"sku\": \"MOCKSKU-01\",\n                    \"size\": \"Large\",\n                    \"color\": \"Red/White\",\n                    \"length\": \"Long\",\n                    \"customizations\": {\n                        \"hollow_to_hem\": false,\n                        \"color_change\": true,\n                        \"fabric_change\": true,\n                        \"add_remove_buttons\": false,\n                        \"modify_neckline\": true,\n                        \"extend_reduce_sleeves\": true,\n                        \"remove_beading_embroidery\": false,\n                        \"reduce_train_length\": true,\n                        \"extend_train_length\": true,\n                        \"change_to_zipper_laceup_back\": false\n                    },\n                    \"order_class\": \"Express\",\n                    \"ship_date\": \"12/01/2022\",\n                    \"product_unit_price\": \"999\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://stage-api-awp.azurewebsites.net/retailers"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 500,\n    \"message\": \"Failed to sync retailer data\",\n    \"originalError\": \"Original Error message\"\n}"}],"_postman_id":"9df4ce58-aec3-4520-b3cc-392798a06107"},{"name":"Retailer order status","id":"165f2d4b-5c08-4330-81d2-5c91417efb8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://stage-api-awp.azurewebsites.net/retailers/:retailerid/orders/:orderid","description":"<h3 id=\"description\">Description</h3>\n<p>The <code>GET /retailers/:retailerId/orders/:orderId</code> endpoint retrieves the details of a specific order for a given retailer.</p>\n<p>There are validations in place <code>query params</code> that are part of the <code>url,</code> they will act as a guide to create the correct path and retrieve the desired information as expected.</p>\n<p>Two types of answers (<code>status code</code>) come from the endpoint, <code>200</code>and <code>404</code>. You can find the related documentation lines blow</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"username"},{"key":"password","value":"password"}]},"isInherited":true,"source":{"_postman_id":"c7220508-1f65-4601-a2a5-382e970e6d23","id":"c7220508-1f65-4601-a2a5-382e970e6d23","name":"Awp Retailer API","type":"collection"}},"urlObject":{"path":["retailers",":retailerid","orders",":orderid"],"host":["https://stage-api-awp.azurewebsites.net"],"query":[],"variable":[]}},"response":[{"id":"fe68b770-6eb4-4691-a30f-f1f388b5cc93","name":"200 - order status","originalRequest":{"method":"GET","header":[],"url":"https://stage-api-awp.azurewebsites.net/retailers/:retailerid/orders/:orderid"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"46"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 11 Jul 2024 17:34:11 GMT"},{"key":"ETag","value":"W/\"2e-oDY2QhBxyTCjOFUxvTJkNHZN4yw\""},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Content-Security-Policy","value":"img-src 'self' data: apollo-server-landing-page.cdn.apollographql.com;script-src 'self' https: 'unsafe-inline';manifest-src 'self' apollo-server-landing-page.cdn.apollographql.com;frame-src 'self' sandbox.embed.apollographql.com;default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"message\": \"Order status: draft\"\n}"},{"id":"f3b7612e-c5fb-4b50-b731-73e4170878b4","name":"404 - order not found","originalRequest":{"method":"GET","header":[],"url":"https://stage-api-awp.azurewebsites.net/retailers/:retailerid/orders/:orderid"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"294"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 11 Jul 2024 17:35:18 GMT"},{"key":"ETag","value":"W/\"126-hM25wEix+wLrvQki7r9BxuRWjdk\""},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Content-Security-Policy","value":"img-src 'self' data: apollo-server-landing-page.cdn.apollographql.com;script-src 'self' https: 'unsafe-inline';manifest-src 'self' apollo-server-landing-page.cdn.apollographql.com;frame-src 'self' sandbox.embed.apollographql.com;default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"message\": \"Failed to retrieve order status\",\n    \"originalError\": \"Could not find any entity of type \\\"Orders\\\" matching: {\\n    \\\"select\\\": {\\n        \\\"status\\\": true\\n    },\\n    \\\"where\\\": {\\n        \\\"retailer_id\\\": \\\"MOCK01\\\",\\n        \\\"external_number\\\": \\\"1234567\\\"\\n    }\\n}\"\n}"},{"id":"e65af702-31cb-4779-a138-eaa8e37eaee9","name":"404 - no order id entered","originalRequest":{"method":"GET","header":[],"url":"https://stage-api-awp.azurewebsites.net/retailers/:retailerid/orders"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"85"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 11 Jul 2024 17:41:41 GMT"},{"key":"ETag","value":"W/\"55-Ghw/DyEykZj860kksRiQGH9Molk\""},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Content-Security-Policy","value":"img-src 'self' data: apollo-server-landing-page.cdn.apollographql.com;script-src 'self' https: 'unsafe-inline';manifest-src 'self' apollo-server-landing-page.cdn.apollographql.com;frame-src 'self' sandbox.embed.apollographql.com;default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Cannot GET /retailers/MOCK01/orders\",\n    \"error\": \"Not Found\",\n    \"statusCode\": 404\n}"},{"id":"8e7345b3-564f-439b-bb40-9c0dcedcf08e","name":"404 - no retailer id entered","originalRequest":{"method":"GET","header":[],"url":"https://stage-api-awp.azurewebsites.net/retailers/orders/:orderid"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"87"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 11 Jul 2024 17:42:37 GMT"},{"key":"ETag","value":"W/\"57-6yH/2Mztq6Ahgl73P9+FHMFrOXU\""},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Content-Security-Policy","value":"img-src 'self' data: apollo-server-landing-page.cdn.apollographql.com;script-src 'self' https: 'unsafe-inline';manifest-src 'self' apollo-server-landing-page.cdn.apollographql.com;frame-src 'self' sandbox.embed.apollographql.com;default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Cannot GET /retailers/orders/1234567\",\n    \"error\": \"Not Found\",\n    \"statusCode\": 404\n}"}],"_postman_id":"165f2d4b-5c08-4330-81d2-5c91417efb8e"},{"name":"Portia & Scarlett inventory","id":"2d559da8-d08f-4431-873c-6431011751df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://stage-api-awp.azurewebsites.net/inventory","description":"<p>The <code>GET /inventory</code> endpoint retrieves the Portia &amp; Scarlett inventory that is either at or en-route to the United States (US) and China (CHN) locations. Two types of answers (<code>status code</code>) come from the endpoint, <code>200</code>, and <code>500</code>. You can find the related documentation lines below. The requests with status <code>200</code> bring the inventory data with the <code>\"date\"</code> field. This field represents the date that the product is expected to arrive in the specified location.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"username"},{"key":"password","value":"password"}]},"isInherited":true,"source":{"_postman_id":"c7220508-1f65-4601-a2a5-382e970e6d23","id":"c7220508-1f65-4601-a2a5-382e970e6d23","name":"Awp Retailer API","type":"collection"}},"urlObject":{"path":["inventory"],"host":["https://stage-api-awp.azurewebsites.net"],"query":[],"variable":[]}},"response":[{"id":"c192c3e7-ac87-49f8-bbf5-8733c6d46b29","name":"500 - Failed to retrieve","originalRequest":{"method":"GET","header":[],"url":"https://stage-api-awp.azurewebsites.net/inventory"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 500,\n    \"message\": \"Failed to retrieve inventory data\",\n    \"originalError\": \"Error message\"\n}"},{"id":"d04a3eda-f6ed-46c2-a791-e09f0af521aa","name":"200 - Ok","originalRequest":{"method":"GET","header":[],"url":"https://stage-api-awp.azurewebsites.net/inventory"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"data\": [\n        {\n            \"sku\": \"ABC-SKU-1\",\n            \"variant_code\": \"ABC_VARIANTCODE\",\n            \"location\": \"US\",\n            \"quantity\": 1,\n            \"date\": null,\n            \"color\": null,\n            \"size\": null,\n            \"length\": null,\n            \"category_name\": \"Portia & Scarlett\"\n        },\n        {\n            \"sku\": \"ABC-SKU-2\",\n            \"variant_code\": \"ABC_VARIANTCODE\",\n            \"location\": \"US\",\n            \"quantity\": 15,\n            \"date\": \"2024-10-01T00:00:00.000Z\",\n            \"color\": null,\n            \"size\": null,\n            \"length\": null,\n            \"category_name\": \"Portia & Scarlett\"\n        }\n    ]\n}"}],"_postman_id":"2d559da8-d08f-4431-873c-6431011751df"}],"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"username"},{"key":"password","value":"password"}]}},"event":[{"listen":"prerequest","script":{"id":"3cf2200f-ccc5-49c0-b761-b88d8c83489e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ad5beb3f-a07b-46c3-acec-3739d7eafbf5","type":"text/javascript","exec":[""]}}],"variable":[{"key":"orderid","value":":orderid","type":"string"},{"key":"retailerid","value":":retailerid","type":"string"},{"key":"domain","value":"https://stage-api-awp.azurewebsites.net","type":"string"},{"key":"username","value":"username","type":"string"},{"key":"password","value":"password","type":"string"}]}