{"info":{"_postman_id":"b07cbb39-a7df-47ee-89c4-7bcf7336d2ac","name":"Integrations","description":"<html><head></head><body><p>Documentation for integrations</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"7764274","collectionId":"b07cbb39-a7df-47ee-89c4-7bcf7336d2ac","publishedId":"SWE3df21","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-12-05T17:12:32.000Z"},"item":[{"name":"v1","item":[{"name":"Order","id":"94441716-d98f-4a57-9867-02d3a495ec47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"user\": {\n    \"id\": \"0\",\n    \"name\": \"INTEGRATION\",\n    \"phone\": \"3163535\",\n    \"email\": \"test@email.com\",\n    \"identification\": \"123456789\",\n    \"last_name\": \"INTEGRATION\",\n    \"address_area\": \"El Chicó\",\n    \"address_city\": \"Bogota\",\n    \"address_description\": \"\",\n    \"address_detail\":{\n        \"department\": \"Bogota\",\n        \"city\": \"Bogota\",\n        \"type_via\": \"Autopista, Avenida, etc\",\n        \"primary_via\": \"Av ciudad de cali\",\n        \"secondary_via\": \"Av Boyaca\",\n        \"number\":\"13-42\",\n        \"detail\": \"Número interior/piso\",\n        \"address_string\": \"Calle 59 #14-24\",\n        \"place\": \"casa, trabajo, etc\",\n        \"latitude\": \"4.60971\",\n        \"longitude\": \"-74.08175\"\n    }\n  },\n  \"order_information\": {\n    \"notes\": \"\",\n    \"store_id\": \"2342342342342344\",\n    \"order_id\": \"1005de763\",\n    \"order_code\": \"100591773\",\n    \"order_type_order\": 0,\n    \"order_delivery_arrival_time\": \"17:18\",\n    \"order_payment\": {\n      \"method\": \"Tarjeta\",\n      \"order_total_order\": 31600,\n      \"order_total_discount\": 11949,\n      \"order_total_delivery\": 4801,\n      \"order_total_tip\": 0,\n      \"order_total_neto\": 24452,\n      \"order_total_without_discount\": 43600,\n      \"order_internal_discount\": 5700\n    },\n    \"final_products\": [\n      {\n        \"name\": \"Combo WOW x4\",\n        \"quantity\": 1,\n        \"notes\": \"\",\n        \"price\": \"31600\",\n        \"discount\": 5700,\n        \"product_id\": \"12276489554839470107\",\n        \"groups\": [\n          {\n            \"name\": \"Selecciona tus 4 MUY\",\n            \"group_id\": \"12276489554839470106\",\n            \"portions\": [\n              {\n                \"name\": \"MUY Arroz con pollo\",\n                \"quantity\": 1,\n                \"portion_id\": \"17680480075943772444\"\n              },\n              {\n                \"name\": \"MUY Paisa\",\n                \"quantity\": 1,\n                \"portion_id\": \"17680480075943772439\"\n              },\n              {\n                \"name\": \"MUY Casero\",\n                \"quantity\": 1,\n                \"portion_id\": \"17680480075943772443\"\n              },\n              {\n                \"name\": \"MUY Cubano\",\n                \"quantity\": 1,\n                \"portion_id\": \"17680480075943772438\"\n              }\n            ]\n          }\n        ]\n      },\n      {\n        \"name\": \"MUY MUY Arroz con pollo\",\n        \"quantity\": 1,\n        \"notes\": \"\",\n        \"price\": 9900,\n        \"product_id\": \"26257095296811382\",\n        \"groups\": [\n          {\n            \"name\": \"Cambio de bebida\",\n            \"group_id\": \"26257095296811388\",\n            \"portions\": [\n              {\n                \"name\": \"Coca Cola Zero 500\",\n                \"quantity\": 1,\n                \"portion_id\": \"26257095296811338\"\n              }\n            ]\n          }\n        ]\n      }\n    ]\n  },\n  \"integration\": {\n    \"name\": \"ifood\",\n    \"origin\": 8\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://partners.muy.com.co/v1/orders/","description":"<h1 id=\"description\">Description</h1>\n<p>This Order endpoint allows a developer to send order to POS MUY</p>\n<h1 id=\"resource\">Resource</h1>\n<blockquote>\n<p>POST <a href=\"https://partners.muydev.com/v1/order\">https://partners.muydev.com/v1/order</a></p>\n</blockquote>\n<h1 id=\"authorization\">Authorization</h1>\n<p>You must send the access token to the header as <em><code>Authorization</code></em> to access the resource.</p>\n<hr />\n<h1 id=\"path-paramethers\">Path Paramethers</h1>\n<h2 id=\"user\">User</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String, not null</td>\n<td>Unique string identifier for the user</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String, not null</td>\n<td>String of the user name</td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>String, not null</td>\n<td>The last name of the user</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>String, not null</td>\n<td>Phone user</td>\n</tr>\n<tr>\n<td>address_area</td>\n<td>String, not null</td>\n<td>String of the user address area</td>\n</tr>\n<tr>\n<td>address_city</td>\n<td>String, not null</td>\n<td>The city of the user</td>\n</tr>\n<tr>\n<td>address_description</td>\n<td>String</td>\n<td>Additional information of the user</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h2 id=\"user-address-detail\">User Address detail</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>department</td>\n<td>String, not null</td>\n<td>The department of the user</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String, not null</td>\n<td>The city of the user</td>\n</tr>\n<tr>\n<td>type_via</td>\n<td>String, not null</td>\n<td>Type of address road</td>\n</tr>\n<tr>\n<td>primary_via</td>\n<td>String, not null</td>\n<td>Primary via of address</td>\n</tr>\n<tr>\n<td>secondary_via</td>\n<td>String, not null</td>\n<td>Secondary via of address</td>\n</tr>\n<tr>\n<td>number</td>\n<td>String, not null</td>\n<td>Number of address</td>\n</tr>\n<tr>\n<td>detail</td>\n<td>String, not null</td>\n<td>Additional information of the user</td>\n</tr>\n<tr>\n<td>address_string</td>\n<td>String, not null</td>\n<td>Full address</td>\n</tr>\n<tr>\n<td>place</td>\n<td>String, not null</td>\n<td>Address place</td>\n</tr>\n<tr>\n<td>latitude</td>\n<td>String, not null</td>\n<td>Address latitude</td>\n</tr>\n<tr>\n<td>longitude</td>\n<td>String, not null</td>\n<td>Address longitude</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h2 id=\"order-information\">Order information</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Descriptión</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>store_id</td>\n<td>String, not null</td>\n<td>String of the store id</td>\n</tr>\n<tr>\n<td>order_id</td>\n<td>String, not null</td>\n<td>Order identifier provided by integrator</td>\n</tr>\n<tr>\n<td>order_code</td>\n<td>String, not null</td>\n<td>Order code seen by the user</td>\n</tr>\n<tr>\n<td>order_type</td>\n<td>String, not null</td>\n<td>Order type</td>\n</tr>\n<tr>\n<td>order_delivery_arrival_time</td>\n<td>String, not null</td>\n<td>String of the arrival hour of person delivery</td>\n</tr>\n<tr>\n<td>notes</td>\n<td>String</td>\n<td>Aditional notes of the order</td>\n</tr>\n<tr>\n<td>order_payment</td>\n<td>Object</td>\n<td>Object with information of the payment type provided  by integrator</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h2 id=\"external_payment\">External_payment</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Descriptión</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>method</td>\n<td>String, not null</td>\n<td>String of the payment method provided by integrator</td>\n</tr>\n<tr>\n<td>order_total_order</td>\n<td>Integer, not null</td>\n<td>The cost of the entire order, including taxes and fees</td>\n</tr>\n<tr>\n<td>order_total_discount</td>\n<td>Integer, not null</td>\n<td>Discounts applied in the order</td>\n</tr>\n<tr>\n<td>order_total_delivery</td>\n<td>Integer, not null</td>\n<td>The cost delivery</td>\n</tr>\n<tr>\n<td>order_total_neto</td>\n<td>Integer, not null</td>\n<td>The cost free taxes</td>\n</tr>\n<tr>\n<td>order_total_tip</td>\n<td>Integer</td>\n<td>The cost of tips for restaurant</td>\n</tr>\n<tr>\n<td>order_total_without_discount</td>\n<td>String, not null</td>\n<td>Total value without discounts</td>\n</tr>\n<tr>\n<td>order_internal_discount</td>\n<td>Integer</td>\n<td>Total value internal discounts</td>\n</tr>\n<tr>\n<td>order_discount_detail</td>\n<td>Object</td>\n<td>Object with discounts detail of the order</td>\n</tr>\n<tr>\n<td>final_products</td>\n<td>Object</td>\n<td>Object wtih final products of the order</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h2 id=\"external_discount_detail\">External_discount_detail</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Descriptión</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>description</td>\n<td>String</td>\n<td>String of the  discount description applied in the orde</td>\n</tr>\n<tr>\n<td>value</td>\n<td>Integer</td>\n<td>Total discount of the order</td>\n</tr>\n<tr>\n<td>code</td>\n<td>String</td>\n<td>Option promotional code</td>\n</tr>\n<tr>\n<td>type</td>\n<td>Integer</td>\n<td>Discount type</td>\n</tr>\n<tr>\n<td>priority</td>\n<td>Integer</td>\n<td>When there are several discounts, indicate the priority discount</td>\n</tr>\n<tr>\n<td>notes</td>\n<td>String</td>\n<td>Aditional notes of the discounts</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h2 id=\"final_products\">Final_products</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Descriptión</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>product_id</td>\n<td>String, not null</td>\n<td>Id of the final product</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String, not null</td>\n<td>String of the final product</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>Integer, not null</td>\n<td>Quantity of the final product</td>\n</tr>\n<tr>\n<td>price</td>\n<td>Integer</td>\n<td>The unit price of the product</td>\n</tr>\n<tr>\n<td>discount</td>\n<td>Integer</td>\n<td>The discount value of the product</td>\n</tr>\n<tr>\n<td>notes</td>\n<td>Integer</td>\n<td>Aditional notes of the order</td>\n</tr>\n<tr>\n<td>group</td>\n<td>Object</td>\n<td>Object with group information of the final product</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h2 id=\"group\">Group</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Descriptión</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>group_id</td>\n<td>String, not null</td>\n<td>String of the group external id</td>\n</tr>\n<tr>\n<td>portions</td>\n<td>Object</td>\n<td>Object with portions of the Group</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h2 id=\"portions\">Portions</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Descriptión</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>portion_id</td>\n<td>String, not null</td>\n<td>External Id of the group selected by user</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>Integer, not null</td>\n<td>Quantity of the portion</td>\n</tr>\n<tr>\n<td>price</td>\n<td>Integer</td>\n<td>The unit price of the portion</td>\n</tr>\n<tr>\n<td>discount</td>\n<td>Integer</td>\n<td>The discount value of the product</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n","urlObject":{"protocol":"https","path":["v1","orders",""],"host":["partners","muy","com","co"],"query":[],"variable":[]}},"response":[{"id":"832e0387-3b8d-4def-93fd-8d38f2d24a1f","name":"SUCCESS","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"user\": {\n    \"id\": \"0\",\n    \"name\": \"INTEGRATION\",\n    \"phone\": \"3163535\",\n    \"last_name\": \"INTEGRATION\",\n    \"address_area\": \"El Chicó\",\n    \"address_city\": \"Bogota\",\n    \"address_description\": \"\"\n  },\n  \"order_information\": {\n    \"notes\": \"\",\n    \"store_id\": \"2342342342342344\",\n    \"order_id\": \"1005de763\",\n    \"order_code\": \"100591773\",\n    \"order_type_order\": 0,\n    \"order_delivery_arrival_time\": \"17:18\",\n    \"order_payment\": {\n      \"method\": \"Tarjeta\",\n      \"order_total_order\": 31600,\n      \"order_total_discount\": 11949,\n      \"order_total_delivery\": 4801,\n      \"order_total_tip\": 0,\n      \"order_total_neto\": 24452,\n      \"order_total_without_discount\": 43600,\n      \"order_internal_discount\": 5700\n    },\n    \"final_products\": [\n      {\n        \"name\": \"Combo WOW x4\",\n        \"quantity\": 1,\n        \"notes\": \"\",\n        \"price\": \"31600\",\n        \"discount\": 5700,\n        \"product_id\": \"12276489554839470107\",\n        \"groups\": [\n          {\n            \"name\": \"Selecciona tus 4 MUY\",\n            \"group_id\": \"12276489554839470106\",\n            \"portions\": [\n              {\n                \"name\": \"MUY Arroz con pollo\",\n                \"quantity\": 1,\n                \"portion_id\": \"17680480075943772444\"\n              },\n              {\n                \"name\": \"MUY Paisa\",\n                \"quantity\": 1,\n                \"portion_id\": \"17680480075943772439\"\n              },\n              {\n                \"name\": \"MUY Casero\",\n                \"quantity\": 1,\n                \"portion_id\": \"17680480075943772443\"\n              },\n              {\n                \"name\": \"MUY Cubano\",\n                \"quantity\": 1,\n                \"portion_id\": \"17680480075943772438\"\n              }\n            ]\n          }\n        ]\n      },\n      {\n        \"name\": \"MUY MUY Arroz con pollo\",\n        \"quantity\": 1,\n        \"notes\": \"\",\n        \"price\": 9900,\n        \"product_id\": \"26257095296811382\",\n        \"groups\": [\n          {\n            \"name\": \"Cambio de bebida\",\n            \"group_id\": \"26257095296811388\",\n            \"portions\": [\n              {\n                \"name\": \"Coca Cola Zero 500\",\n                \"quantity\": 1,\n                \"portion_id\": \"26257095296811338\"\n              }\n            ]\n          }\n        ]\n      }\n    ]\n  },\n  \"integration\": {\n    \"name\": \"rappi\",\n    \"origin\": 7\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/v1/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"229"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 28 Jul 2020 16:06:05 GMT"},{"key":"x-amzn-RequestId","value":"22cb12e4-368e-4bd6-a496-3ec0d2622931"},{"key":"x-amz-apigw-id","value":"QZD0eHnWoAMF68g="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f204ce9-9ab277683cc35c3ee2c88e1a"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 f0d6c9b495ebafa94a1c28c69b13c175.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BOG50-C1"},{"key":"X-Amz-Cf-Id","value":"7UB2YTIe0BH7UTEJ7XyFUfON2gmhwLVu3hoFbo2t01sa1iLDWgMi5A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"code\": 200,\n    \"result_code\": \"\",\n    \"flow_type\": 1,\n    \"locale\": \"es-CO\",\n    \"message\": \"Order created\",\n    \"data\": {\n        \"order_id\": \"2bdb3b1c02213ab\",\n        \"external_id\": \"1005de763\",\n        \"number_products\": 1,\n        \"sub_total\": 31600,\n        \"tax\": 0,\n        \"total\": 25900\n    }\n}"},{"id":"fc0c8982-bf93-45d3-aad6-67985c65fe00","name":"Order Warning 422","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"user\": {\n    \"id\": 0,\n    \"name\": \"Pepito\",\n    \"last_name\": \"Pérez\",\n    \"phone\": \"3005556677\",\n    \"address_area\": \"Aquí va el barrio\",\n    \"address_city\": \"Aquí toda la dirección\",\n    \"address_description\": \"Aqui descripcion de la dirección\"\n  },\n  \"order_information\": {\n    \"store_id\": \"Id de tienda MUY\",\n    \"order_id\": \"Id de la orden de integración\",\n    \"order_code\": \"Código que es mostrado al usuario\",\n    \"order_type_order\": 0,\n    \"order_delivery_arrival_time\": \"00:00\",\n    \"notes\": \"\",\n    \"order_payment\": {\n      \"method\": \"Descripcion del metodo de pago\",\n      \"order_total_order\": 0,\n      \"order_total_discount\": 0,\n      \"order_total_delivery\": 0,\n      \"order_total_neto\": 0,\n      \"order_total_without_discount\": 0,\n      \"order_discount_detail\": [\n        {\n          \"description\": \"Descripcion del descuento\",\n          \"value\": 0,\n          \"code\": \"\",\n          \"type\": 0,\n          \"priority\": 0,\n          \"notes\": \"\"\n        }\n      ]\n    },\n    \"final_products\": [\n      {\n        \"product_id\": \"final_product\",\n        \"quantity\": 0,\n        \"notes\": \"\",\n        \"groups\": [\n          {\n            \"group_id\": \"group\",\n            \"portions\": [\n              {\n                \"portion_id\": \"portion\"\n              }\n            ]\n          }\n        ]\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://gateway.muydev.com/v1/order"},"status":"OK","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"178"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 12 Feb 2020 16:32:14 GMT"},{"key":"x-amzn-RequestId","value":"1db85120-8ee7-45fe-8d5b-2bd8ccff2c48"},{"key":"x-amz-apigw-id","value":"HytFjGDHIAMFZOA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5e442889-c38c88841af8977c89181ba8;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 5dd2304368effbad5413134075a82ff1.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"MIA3-C3"},{"key":"X-Amz-Cf-Id","value":"Ory_2Vd2u9l0xZwPNFMfo5qgliZX0wjmtK3979Chg3CygYCRrR4M8g=="}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"WARNING\",\n    \"code\": 422,\n    \"result_code\": \"\",\n    \"flow_type\": 1,\n    \"locale\": \"es-CO\",\n    \"message\": \"Error processing the order\",\n    \"data\": {\n        \"error\": \"Creating default object from empty value\"\n    }\n}"}],"_postman_id":"94441716-d98f-4a57-9867-02d3a495ec47"},{"name":"Authentication","id":"6c4f8f6a-06a9-4c18-85df-356432ef537a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"user_key\": \"84665af6-3834-4c17-a066-100cad2a51e7\",\n  \"user_secret\": \"eJwFwUECACAEBMAvLQp7lPT/JzVD46NAqhd8e/uoxj5lKLvJuVpyItrzpYVMY5KtwQRmCT/Q/A5S\"\n}"},"url":"{{base_url}}/v1/auth","description":"<h1 id=\"description\">Description</h1>\n<p>Authentication endpoint to get the token</p>\n<h1 id=\"resource\">Resource</h1>\n<blockquote>\n<p>POST {{base_url}}/v1/auth</p>\n</blockquote>\n<hr />\n<h1 id=\"path-paramethers\">Path Paramethers</h1>\n<h2 id=\"authentication-details\">Authentication Details</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>user_key</td>\n<td>String, not null</td>\n<td>Unique string identifier for the user</td>\n</tr>\n<tr>\n<td>user_secret</td>\n<td>String, not null</td>\n<td>Secret for the user</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n","urlObject":{"path":["v1","auth"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"eaf47eeb-6238-43ae-8d74-a120cb3ab251","name":"Authentication Successful","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"user_key\": \"AA123131523452\",\n  \"user_secret\": \"939F9101AC40656C6E2275BA30A3D89ED2A1B77C68F8371EC0E89C279800E419\"\n}","options":{"raw":{"language":"json"}}},"url":"https://gateway.muydev.com/v1/auth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 20 Dec 2019 20:04:59 GMT"},{"key":"ETag","value":"W/\"a4-rWRPj2mTYaJV0RsNNd+2EgzcJ9Q\""},{"key":"Server","value":"nginx"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-srv-span","value":"v=1;s=7eb35c85312dd435"},{"key":"x-srv-trace","value":"v=1;t=1efeff02381c4e5d"},{"key":"Content-Length","value":"139"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\":\"Authentication successful!\",\n    \"token\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiaWF0IjoxNTM0OTMzNTY2LCJleHAiOjE1MzUwMTk5NjZ9.3xOdoxpK8hb42ykjMIl6rwLafB63Y-EQNOO9fFamp68\"\n}"},{"id":"ff816007-79c8-4da0-8447-1858f249a9ed","name":"Authentication Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"user_key\": \"AA123131523452\",\n  \"user_secret\": \"939F9101AC40656C6E2275BA30A3D89ED2A1B77C68F8371EC0E89C279800E419\"\n}","options":{"raw":{"language":"json"}}},"url":"https://gateway.muydev.com/v1/auth"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 02 Jan 2020 18:00:32 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"47"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"9214aba4-ceba-4259-8d10-9da5be910fd8"},{"key":"x-amz-apigw-id","value":"FrxmAFJhoAMFVCA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5e0e2fbf-6c785410deff1bcaa88657a2;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"ParameterNotFound\"\n}"}],"_postman_id":"6c4f8f6a-06a9-4c18-85df-356432ef537a"},{"name":"Pay Order","id":"45b9ff2f-1d04-45ad-bdcc-367b9188d9a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Expect","value":"application/json","type":"text"}],"url":"{{base_url}}/v1/store/:id/orders/pay","urlObject":{"path":["v1","store",":id","orders","pay"],"host":["{{base_url}}"],"query":[],"variable":[{"description":{"content":"<p>Store id to check status on</p>\n","type":"text/plain"},"type":"string","value":"2","key":"id"}]}},"response":[{"id":"090b48d2-91ba-49e9-8a16-cade28b14b02","name":"Store Offline","originalRequest":{"method":"GET","header":[{"key":"Expect","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjcsIm5hbWUiOiJyYXBwaSIsImlhdCI6MTU4MDgzMDcxNSwiZXhwIjoxNTgwODMxMzE1fQ.n1NnpzG_CzNvgxF5xYULpGUZXeN5gdrOUcN00qpfKYYgega12hsg8CadYidSsofb54iLO7hU61tYYzaow8fGhg","type":"text"}],"url":{"raw":"{{base_url}}/v1/store/:id/status","host":["{{base_url}}"],"path":["v1","store",":id","status"],"variable":[{"key":"id","value":"2","description":"Store id to check status on"}]}},"status":"OK","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2258"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 04 Feb 2020 15:39:00 GMT"},{"key":"x-amzn-RequestId","value":"ac0338d6-372f-44e8-b9a7-6b3a42cba994"},{"key":"x-amz-apigw-id","value":"HYNzBGPwoAMFWYA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5e399013-f4a1bd3652532ed0ce60468d;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 775cdf3b95883d0b44917144dc3a044e.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"IAH50-C4"},{"key":"X-Amz-Cf-Id","value":"Yk5InYyWj_hBDtJKBVn8XcZhlK_0wa4aqQu5fdKZdp_LQb3AASba2A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"status\": \"offline\"\n    \"message\": \"Store Offline\",\n    \"last_time_online\": \"2019-12-19 12:13:12\"\n}"},{"id":"9847b06a-838f-4fba-8c95-9618bdf3f44b","name":"Store Online","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjcsIm5hbWUiOiJyYXBwaSIsImlhdCI6MTU4MDgzMDcxNSwiZXhwIjoxNTgwODMxMzE1fQ.n1NnpzG_CzNvgxF5xYULpGUZXeN5gdrOUcN00qpfKYYgega12hsg8CadYidSsofb54iLO7hU61tYYzaow8fGhg","type":"text"}],"url":{"raw":"https://gateway.muydev.com/v1/store/:id/status","protocol":"https","host":["gateway","muydev","com"],"path":["v1","store",":id","status"],"variable":[{"key":"id","value":"5"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 20 Dec 2019 20:10:09 GMT"},{"key":"ETag","value":"W/\"96-TmaW8mJnRKK42sZor5CoHUxYs00\""},{"key":"Server","value":"nginx"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-srv-span","value":"v=1;s=65849e9c168d7c18"},{"key":"x-srv-trace","value":"v=1;t=153eff6d5367fa44"},{"key":"Content-Length","value":"135"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"status\": online,\n    \"message\": \"Store Online\",\n    \"last_time_online\": \"2019-12-19 12:13:12\"\n}"}],"_postman_id":"45b9ff2f-1d04-45ad-bdcc-367b9188d9a8"},{"name":"Store Status","id":"ccadd617-5b42-418b-a637-85bfa1564dd6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Expect","value":"application/json","type":"text"}],"url":"{{base_url}}/v1/store/:id/status","description":"<p><em>Resource URL <code>GET</code></em>\nGet store status by id</p>\n<blockquote>\n<p><a href=\"https://dev.cubano.muydev.com/api/v1/integration/store/2/status\">https://dev.cubano.muydev.com/api/v1/integration/store/2/status</a></p>\n</blockquote>\n<h2 id=\"header\">Header</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Autorization</code></td>\n<td>[Required] You must send the authorization as Bearer Token to access the resource.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"path-params\">Path params</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>Integer</td>\n<td>[Required] You must send the {id} as store identificator.</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h2 id=\"pre-script-ajax\">Pre-Script Ajax</h2>\n<pre><code>var settings = {\n    \"url\": \"https://dev.cubano.muydev.com/api/v1/integration/store/2/status\",\n    \"method\": \"GET\",\n    \"timeout\": 0,\n    \"headers\": {\n        \"Authorization\": \"{{JWT-TOKEN}}\",\n     }\n};\n\n$.ajax(settings).done(function (response) {\n  console.log(response);\n});</code></pre>\n\n<h2 id=\"successfully-response-when-store-is-online\">Successfully response when store is online</h2>\n<pre><code>\n{\n    \"status\": \"SUCCESS\",\n    \"code\": 200,\n    \"result_code\": \"\",\n    \"flow_type\": 1,\n    \"locale\": \"es-CO\",\n    \"message\": \"Store online\",\n    \"data\": {\n        \"success\": true,\n        \"status\": \"online\",\n        \"online\": true,\n        \"message\": \"Store online\",\n        \"menus\": [\n            {\n                \"name\": \"Menú Desayuno\",\n                \"week_schedule\": \"07:00 - 23:30\",\n                \"week_schedule_st\": \"11:30 - 15:30\",\n                \"week_schedule_sd\": \"11:30 - 13:30\"\n            },\n            {\n                \"name\": \"Menú Almuerzo\",\n                \"week_schedule\": \"07:00 - 23:30\",\n                \"week_schedule_st\": \"11:30 - 23:30\",\n                \"week_schedule_sd\": \"\"\n            }\n        ]\n    }\n}\n</code></pre>\n\n<h2 id=\"successfully-response-when-store-is-offline\">Successfully response when store is offline</h2>\n<pre><code>\n{\n    \"status\": \"SUCCESS\",\n    \"code\": 200,\n    \"result_code\": \"\",\n    \"flow_type\": 1,\n    \"locale\": \"es-CO\",\n    \"message\": \"Store offline\",\n    \"data\": {\n        \"success\": true,\n        \"status\": \"offline\",\n        \"online\": false,\n        \"message\": \"Store offline\",\n        \"menus\": [\n            {\n                \"name\": \"Menú Desayuno\",\n                \"week_schedule\": \"07:00 - 12:30\",\n                \"week_schedule_st\": \"11:30 - 15:30\",\n                \"week_schedule_sd\": \"11:30 - 13:30\"\n            },\n            {\n                \"name\": \"Menú Almuerzo\",\n                \"week_schedule\": \"07:00 - 12:30\",\n                \"week_schedule_st\": \"11:30 - 23:30\",\n                \"week_schedule_sd\": \"\"\n            }\n        ]\n    }\n}\n</code></pre>\n\n<h2 id=\"response-when-integration-not-found\">Response when integration not found</h2>\n<pre><code>\n{\n    \"status\": \"ERROR\",\n    \"code\": 404,\n    \"result_code\": \"\",\n    \"flow_type\": 1,\n    \"locale\": \"es-CO\",\n    \"message\": \"Integration not found\",\n    \"data\": {\n        \"success\": false,\n        \"status\": \"not found\",\n        \"online\": false,\n        \"message\": \"Integration not found\"\n    }\n}\n</code></pre>","urlObject":{"path":["v1","store",":id","status"],"host":["{{base_url}}"],"query":[],"variable":[{"description":{"content":"<p>Store id to check status on</p>\n","type":"text/plain"},"type":"string","value":"2","key":"id"}]}},"response":[{"id":"b45550bc-72d0-4a0c-8e3f-a8605cb839a8","name":"Store Offline","originalRequest":{"method":"GET","header":[{"key":"Expect","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjcsIm5hbWUiOiJyYXBwaSIsImlhdCI6MTU4MDgzMDcxNSwiZXhwIjoxNTgwODMxMzE1fQ.n1NnpzG_CzNvgxF5xYULpGUZXeN5gdrOUcN00qpfKYYgega12hsg8CadYidSsofb54iLO7hU61tYYzaow8fGhg","type":"text"}],"url":{"raw":"{{base_url}}/v1/store/:id/status","host":["{{base_url}}"],"path":["v1","store",":id","status"],"variable":[{"key":"id","value":"2","description":"Store id to check status on"}]}},"status":"OK","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2258"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 04 Feb 2020 15:39:00 GMT"},{"key":"x-amzn-RequestId","value":"ac0338d6-372f-44e8-b9a7-6b3a42cba994"},{"key":"x-amz-apigw-id","value":"HYNzBGPwoAMFWYA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5e399013-f4a1bd3652532ed0ce60468d;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 775cdf3b95883d0b44917144dc3a044e.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"IAH50-C4"},{"key":"X-Amz-Cf-Id","value":"Yk5InYyWj_hBDtJKBVn8XcZhlK_0wa4aqQu5fdKZdp_LQb3AASba2A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"code\": 200,\n    \"result_code\": \"\",\n    \"flow_type\": 1,\n    \"locale\": \"es-CO\",\n    \"message\": \"Store offline\",\n    \"data\": {\n        \"success\": true,\n        \"status\": \"offline\",\n        \"online\": false,\n        \"message\": \"Store offline\",\n        \"menus\": [\n            {\n                \"name\": \"Menú Desayuno\",\n                \"week_schedule\": \"07:00 - 12:30\",\n                \"week_schedule_st\": \"11:30 - 15:30\",\n                \"week_schedule_sd\": \"11:30 - 13:30\"\n            },\n            {\n                \"name\": \"Menú Almuerzo\",\n                \"week_schedule\": \"07:00 - 12:30\",\n                \"week_schedule_st\": \"11:30 - 23:30\",\n                \"week_schedule_sd\": \"\"\n            }\n        ]\n    }\n}"},{"id":"bce5e01b-c99a-492c-80dd-bb3668f2cfd4","name":"Integration not found","originalRequest":{"method":"GET","header":[{"key":"Expect","value":"application/json","type":"text"}],"url":{"raw":"https://gateway.muydev.com/v1/store/:id/status","protocol":"https","host":["gateway","muydev","com"],"path":["v1","store",":id","status"],"query":[{"key":"","value":"","type":"text","disabled":true}],"variable":[{"key":"id","value":"2"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ERROR\",\n    \"code\": 404,\n    \"result_code\": \"\",\n    \"flow_type\": 1,\n    \"locale\": \"es-CO\",\n    \"message\": \"Integration not found\",\n    \"data\": {\n        \"success\": false,\n        \"status\": \"not found\",\n        \"online\": false,\n        \"message\": \"Integration not found\"\n    }\n}"},{"id":"db1ed522-fdca-410f-9f06-6566fa6bcb41","name":"Store Online","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjcsIm5hbWUiOiJyYXBwaSIsImlhdCI6MTU4MDgzMDcxNSwiZXhwIjoxNTgwODMxMzE1fQ.n1NnpzG_CzNvgxF5xYULpGUZXeN5gdrOUcN00qpfKYYgega12hsg8CadYidSsofb54iLO7hU61tYYzaow8fGhg","type":"text"}],"url":{"raw":"https://gateway.muydev.com/v1/store/:id/status","protocol":"https","host":["gateway","muydev","com"],"path":["v1","store",":id","status"],"variable":[{"key":"id","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 20 Dec 2019 20:10:09 GMT"},{"key":"ETag","value":"W/\"96-TmaW8mJnRKK42sZor5CoHUxYs00\""},{"key":"Server","value":"nginx"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-srv-span","value":"v=1;s=65849e9c168d7c18"},{"key":"x-srv-trace","value":"v=1;t=153eff6d5367fa44"},{"key":"Content-Length","value":"135"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"code\": 200,\n    \"result_code\": \"\",\n    \"flow_type\": 1,\n    \"locale\": \"es-CO\",\n    \"message\": \"Store online\",\n    \"data\": {\n        \"success\": true,\n        \"status\": \"online\",\n        \"online\": true,\n        \"message\": \"Store online\",\n        \"menus\": [\n            {\n                \"name\": \"Menú Desayuno\",\n                \"week_schedule\": \"07:00 - 23:30\",\n                \"week_schedule_st\": \"11:30 - 15:30\",\n                \"week_schedule_sd\": \"11:30 - 13:30\"\n            },\n            {\n                \"name\": \"Menú Almuerzo\",\n                \"week_schedule\": \"07:00 - 23:30\",\n                \"week_schedule_st\": \"11:30 - 23:30\",\n                \"week_schedule_sd\": \"\"\n            }\n        ]\n    }\n}"}],"_postman_id":"ccadd617-5b42-418b-a637-85bfa1564dd6"},{"name":"Get Orders","id":"c18d5428-55ba-4f61-9fb3-857bf3a3f3d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Expect","value":"application/json","type":"text"}],"url":"{{base_url}}/v1/store/:id/orders","urlObject":{"path":["v1","store",":id","orders"],"host":["{{base_url}}"],"query":[],"variable":[{"description":{"content":"<p>Store id to check status on</p>\n","type":"text/plain"},"type":"string","value":"2","key":"id"}]}},"response":[{"id":"35d8cf73-0afe-4f67-b9c0-40933608b501","name":"Store Offline","originalRequest":{"method":"GET","header":[{"key":"Expect","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjcsIm5hbWUiOiJyYXBwaSIsImlhdCI6MTU4MDgzMDcxNSwiZXhwIjoxNTgwODMxMzE1fQ.n1NnpzG_CzNvgxF5xYULpGUZXeN5gdrOUcN00qpfKYYgega12hsg8CadYidSsofb54iLO7hU61tYYzaow8fGhg","type":"text"}],"url":{"raw":"{{base_url}}/v1/store/:id/status","host":["{{base_url}}"],"path":["v1","store",":id","status"],"variable":[{"key":"id","value":"2","description":"Store id to check status on"}]}},"status":"OK","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2258"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 04 Feb 2020 15:39:00 GMT"},{"key":"x-amzn-RequestId","value":"ac0338d6-372f-44e8-b9a7-6b3a42cba994"},{"key":"x-amz-apigw-id","value":"HYNzBGPwoAMFWYA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5e399013-f4a1bd3652532ed0ce60468d;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 775cdf3b95883d0b44917144dc3a044e.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"IAH50-C4"},{"key":"X-Amz-Cf-Id","value":"Yk5InYyWj_hBDtJKBVn8XcZhlK_0wa4aqQu5fdKZdp_LQb3AASba2A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"status\": \"offline\"\n    \"message\": \"Store Offline\",\n    \"last_time_online\": \"2019-12-19 12:13:12\"\n}"},{"id":"3892b370-44d7-419a-af00-fea170fea0d6","name":"Store Online","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjcsIm5hbWUiOiJyYXBwaSIsImlhdCI6MTU4MDgzMDcxNSwiZXhwIjoxNTgwODMxMzE1fQ.n1NnpzG_CzNvgxF5xYULpGUZXeN5gdrOUcN00qpfKYYgega12hsg8CadYidSsofb54iLO7hU61tYYzaow8fGhg","type":"text"}],"url":{"raw":"https://gateway.muydev.com/v1/store/:id/status","protocol":"https","host":["gateway","muydev","com"],"path":["v1","store",":id","status"],"variable":[{"key":"id","value":"5"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 20 Dec 2019 20:10:09 GMT"},{"key":"ETag","value":"W/\"96-TmaW8mJnRKK42sZor5CoHUxYs00\""},{"key":"Server","value":"nginx"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-srv-span","value":"v=1;s=65849e9c168d7c18"},{"key":"x-srv-trace","value":"v=1;t=153eff6d5367fa44"},{"key":"Content-Length","value":"135"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"status\": online,\n    \"message\": \"Store Online\",\n    \"last_time_online\": \"2019-12-19 12:13:12\"\n}"}],"_postman_id":"c18d5428-55ba-4f61-9fb3-857bf3a3f3d9"},{"name":"Get Invoice","id":"29dad19a-f075-4375-a509-43e8f5829a64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Expect","value":"application/json","type":"text"}],"url":"{{base_url}}/v1/stores/:id/orders/invoice?file_name=invoice-1532877-873760.pdf","urlObject":{"path":["v1","stores",":id","orders","invoice"],"host":["{{base_url}}"],"query":[{"key":"file_name","value":"invoice-1532877-873760.pdf"}],"variable":[{"type":"string","value":"98367971927261185","key":"id"}]}},"response":[{"id":"96d93427-c525-46dd-8f16-acadb2f80c73","name":"Store Offline","originalRequest":{"method":"GET","header":[{"key":"Expect","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjcsIm5hbWUiOiJyYXBwaSIsImlhdCI6MTU4MDgzMDcxNSwiZXhwIjoxNTgwODMxMzE1fQ.n1NnpzG_CzNvgxF5xYULpGUZXeN5gdrOUcN00qpfKYYgega12hsg8CadYidSsofb54iLO7hU61tYYzaow8fGhg","type":"text"}],"url":{"raw":"{{base_url}}/v1/store/:id/status","host":["{{base_url}}"],"path":["v1","store",":id","status"],"variable":[{"key":"id","value":"2","description":"Store id to check status on"}]}},"status":"OK","code":204,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2258"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 04 Feb 2020 15:39:00 GMT"},{"key":"x-amzn-RequestId","value":"ac0338d6-372f-44e8-b9a7-6b3a42cba994"},{"key":"x-amz-apigw-id","value":"HYNzBGPwoAMFWYA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5e399013-f4a1bd3652532ed0ce60468d;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 775cdf3b95883d0b44917144dc3a044e.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"IAH50-C4"},{"key":"X-Amz-Cf-Id","value":"Yk5InYyWj_hBDtJKBVn8XcZhlK_0wa4aqQu5fdKZdp_LQb3AASba2A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"status\": \"offline\"\n    \"message\": \"Store Offline\",\n    \"last_time_online\": \"2019-12-19 12:13:12\"\n}"},{"id":"d32170db-325d-451b-b1cf-acc768b0105f","name":"Store Online","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjcsIm5hbWUiOiJyYXBwaSIsImlhdCI6MTU4MDgzMDcxNSwiZXhwIjoxNTgwODMxMzE1fQ.n1NnpzG_CzNvgxF5xYULpGUZXeN5gdrOUcN00qpfKYYgega12hsg8CadYidSsofb54iLO7hU61tYYzaow8fGhg","type":"text"}],"url":{"raw":"https://gateway.muydev.com/v1/store/:id/status","protocol":"https","host":["gateway","muydev","com"],"path":["v1","store",":id","status"],"variable":[{"key":"id","value":"5"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 20 Dec 2019 20:10:09 GMT"},{"key":"ETag","value":"W/\"96-TmaW8mJnRKK42sZor5CoHUxYs00\""},{"key":"Server","value":"nginx"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-srv-span","value":"v=1;s=65849e9c168d7c18"},{"key":"x-srv-trace","value":"v=1;t=153eff6d5367fa44"},{"key":"Content-Length","value":"135"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"status\": online,\n    \"message\": \"Store Online\",\n    \"last_time_online\": \"2019-12-19 12:13:12\"\n}"}],"_postman_id":"29dad19a-f075-4375-a509-43e8f5829a64"}],"id":"22de5903-ad8e-46a5-bf99-8b9d3fafba8a","_postman_id":"22de5903-ad8e-46a5-bf99-8b9d3fafba8a","description":""},{"name":"v2","item":[{"name":"robinfood","item":[{"name":"Order","id":"920bb172-6d10-47ba-ae61-8b24edc6e719","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"user\": {\n    \"id\": \"0\",\n    \"name\": \"INTEGRATION\",\n    \"phone\": \"3163535\",\n    \"email\": \"test@email.com\",\n    \"identification\": \"123456789\",\n    \"last_name\": \"INTEGRATION\",\n    \"address_area\": \"El Chicó\",\n    \"address_city\": \"Bogota\",\n    \"address_description\": \"\",\n    \"address_detail\":{\n        \"department\": \"Bogota\",\n        \"city\": \"Bogota\",\n        \"type_via\": \"Autopista, Avenida, etc\",\n        \"primary_via\": \"Av ciudad de cali\",\n        \"secondary_via\": \"Av Boyaca\",\n        \"number\":\"13-42\",\n        \"detail\": \"Número interior/piso\",\n        \"address_string\": \"Calle 59 #14-24\",\n        \"place\": \"casa, trabajo, etc\",\n        \"latitude\": \"4.60971\",\n        \"longitude\": \"-74.08175\"\n    }\n  },\n  \"order_information\": {\n    \"notes\": \"\",\n    \"store_id\": \"2342342342342344\",\n    \"order_id\": \"1005de763\",\n    \"order_code\": \"100591773\",\n    \"order_type_order\": 0,\n    \"order_delivery_arrival_time\": \"17:18\",\n    \"order_payment\": {\n      \"method\": \"Tarjeta\",\n      \"order_total_order\": 31600,\n      \"order_total_discount\": 11949,\n      \"order_total_delivery\": 4801,\n      \"order_total_tip\": 0,\n      \"order_total_neto\": 24452,\n      \"order_total_without_discount\": 43600,\n      \"order_internal_discount\": 5700\n    },\n    \"final_products\": [\n      {\n        \"name\": \"Combo WOW x4\",\n        \"quantity\": 1,\n        \"notes\": \"\",\n        \"price\": \"31600\",\n        \"discount\": 5700,\n        \"product_id\": \"12276489554839470107\",\n        \"groups\": [\n          {\n            \"name\": \"Selecciona tus 4 MUY\",\n            \"group_id\": \"12276489554839470106\",\n            \"portions\": [\n              {\n                \"name\": \"MUY Arroz con pollo\",\n                \"quantity\": 1,\n                \"portion_id\": \"17680480075943772444\"\n              },\n              {\n                \"name\": \"MUY Paisa\",\n                \"quantity\": 1,\n                \"portion_id\": \"17680480075943772439\"\n              },\n              {\n                \"name\": \"MUY Casero\",\n                \"quantity\": 1,\n                \"portion_id\": \"17680480075943772443\"\n              },\n              {\n                \"name\": \"MUY Cubano\",\n                \"quantity\": 1,\n                \"portion_id\": \"17680480075943772438\"\n              }\n            ]\n          }\n        ]\n      },\n      {\n        \"name\": \"MUY MUY Arroz con pollo\",\n        \"quantity\": 1,\n        \"notes\": \"\",\n        \"price\": 9900,\n        \"product_id\": \"26257095296811382\",\n        \"groups\": [\n          {\n            \"name\": \"Cambio de bebida\",\n            \"group_id\": \"26257095296811388\",\n            \"portions\": [\n              {\n                \"name\": \"Coca Cola Zero 500\",\n                \"quantity\": 1,\n                \"portion_id\": \"26257095296811338\"\n              }\n            ]\n          }\n        ]\n      }\n    ]\n  },\n  \"integration\": {\n    \"name\": \"ifood\",\n    \"origin\": 8\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/v2/orders/","description":"<h1 id=\"description\">Description</h1>\n<p>This Order endpoint allows a developer to send order to POS MUY</p>\n<h1 id=\"resource\">Resource</h1>\n<blockquote>\n<p>POST <a href=\"https://partners.muydev.com/v1/order\">https://partners.muydev.com/v1/order</a></p>\n</blockquote>\n<h1 id=\"authorization\">Authorization</h1>\n<p>You must send the access token to the header as <em><code>Authorization</code></em> to access the resource.</p>\n<hr />\n<h1 id=\"path-paramethers\">Path Paramethers</h1>\n<h2 id=\"user\">User</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String, not null</td>\n<td>Unique string identifier for the user</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String, not null</td>\n<td>String of the user name</td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>String, not null</td>\n<td>The last name of the user</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>String, not null</td>\n<td>Phone user</td>\n</tr>\n<tr>\n<td>address_area</td>\n<td>String, not null</td>\n<td>String of the user address area</td>\n</tr>\n<tr>\n<td>address_city</td>\n<td>String, not null</td>\n<td>The city of the user</td>\n</tr>\n<tr>\n<td>address_description</td>\n<td>String</td>\n<td>Additional information of the user</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h2 id=\"user-address-detail\">User Address detail</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>department</td>\n<td>String, not null</td>\n<td>The department of the user</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String, not null</td>\n<td>The city of the user</td>\n</tr>\n<tr>\n<td>type_via</td>\n<td>String, not null</td>\n<td>Type of address road</td>\n</tr>\n<tr>\n<td>primary_via</td>\n<td>String, not null</td>\n<td>Primary via of address</td>\n</tr>\n<tr>\n<td>secondary_via</td>\n<td>String, not null</td>\n<td>Secondary via of address</td>\n</tr>\n<tr>\n<td>number</td>\n<td>String, not null</td>\n<td>Number of address</td>\n</tr>\n<tr>\n<td>detail</td>\n<td>String, not null</td>\n<td>Additional information of the user</td>\n</tr>\n<tr>\n<td>address_string</td>\n<td>String, not null</td>\n<td>Full address</td>\n</tr>\n<tr>\n<td>place</td>\n<td>String, not null</td>\n<td>Address place</td>\n</tr>\n<tr>\n<td>latitude</td>\n<td>String, not null</td>\n<td>Address latitude</td>\n</tr>\n<tr>\n<td>longitude</td>\n<td>String, not null</td>\n<td>Address longitude</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h2 id=\"order-information\">Order information</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Descriptión</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>store_id</td>\n<td>String, not null</td>\n<td>String of the store id</td>\n</tr>\n<tr>\n<td>order_id</td>\n<td>String, not null</td>\n<td>Order identifier provided by integrator</td>\n</tr>\n<tr>\n<td>order_code</td>\n<td>String, not null</td>\n<td>Order code seen by the user</td>\n</tr>\n<tr>\n<td>order_type</td>\n<td>String, not null</td>\n<td>Order type</td>\n</tr>\n<tr>\n<td>order_delivery_arrival_time</td>\n<td>String, not null</td>\n<td>String of the arrival hour of person delivery</td>\n</tr>\n<tr>\n<td>notes</td>\n<td>String</td>\n<td>Aditional notes of the order</td>\n</tr>\n<tr>\n<td>order_payment</td>\n<td>Object</td>\n<td>Object with information of the payment type provided  by integrator</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h2 id=\"external_payment\">External_payment</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Descriptión</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>method</td>\n<td>String, not null</td>\n<td>String of the payment method provided by integrator</td>\n</tr>\n<tr>\n<td>order_total_order</td>\n<td>Integer, not null</td>\n<td>The cost of the entire order, including taxes and fees</td>\n</tr>\n<tr>\n<td>order_total_discount</td>\n<td>Integer, not null</td>\n<td>Discounts applied in the order</td>\n</tr>\n<tr>\n<td>order_total_delivery</td>\n<td>Integer, not null</td>\n<td>The cost delivery</td>\n</tr>\n<tr>\n<td>order_total_neto</td>\n<td>Integer, not null</td>\n<td>The cost free taxes</td>\n</tr>\n<tr>\n<td>order_total_tip</td>\n<td>Integer</td>\n<td>The cost of tips for restaurant</td>\n</tr>\n<tr>\n<td>order_total_without_discount</td>\n<td>String, not null</td>\n<td>Total value without discounts</td>\n</tr>\n<tr>\n<td>order_internal_discount</td>\n<td>Integer</td>\n<td>Total value internal discounts</td>\n</tr>\n<tr>\n<td>order_discount_detail</td>\n<td>Object</td>\n<td>Object with discounts detail of the order</td>\n</tr>\n<tr>\n<td>final_products</td>\n<td>Object</td>\n<td>Object wtih final products of the order</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h2 id=\"external_discount_detail\">External_discount_detail</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Descriptión</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>description</td>\n<td>String</td>\n<td>String of the  discount description applied in the orde</td>\n</tr>\n<tr>\n<td>value</td>\n<td>Integer</td>\n<td>Total discount of the order</td>\n</tr>\n<tr>\n<td>code</td>\n<td>String</td>\n<td>Option promotional code</td>\n</tr>\n<tr>\n<td>type</td>\n<td>Integer</td>\n<td>Discount type</td>\n</tr>\n<tr>\n<td>priority</td>\n<td>Integer</td>\n<td>When there are several discounts, indicate the priority discount</td>\n</tr>\n<tr>\n<td>notes</td>\n<td>String</td>\n<td>Aditional notes of the discounts</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h2 id=\"final_products\">Final_products</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Descriptión</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>product_id</td>\n<td>String, not null</td>\n<td>Id of the final product</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String, not null</td>\n<td>String of the final product</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>Integer, not null</td>\n<td>Quantity of the final product</td>\n</tr>\n<tr>\n<td>price</td>\n<td>Integer</td>\n<td>The unit price of the product</td>\n</tr>\n<tr>\n<td>discount</td>\n<td>Integer</td>\n<td>The discount value of the product</td>\n</tr>\n<tr>\n<td>notes</td>\n<td>Integer</td>\n<td>Aditional notes of the order</td>\n</tr>\n<tr>\n<td>group</td>\n<td>Object</td>\n<td>Object with group information of the final product</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h2 id=\"group\">Group</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Descriptión</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>group_id</td>\n<td>String, not null</td>\n<td>String of the group external id</td>\n</tr>\n<tr>\n<td>portions</td>\n<td>Object</td>\n<td>Object with portions of the Group</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h2 id=\"portions\">Portions</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Descriptión</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>portion_id</td>\n<td>String, not null</td>\n<td>External Id of the group selected by user</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>Integer, not null</td>\n<td>Quantity of the portion</td>\n</tr>\n<tr>\n<td>price</td>\n<td>Integer</td>\n<td>The unit price of the portion</td>\n</tr>\n<tr>\n<td>discount</td>\n<td>Integer</td>\n<td>The discount value of the product</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n","urlObject":{"path":["v2","orders",""],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"276982c2-a4bc-48ce-bddc-afd01e795a4b","name":"SUCCESS","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"user\": {\n    \"id\": \"0\",\n    \"name\": \"INTEGRATION\",\n    \"phone\": \"3163535\",\n    \"last_name\": \"INTEGRATION\",\n    \"address_area\": \"El Chicó\",\n    \"address_city\": \"Bogota\",\n    \"address_description\": \"\"\n  },\n  \"order_information\": {\n    \"notes\": \"\",\n    \"store_id\": \"2342342342342344\",\n    \"order_id\": \"1005de763\",\n    \"order_code\": \"100591773\",\n    \"order_type_order\": 0,\n    \"order_delivery_arrival_time\": \"17:18\",\n    \"order_payment\": {\n      \"method\": \"Tarjeta\",\n      \"order_total_order\": 31600,\n      \"order_total_discount\": 11949,\n      \"order_total_delivery\": 4801,\n      \"order_total_tip\": 0,\n      \"order_total_neto\": 24452,\n      \"order_total_without_discount\": 43600,\n      \"order_internal_discount\": 5700\n    },\n    \"final_products\": [\n      {\n        \"name\": \"Combo WOW x4\",\n        \"quantity\": 1,\n        \"notes\": \"\",\n        \"price\": \"31600\",\n        \"discount\": 5700,\n        \"product_id\": \"12276489554839470107\",\n        \"groups\": [\n          {\n            \"name\": \"Selecciona tus 4 MUY\",\n            \"group_id\": \"12276489554839470106\",\n            \"portions\": [\n              {\n                \"name\": \"MUY Arroz con pollo\",\n                \"quantity\": 1,\n                \"portion_id\": \"17680480075943772444\"\n              },\n              {\n                \"name\": \"MUY Paisa\",\n                \"quantity\": 1,\n                \"portion_id\": \"17680480075943772439\"\n              },\n              {\n                \"name\": \"MUY Casero\",\n                \"quantity\": 1,\n                \"portion_id\": \"17680480075943772443\"\n              },\n              {\n                \"name\": \"MUY Cubano\",\n                \"quantity\": 1,\n                \"portion_id\": \"17680480075943772438\"\n              }\n            ]\n          }\n        ]\n      },\n      {\n        \"name\": \"MUY MUY Arroz con pollo\",\n        \"quantity\": 1,\n        \"notes\": \"\",\n        \"price\": 9900,\n        \"product_id\": \"26257095296811382\",\n        \"groups\": [\n          {\n            \"name\": \"Cambio de bebida\",\n            \"group_id\": \"26257095296811388\",\n            \"portions\": [\n              {\n                \"name\": \"Coca Cola Zero 500\",\n                \"quantity\": 1,\n                \"portion_id\": \"26257095296811338\"\n              }\n            ]\n          }\n        ]\n      }\n    ]\n  },\n  \"integration\": {\n    \"name\": \"rappi\",\n    \"origin\": 7\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/v2/orders/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"229"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 28 Jul 2020 16:06:05 GMT"},{"key":"x-amzn-RequestId","value":"22cb12e4-368e-4bd6-a496-3ec0d2622931"},{"key":"x-amz-apigw-id","value":"QZD0eHnWoAMF68g="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5f204ce9-9ab277683cc35c3ee2c88e1a"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 f0d6c9b495ebafa94a1c28c69b13c175.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BOG50-C1"},{"key":"X-Amz-Cf-Id","value":"7UB2YTIe0BH7UTEJ7XyFUfON2gmhwLVu3hoFbo2t01sa1iLDWgMi5A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUCCESS\",\n    \"code\": 200,\n    \"result_code\": \"\",\n    \"flow_type\": 1,\n    \"locale\": \"es-CO\",\n    \"message\": \"Order created\",\n    \"data\": {\n        \"order_id\": \"2bdb3b1c02213ab\",\n        \"external_id\": \"1005de763\",\n        \"number_products\": 1,\n        \"sub_total\": 31600,\n        \"tax\": 0,\n        \"total\": 25900\n    }\n}"},{"id":"e3ab3814-1679-4180-8205-69c1dce11291","name":"Order Warning 422","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"user\": {\n    \"id\": 0,\n    \"name\": \"Pepito\",\n    \"last_name\": \"Pérez\",\n    \"phone\": \"3005556677\",\n    \"address_area\": \"Aquí va el barrio\",\n    \"address_city\": \"Aquí toda la dirección\",\n    \"address_description\": \"Aqui descripcion de la dirección\"\n  },\n  \"order_information\": {\n    \"store_id\": \"Id de tienda MUY\",\n    \"order_id\": \"Id de la orden de integración\",\n    \"order_code\": \"Código que es mostrado al usuario\",\n    \"order_type_order\": 0,\n    \"order_delivery_arrival_time\": \"00:00\",\n    \"notes\": \"\",\n    \"order_payment\": {\n      \"method\": \"Descripcion del metodo de pago\",\n      \"order_total_order\": 0,\n      \"order_total_discount\": 0,\n      \"order_total_delivery\": 0,\n      \"order_total_neto\": 0,\n      \"order_total_without_discount\": 0,\n      \"order_discount_detail\": [\n        {\n          \"description\": \"Descripcion del descuento\",\n          \"value\": 0,\n          \"code\": \"\",\n          \"type\": 0,\n          \"priority\": 0,\n          \"notes\": \"\"\n        }\n      ]\n    },\n    \"final_products\": [\n      {\n        \"product_id\": \"final_product\",\n        \"quantity\": 0,\n        \"notes\": \"\",\n        \"groups\": [\n          {\n            \"group_id\": \"group\",\n            \"portions\": [\n              {\n                \"portion_id\": \"portion\"\n              }\n            ]\n          }\n        ]\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/v2/orders/"},"status":"OK","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"178"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Wed, 12 Feb 2020 16:32:14 GMT"},{"key":"x-amzn-RequestId","value":"1db85120-8ee7-45fe-8d5b-2bd8ccff2c48"},{"key":"x-amz-apigw-id","value":"HytFjGDHIAMFZOA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5e442889-c38c88841af8977c89181ba8;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 5dd2304368effbad5413134075a82ff1.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"MIA3-C3"},{"key":"X-Amz-Cf-Id","value":"Ory_2Vd2u9l0xZwPNFMfo5qgliZX0wjmtK3979Chg3CygYCRrR4M8g=="}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"WARNING\",\n    \"code\": 422,\n    \"result_code\": \"\",\n    \"flow_type\": 1,\n    \"locale\": \"es-CO\",\n    \"message\": \"Error processing the order\",\n    \"data\": {\n        \"error\": \"Creating default object from empty value\"\n    }\n}"}],"_postman_id":"920bb172-6d10-47ba-ae61-8b24edc6e719"},{"name":"Authentication","id":"64df229d-8205-41ba-97eb-04a6cd0db4a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"user_key\": \"user_key\",\n  \"user_secret\": \"user_secret\"\n}"},"url":"{{base_url}}/v1/auth","description":"<h1 id=\"description\">Description</h1>\n<p>Authentication endpoint to get the token</p>\n<h1 id=\"resource\">Resource</h1>\n<blockquote>\n<p>POST {{base_url}}/v1/auth</p>\n</blockquote>\n<hr />\n<h1 id=\"path-paramethers\">Path Paramethers</h1>\n<h2 id=\"authentication-details\">Authentication Details</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>user_key</td>\n<td>String, not null</td>\n<td>Unique string identifier for the user</td>\n</tr>\n<tr>\n<td>user_secret</td>\n<td>String, not null</td>\n<td>Secret for the user</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n","urlObject":{"path":["v1","auth"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"94b93711-ef83-4f8f-97c6-42029fb88fb6","name":"Authentication Successful","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"user_key\": \"AA123131523452\",\n  \"user_secret\": \"939F9101AC40656C6E2275BA30A3D89ED2A1B77C68F8371EC0E89C279800E419\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/v1/auth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 20 Dec 2019 20:04:59 GMT"},{"key":"ETag","value":"W/\"a4-rWRPj2mTYaJV0RsNNd+2EgzcJ9Q\""},{"key":"Server","value":"nginx"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-srv-span","value":"v=1;s=7eb35c85312dd435"},{"key":"x-srv-trace","value":"v=1;t=1efeff02381c4e5d"},{"key":"Content-Length","value":"139"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\":\"Authentication successful!\",\n    \"token\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiaWF0IjoxNTM0OTMzNTY2LCJleHAiOjE1MzUwMTk5NjZ9.3xOdoxpK8hb42ykjMIl6rwLafB63Y-EQNOO9fFamp68\"\n}"},{"id":"cdc6f62d-2246-474e-8ce4-b43261eee87a","name":"Authentication Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"user_key\": \"AA123131523452\",\n  \"user_secret\": \"939F9101AC40656C6E2275BA30A3D89ED2A1B77C68F8371EC0E89C279800E419\"\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/v1/auth"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 02 Jan 2020 18:00:32 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"47"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"9214aba4-ceba-4259-8d10-9da5be910fd8"},{"key":"x-amz-apigw-id","value":"FrxmAFJhoAMFVCA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5e0e2fbf-6c785410deff1bcaa88657a2;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"ParameterNotFound\"\n}"}],"_postman_id":"64df229d-8205-41ba-97eb-04a6cd0db4a1"}],"id":"48752a29-899a-44b3-8ebf-0baba2137b9f","_postman_id":"48752a29-899a-44b3-8ebf-0baba2137b9f","description":""},{"name":"partner","item":[{"name":"Accept order","id":"50ceac59-7ad9-4688-8565-c1a274143f4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{partner_url}}/orders/{{partner_order_id}}/accept","description":"<h1 id=\"description\">Description</h1>\n<p>This endpoint is for providing the partner a structure needed by robinfood to notify if an order was accepted</p>\n<h1 id=\"authorization\">Authorization</h1>\n<p>Robinfood will send the access token provided by the partner authentication system.</p>\n","urlObject":{"path":["orders","{{partner_order_id}}","accept"],"host":["{{partner_url}}"],"query":[],"variable":[]}},"response":[{"id":"d53c5d75-cedd-428c-a383-9098bf4dc8ca","name":"Accept order successful","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{partner_url}}/orders/{{partner_order_id}}/accept"},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"50ceac59-7ad9-4688-8565-c1a274143f4c"},{"name":"Reject order","id":"e7cb3995-f135-4b3e-ab47-2761394d2f12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"reason\": \"The reason to reject the order by robinfood\",\r\n    \"items_sku\": [\r\n        \"123e4567-e89b-12d3-a456-426614174000\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{partner_url}}/orders/{{partner_order_id}}/reject","description":"<h1 id=\"description\">Description</h1>\n<p>This endpoint is for providing the partner a structure needed by robinfood to notify if an order was rejected.</p>\n<h1 id=\"authorization\">Authorization</h1>\n<p>Robinfood will send the access token provided by the partner authentication system.</p>\n<h1 id=\"body\">Body</h1>\n<h2 id=\"reject-data\">Reject data</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>reason</td>\n<td>String, not null</td>\n<td>the reason to reject the order</td>\n</tr>\n<tr>\n<td>items_sku</td>\n<td>List, nullable</td>\n<td>A list with the sku of the items that had errors on the order</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["orders","{{partner_order_id}}","reject"],"host":["{{partner_url}}"],"query":[],"variable":[]}},"response":[{"id":"83f64f04-a862-4566-bb4c-93af651e4882","name":"Reject order successful","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"reason\": \"The reason to reject the order by robinfood\",\r\n    \"items_sku\": [\r\n        \"123e4567-e89b-12d3-a456-426614174000\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{partner_url}}/orders/{{partner_order_id}}/reject"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"e7cb3995-f135-4b3e-ab47-2761394d2f12"},{"name":"Authentication","id":"3789ca61-4965-44e1-9829-db19ae070e48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"user_key\": \"user_key\",\n  \"user_secret\": \"user_secret\"\n}"},"url":"{{partner_url}}/auth","description":"<h1 id=\"description\">Description</h1>\n<p>Authentication endpoint to get the token</p>\n<h1 id=\"resource\">Resource</h1>\n<blockquote>\n<p>POST {{base_url}}/v1/auth</p>\n</blockquote>\n<hr />\n<h1 id=\"path-paramethers\">Path Paramethers</h1>\n<h2 id=\"authentication-details\">Authentication Details</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>user_key</td>\n<td>String, not null</td>\n<td>Unique string identifier for the user</td>\n</tr>\n<tr>\n<td>user_secret</td>\n<td>String, not null</td>\n<td>Secret for the user</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n","urlObject":{"path":["auth"],"host":["{{partner_url}}"],"query":[],"variable":[]}},"response":[{"id":"82c2dea4-9595-4ea1-b8cd-fe80f6c5a342","name":"Authentication Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"user_key\": \"AA123131523452\",\n  \"user_secret\": \"939F9101AC40656C6E2275BA30A3D89ED2A1B77C68F8371EC0E89C279800E419\"\n}","options":{"raw":{"language":"json"}}},"url":"{{partner_url}}/auth"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 02 Jan 2020 18:00:32 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"47"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"9214aba4-ceba-4259-8d10-9da5be910fd8"},{"key":"x-amz-apigw-id","value":"FrxmAFJhoAMFVCA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5e0e2fbf-6c785410deff1bcaa88657a2;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Authentication error\"\n}"},{"id":"ca5faad6-78ff-41d6-b2dc-3d5e880c70da","name":"Authentication Successful","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"user_key\": \"AA123131523452\",\n  \"user_secret\": \"939F9101AC40656C6E2275BA30A3D89ED2A1B77C68F8371EC0E89C279800E419\"\n}","options":{"raw":{"language":"json"}}},"url":"{{partner_url}}/auth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 20 Dec 2019 20:04:59 GMT"},{"key":"ETag","value":"W/\"a4-rWRPj2mTYaJV0RsNNd+2EgzcJ9Q\""},{"key":"Server","value":"nginx"},{"key":"Vary","value":"Accept-Encoding"},{"key":"x-srv-span","value":"v=1;s=7eb35c85312dd435"},{"key":"x-srv-trace","value":"v=1;t=1efeff02381c4e5d"},{"key":"Content-Length","value":"139"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\":\"Authentication successful!\",\n    \"token\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiaWF0IjoxNTM0OTMzNTY2LCJleHAiOjE1MzUwMTk5NjZ9.3xOdoxpK8hb42ykjMIl6rwLafB63Y-EQNOO9fFamp68\",\n    \"type\": \"Bearer\",\n    \"expires_at\": 1618427718\n}"}],"_postman_id":"3789ca61-4965-44e1-9829-db19ae070e48"}],"id":"befade9e-bedf-4915-8925-a1f2a34183d1","_postman_id":"befade9e-bedf-4915-8925-a1f2a34183d1","description":""}],"id":"b664ed25-f722-4b2d-8858-5fb5b8be14a3","_postman_id":"b664ed25-f722-4b2d-8858-5fb5b8be14a3","description":""}],"event":[{"listen":"prerequest","script":{"id":"9069e9cc-c767-4768-b67f-03c2de629b65","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a9f22745-4ca5-41c6-bfeb-fff9c644fa02","type":"text/javascript","exec":[""]}}]}