{"info":{"_postman_id":"993b7488-c647-491e-922c-76b99abf525a","name":"API V3","description":"<html><head></head><body><h2 id=\"rate-limiting\">Rate Limiting</h2>\n<p>Actualmente se encuentra con un rate limiting de 25 requests por 10 segundos. En caso de que se sobrepase esta cantidad se bloqueará la IP por el tiempo indicado en cabecera Retry-After.</p>\n<p>Se podrán aplicar de forma automática restricciones adicionales —incluyendo bloqueos prolongados o reducción de cuota— en caso de detectar patrones de uso ineficiente, tales como consultas reiteradas a recursos inexistentes, polling sobre información que no cambia, o volúmenes que excedan las necesidades operativas razonables.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"6932988","collectionId":"993b7488-c647-491e-922c-76b99abf525a","publishedId":"UyxeqUfa","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"DB351B"},"publishDate":"2023-08-02T01:41:47.000Z"},"item":[{"name":"Pedidos","item":[{"name":"Get Orders","id":"5e12fc1e-d0c1-4b7b-bdb1-db62cba20990","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"},{"key":"","value":""}],"url":"https://api.starkoms.org/api/v3/ext/orders","description":"<p>Lista los pedidos de la tienda.</p>\n<p><strong>Paginación</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parámetro</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>limit</code></td>\n<td>Pedidos por página. Máximo y valor por defecto: <strong>50</strong></td>\n</tr>\n<tr>\n<td><code>page</code></td>\n<td>Número de página, desde <code>1</code>. Requiere <code>limit</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>La respuesta no informa el total de pedidos: pide páginas hasta recibir menos pedidos que <code>limit</code>.</p>\n<p><strong>Orden</strong>: por defecto <code>id</code> ascendente. Para cambiarlo: <code>sort[0][key]=created_at&amp;sort[0][direction]=desc</code>.</p>\n<p><strong>Filtros</strong></p>\n<p><code>filter_groups[0][filters][0][key]=&lt;campo&gt;&amp;filter_groups[0][filters][0][value]=&lt;valor&gt;&amp;filter_groups[0][filters][0][operator]=&lt;operador&gt;</code></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Operador</th>\n<th>Significado</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>eq</code></td>\n<td>Igual (por defecto)</td>\n</tr>\n<tr>\n<td><code>gt</code> / <code>gte</code> / <code>lt</code> / <code>lte</code></td>\n<td>Mayor / mayor o igual / menor / menor o igual</td>\n</tr>\n<tr>\n<td><code>in</code></td>\n<td>Uno de varios valores, separados por coma</td>\n</tr>\n<tr>\n<td><code>bt</code></td>\n<td>Entre dos valores, separados por coma</td>\n</tr>\n</tbody>\n</table>\n</div><p>Para negar un filtro agrega <code>filter_groups[0][filters][0][not]=true</code>.</p>\n<p>Campos más usados: <code>order_reference</code>, <code>created_at</code>, <code>updated_at</code>, <code>order_state</code> (tipo de estado, por ejemplo <code>DEFAULT_IN_PACKAGING</code>; solo igualdad) y <code>source</code> (nombre del canal de venta).</p>\n<p>La respuesta <strong>incluye pedidos eliminados</strong> (con <code>deleted_at</code> informado), por ejemplo la versión anterior de un pedido reingresado. Para excluirlos filtra <code>key=deleted_at</code> con <code>value=null</code>.</p>\n<p><strong>Errores (HTTP 400)</strong>: token inválido, <code>page</code> sin <code>limit</code>, filtro sobre un campo inexistente o <code>source</code> con un canal que no existe (<code>Source not found</code>).</p>\n","urlObject":{"protocol":"https","path":["api","v3","ext","orders"],"host":["api","starkoms","org"],"query":[{"disabled":true,"key":"filter_groups[0][filters][0][operator]","value":"eq"},{"disabled":true,"key":"filter_groups[0][filters][0][value]","value":"2174005923"},{"disabled":true,"key":"filter_groups[0][filters][0][key]","value":"shipping_number"},{"disabled":true,"key":"filter_groups[0][filters][1][key]","value":"order_substate_id"},{"disabled":true,"key":"filter_groups[0][filters][1][value]","value":"286"},{"disabled":true,"key":"filter_groups[0][filters][1][operator]","value":"eq"},{"disabled":true,"key":"page","value":"1"},{"disabled":true,"description":{"content":"<p>default &amp; max : 50</p>\n","type":"text/plain"},"key":"limit","value":"50"}],"variable":[]}},"response":[{"id":"dceb7a98-0633-4ad8-b59c-271da7452740","name":"Get Orders","originalRequest":{"method":"GET","header":[{"key":"Store","value":"2","type":"text","disabled":true},{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"}],"url":{"raw":"https://api.starkoms.org/api/v3/ext/orders","protocol":"https","host":["api","starkoms","org"],"path":["api","v3","ext","orders"],"query":[{"key":"limit","value":"1","disabled":true},{"key":"page","value":"2","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc"},{"key":"Date","value":"Tue, 10 May 2022 17:35:04 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"-1"},{"key":"X-RateLimit-Limit","value":"1500"},{"key":"X-RateLimit-Remaining","value":"1499"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 112754,\n            \"order_reference\": \"IDENTIFICADOR_PEDIDO\",\n            \"store_id\": 50,\n            \"shipping_number\": \"0000000112754\",\n            \"total_products\": \"21970.00\",\n            \"total_shipping\": 2990,\n            \"total_discount\": \"0.00\",\n            \"total_paid\": \"24960.00\",\n            \"source_date\": \"2020-09-24 03:54:21\",\n            \"created_at\": \"2022-05-10T17:13:25+00:00\",\n            \"updated_at\": \"2022-05-10T17:32:54+00:00\",\n            \"deleted_at\": null,\n            \"carrier\": \"CarrierOMS\",\n            \"invoice_number\": null,\n            \"invoice_url\": null,\n            \"additional_data\": null,\n            \"tracking_url\": \"/#/tracking/OHpNZTBTYnNqRURqbUlBYnBtREc0Zz09\",\n            \"tracking_carrier\": null,\n            \"source\": {\n                \"id\": 2,\n                \"name\": \"Manual\",\n                \"type_id\": 3\n            },\n            \"customer\": {\n                \"id\": 114156,\n                \"firstname\": \"Juan\",\n                \"lastname\": \"Pérez\",\n                \"fullname\": \"Juan Pérez\",\n                \"email\": \"juan.perez@example.com\",\n                \"created_at\": \"2022-05-10T17:13:25+00:00\",\n                \"updated_at\": \"2022-05-10T17:13:25+00:00\",\n                \"store_id\": 50\n            },\n            \"address\": {\n                \"id\": 112986,\n                \"customer_id\": 114156,\n                \"street\": \"Santa Ester\",\n                \"number\": \"123\",\n                \"dpto\": \"B\",\n                \"city\": \"San Miguel\",\n                \"province\": \"San Miguel\",\n                \"state\": \"Región Metropolitana de Santiago\",\n                \"dni\": \"1-9\",\n                \"phone\": \"56999999999\",\n                \"store_id\": 50,\n                \"created_at\": \"2022-05-10T17:13:25+00:00\",\n                \"updated_at\": \"2022-05-10T17:13:25+00:00\",\n                \"additional\": null,\n                \"zip_code\": \"313333\",\n                \"country\": \"CL\",\n                \"full_address\": \"Santa Ester 123  B\",\n                \"latitude\": \"-33.4155458\",\n                \"longitude\": \"-70.6077416\"\n            },\n            \"order_state\": {\n                \"id\": 834,\n                \"name\": \"Listo para Enviar\",\n                \"store_id\": 50,\n                \"type\": \"DEFAULT_OUT_SHIPMENT\",\n                \"order\": \"5.0\",\n                \"colour\": \"primary\"\n            },\n            \"order_substate\": null\n        }\n    ]\n}"},{"id":"20a7bb24-d100-4df9-b0fd-dd13f8b371b3","name":"Get Orders / On Hold / Out Of Stock","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"},{"key":"","value":"","type":"text","disabled":true}],"url":{"raw":"https://api.starkoms.org/api/v3/ext/orders?filter_groups[0][filters][0][operator]=eq&filter_groups[0][filters][0][value]=1595&filter_groups[0][filters][0][key]=current_state&filter_groups[0][filters][1][key]=order_substate_id&filter_groups[0][filters][1][value]=286&filter_groups[0][filters][1][operator]=eq","protocol":"https","host":["api","starkoms","org"],"path":["api","v3","ext","orders"],"query":[{"key":"filter_groups[0][filters][0][operator]","value":"eq"},{"key":"filter_groups[0][filters][0][value]","value":"1595"},{"key":"filter_groups[0][filters][0][key]","value":"current_state"},{"key":"filter_groups[0][filters][1][key]","value":"order_substate_id"},{"key":"filter_groups[0][filters][1][value]","value":"286"},{"key":"filter_groups[0][filters][1][operator]","value":"eq"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc"},{"key":"Date","value":"Tue, 28 Feb 2023 15:45:01 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"-1"},{"key":"X-RateLimit-Limit","value":"1500"},{"key":"X-RateLimit-Remaining","value":"1499"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 230914,\n            \"order_reference\": \"o_ref_test2\",\n            \"store_id\": 92,\n            \"shipping_number\": null,\n            \"total_products\": \"21970.00\",\n            \"total_shipping\": \"2990.00\",\n            \"total_discount\": \"0.00\",\n            \"total_paid\": \"24960.00\",\n            \"source_date\": \"2020-09-24 06:54:21\",\n            \"created_at\": \"2023-02-28T15:42:48+00:00\",\n            \"updated_at\": \"2023-02-28T15:42:49+00:00\",\n            \"deleted_at\": null,\n            \"carrier\": null,\n            \"invoice_number\": null,\n            \"invoice_url\": null,\n            \"additional_data\": null,\n            \"tracking_url\": \"/#/tracking/ZDBQNjFxR0p6WFgrOThHTERwSW5kUT09\",\n            \"tracking_carrier\": null,\n            \"order_detail\": [\n                {\n                    \"id\": 360063,\n                    \"product\": \"Producto Test.\",\n                    \"sku\": \"SKUTEST\",\n                    \"ean\": \"\",\n                    \"quantity\": 30,\n                    \"total\": 111000,\n                    \"created_at\": \"2023-02-28T15:42:48+00:00\",\n                    \"updated_at\": \"2023-02-28T15:42:48+00:00\",\n                    \"order_id\": 230914,\n                    \"store_id\": 92\n                },\n                {\n                    \"id\": 360064,\n                    \"product\": \"Producto TEST 12.\",\n                    \"sku\": \"SKUTEST2\",\n                    \"ean\": \"\",\n                    \"quantity\": 1,\n                    \"total\": 111000,\n                    \"created_at\": \"2023-02-28T15:42:48+00:00\",\n                    \"updated_at\": \"2023-02-28T15:42:48+00:00\",\n                    \"order_id\": 230914,\n                    \"store_id\": 92\n                }\n            ],\n            \"source\": {\n                \"id\": 2,\n                \"name\": \"Manual\",\n                \"type_id\": 3\n            },\n            \"customer\": {\n                \"id\": 232614,\n                \"firstname\": \"Juan\",\n                \"lastname\": \"Pérez\",\n                \"fullname\": \"Juan Pérez\",\n                \"email\": \"juan.perez@example.com\",\n                \"created_at\": \"2023-02-28T15:42:48+00:00\",\n                \"updated_at\": \"2023-02-28T15:42:48+00:00\",\n                \"store_id\": 92\n            },\n            \"address\": {\n                \"id\": 231141,\n                \"customer_id\": 232614,\n                \"street\": \"Santa Ester\",\n                \"number\": \"123\",\n                \"dpto\": \"B\",\n                \"city\": \"San Miguel\",\n                \"province\": \"San Miguel\",\n                \"state\": \"Metropolitana de Santiago\",\n                \"dni\": \"1-9\",\n                \"phone\": \"56999999999\",\n                \"store_id\": 92,\n                \"created_at\": \"2023-02-28T15:42:48+00:00\",\n                \"updated_at\": \"2023-02-28T15:42:48+00:00\",\n                \"additional\": null,\n                \"zip_code\": \"313333\",\n                \"country\": \"CL\",\n                \"full_address\": \"Santa Ester 123 B\",\n                \"latitude\": \"-33.4155458\",\n                \"longitude\": \"-70.6077416\",\n                \"note\": null\n            },\n            \"order_state\": {\n                \"id\": 1595,\n                \"name\": \"On Hold\",\n                \"store_id\": 92,\n                \"type\": \"DEFAULT_ON_HOLD\",\n                \"order\": \"1.1\",\n                \"colour\": \"dark\"\n            },\n            \"order_substate\": {\n                \"id\": 286,\n                \"name\": \"Fuera de Stock\",\n                \"type\": \"OUT_STOCK\",\n                \"order_state_id\": 1595,\n                \"created_at\": \"2022-10-11 16:59:20\",\n                \"updated_at\": \"2022-10-11 16:59:20\"\n            }\n        }\n    ]\n}"}],"_postman_id":"5e12fc1e-d0c1-4b7b-bdb1-db62cba20990"},{"name":"Get Order By ID","id":"51f1ea2e-b9d9-4027-bd3e-28e77d1153a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.starkoms.org/api/v3/ext/orders/767576","description":"<p>Tabla de equivalencias de estados</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\"> \"order_state\": {\n      .....\n      \"type\": \"DEFAULT_OUT_SHIPMENT\",\n    .....\n    }\n\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>nombre</th>\n<th>estado</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Ingresado</td>\n<td>DEFAULT_IN_OMS</td>\n</tr>\n<tr>\n<td>Preparando</td>\n<td>DEFAULT_IN_PACKAGING</td>\n</tr>\n<tr>\n<td>Preparado</td>\n<td>DEFAULT_OUT_PACKAGING</td>\n</tr>\n<tr>\n<td>Empacado</td>\n<td>DEFAULT_IN_SHIPMENT</td>\n</tr>\n<tr>\n<td>Listo para Enviar</td>\n<td>DEFAULT_OUT_SHIPMENT</td>\n</tr>\n<tr>\n<td>Entregado a Transporte</td>\n<td>DEFAULT_IN_CARRIER</td>\n</tr>\n<tr>\n<td>En Ruta</td>\n<td>DEFAULT_ON_CARRIER</td>\n</tr>\n<tr>\n<td>Entregado a Cliente</td>\n<td>DEFAULT_IN_CUSTOMER</td>\n</tr>\n<tr>\n<td>Cancelado</td>\n<td>DEFAULT_CANCELED</td>\n</tr>\n<tr>\n<td>Incidencia en el Envío</td>\n<td>DEFAULT_IN_CARRIER_INCIDENCE</td>\n</tr>\n<tr>\n<td>Entrega Fallida</td>\n<td>DEFAULT_IN_CARRIER_FAIL</td>\n</tr>\n</tbody>\n</table>\n</div><div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>nombre</th>\n<th>estado</th>\n<th>descripción</th>\n<th>subestado</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>On Hold</td>\n<td>DEFAULT_ON_HOLD</td>\n<td>Fuera de Stock</td>\n<td>OUT_STOCK</td>\n</tr>\n<tr>\n<td>On Hold</td>\n<td>DEFAULT_ON_HOLD</td>\n<td>No se Encuentra Producto en el OMS</td>\n<td>NO_PRODUCT_OMS</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v3","ext","orders","767576"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"1713e692-efc0-4425-84f7-5f96979e8f38","name":"Get Order By ID","originalRequest":{"method":"GET","header":[{"key":"Store","value":"2","type":"text","disabled":true},{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"}],"url":"https://api.starkoms.org/api/v3/ext/orders/112754"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 10 May 2022 17:35:09 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1498","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n   \"data\":{\n      \"id\":112754,\n      \"order_reference\":\"IDENTIFICADOR_PEDIDO\",\n      \"store_id\":50,\n      \"shipping_number\":\"0000000112754\",\n      \"total_products\":\"21970.00\",\n      \"total_shipping\":2990,\n      \"total_discount\":\"0.00\",\n      \"total_paid\":\"24960.00\",\n      \"source_date\":\"2020-09-24 03:54:21\",\n      \"created_at\":\"2022-05-10T17:13:25+00:00\",\n      \"updated_at\":\"2022-05-10T17:32:54+00:00\",\n      \"deleted_at\":null,\n      \"carrier\":\"CarrierOMS\",\n      \"invoice_number\":null,\n      \"invoice_url\":null,\n      \"additional_data\":\"{\\\"products_info\\\":[{\\\"sku\\\":\\\"PROD001\\\",\\\"serials\\\":[\\\"12121\\\",\\\"12121\\\",\\\"23232\\\",\\\"34343\\\",\\\"12121\\\"],\\\"shipped_qty\\\":300},{\\\"sku\\\":\\\"PROD004\\\",\\\"shipped_qty\\\":12}]}\",\n      \"tracking_url\":\"/#/tracking/OHpNZTBTYnNqRURqbUlBYnBtREc0Zz09\",\n      \"tracking_carrier\":null,\n      \"order_detail\":[\n         {\n            \"id\":173775,\n            \"product\":\"Polern entrenamiento Talla  M\",\n            \"sku\":\"PROD004\",\n            \"ean\":\"\",\n            \"quantity\":1,\n            \"total\":38242,\n            \"created_at\":\"2021-12-22T12:57:54+00:00\",\n            \"updated_at\":\"2021-12-22T12:57:54+00:00\",\n            \"order_id\":112754,\n            \"store_id\":50,\n            \"total_discount\":null\n         },\n         {\n            \"id\":173775,\n            \"product\":\"Polern entrenamiento Talla S\",\n            \"sku\":\"PROD001\",\n            \"ean\":\"\",\n            \"quantity\":1,\n            \"total\":38242,\n            \"created_at\":\"2021-12-22T12:57:54+00:00\",\n            \"updated_at\":\"2021-12-22T12:57:54+00:00\",\n            \"order_id\":112754,\n            \"store_id\":50,\n            \"total_discount\":null\n         }\n      ],\n      \"source\":{\n         \"id\":2,\n         \"name\":\"Manual\",\n         \"type_id\":3\n      },\n      \"customer\":{\n         \"id\":114156,\n         \"firstname\":\"Juan\",\n         \"lastname\":\"Pérez\",\n         \"fullname\":\"Juan Pérez\",\n         \"email\":\"juan.perez@example.com\",\n         \"created_at\":\"2022-05-10T17:13:25+00:00\",\n         \"updated_at\":\"2022-05-10T17:13:25+00:00\",\n         \"store_id\":50\n      },\n      \"address\":{\n         \"id\":112986,\n         \"customer_id\":114156,\n         \"street\":\"Santa Ester\",\n         \"number\":\"123\",\n         \"dpto\":\"B\",\n         \"city\":\"San Miguel\",\n         \"province\":\"San Miguel\",\n         \"state\":\"Región Metropolitana de Santiago\",\n         \"dni\":\"1-9\",\n         \"phone\":\"56999999999\",\n         \"store_id\":50,\n         \"created_at\":\"2022-05-10T17:13:25+00:00\",\n         \"updated_at\":\"2022-05-10T17:13:25+00:00\",\n         \"additional\":null,\n         \"zip_code\":\"313333\",\n         \"country\":\"CL\",\n         \"full_address\":\"Santa Ester 123  B\",\n         \"latitude\":\"-33.4155458\",\n         \"longitude\":\"-70.6077416\"\n      },\n      \"order_state\":{\n         \"id\":834,\n         \"name\":\"Listo para Enviar\",\n         \"store_id\":50,\n         \"type\":\"DEFAULT_OUT_SHIPMENT\",\n         \"order\":\"5.0\",\n         \"colour\":\"primary\"\n      },\n      \"order_substate\":null,\n      \"order_histories\":[\n         {\n            \"id\":662147,\n            \"order_state_id\":830,\n            \"order_id\":112754,\n            \"store_id\":50,\n            \"created_at\":\"2022-05-10T17:13:25+00:00\",\n            \"updated_at\":\"2022-05-10T17:13:25+00:00\",\n            \"agent\":null,\n            \"order_substate_id\":null,\n            \"order_state\":{\n               \"id\":830,\n               \"name\":\"Ingresado\",\n               \"store_id\":50,\n               \"type\":\"DEFAULT_IN_OMS\",\n               \"order\":\"1.0\",\n               \"colour\":\"outline-info\"\n            }\n         },\n         {\n            \"id\":662148,\n            \"order_state_id\":843,\n            \"order_id\":112754,\n            \"store_id\":50,\n            \"created_at\":\"2022-05-10T17:13:26+00:00\",\n            \"updated_at\":\"2022-05-10T17:13:26+00:00\",\n            \"agent\":{\n               \"type\":\"API\",\n               \"data\":{\n                  \"path\":\"api/orders/state/ws\",\n                  \"body\":{\n                     \"type\":\"DEFAULT_ON_HOLD\",\n                     \"order_reference\":\"IDENTIFICADOR_PEDIDO\",\n                     \"subtype\":\"NO_PRODUCT_OMS\",\n                     \"store_id\":50,\n                     \"source\":\"Manual\"\n                  },\n                  \"method\":\"PUT\",\n                  \"ip\":\"209.97.146.236\"\n               }\n            },\n            \"order_substate_id\":133,\n            \"order_state\":{\n               \"id\":843,\n               \"name\":\"On Hold\",\n               \"store_id\":50,\n               \"type\":\"DEFAULT_ON_HOLD\",\n               \"order\":\"1.1\",\n               \"colour\":\"dark\"\n            }\n         },\n         {\n            \"id\":662149,\n            \"order_state_id\":843,\n            \"order_id\":112754,\n            \"store_id\":50,\n            \"created_at\":\"2022-05-10T17:13:26+00:00\",\n            \"updated_at\":\"2022-05-10T17:13:26+00:00\",\n            \"agent\":{\n               \"type\":\"API\",\n               \"data\":{\n                  \"path\":\"api/orders/state/ws\",\n                  \"body\":{\n                     \"type\":\"DEFAULT_ON_HOLD\",\n                     \"order_reference\":\"IDENTIFICADOR_PEDIDO\",\n                     \"subtype\":\"NO_PRODUCT_OMS\",\n                     \"store_id\":50,\n                     \"source\":\"Manual\"\n                  },\n                  \"method\":\"PUT\",\n                  \"ip\":\"209.97.146.236\"\n               }\n            },\n            \"order_substate_id\":133,\n            \"order_state\":{\n               \"id\":843,\n               \"name\":\"On Hold\",\n               \"store_id\":50,\n               \"type\":\"DEFAULT_ON_HOLD\",\n               \"order\":\"1.1\",\n               \"colour\":\"dark\"\n            }\n         },\n         {\n            \"id\":662150,\n            \"order_state_id\":843,\n            \"order_id\":112754,\n            \"store_id\":50,\n            \"created_at\":\"2022-05-10T17:13:26+00:00\",\n            \"updated_at\":\"2022-05-10T17:13:26+00:00\",\n            \"agent\":{\n               \"type\":\"API\",\n               \"data\":{\n                  \"path\":\"api/orders/state/ws\",\n                  \"body\":{\n                     \"type\":\"DEFAULT_ON_HOLD\",\n                     \"order_reference\":\"IDENTIFICADOR_PEDIDO\",\n                     \"subtype\":\"NO_PRODUCT_OMS\",\n                     \"store_id\":50,\n                     \"source\":\"Manual\"\n                  },\n                  \"method\":\"PUT\",\n                  \"ip\":\"209.97.146.236\"\n               }\n            },\n            \"order_substate_id\":133,\n            \"order_state\":{\n               \"id\":843,\n               \"name\":\"On Hold\",\n               \"store_id\":50,\n               \"type\":\"DEFAULT_ON_HOLD\",\n               \"order\":\"1.1\",\n               \"colour\":\"dark\"\n            }\n         },\n         {\n            \"id\":662151,\n            \"order_state_id\":843,\n            \"order_id\":112754,\n            \"store_id\":50,\n            \"created_at\":\"2022-05-10T17:13:27+00:00\",\n            \"updated_at\":\"2022-05-10T17:13:27+00:00\",\n            \"agent\":{\n               \"type\":\"API\",\n               \"data\":{\n                  \"path\":\"api/orders/state/ws\",\n                  \"body\":{\n                     \"type\":\"DEFAULT_ON_HOLD\",\n                     \"order_reference\":\"IDENTIFICADOR_PEDIDO\",\n                     \"subtype\":\"NO_PRODUCT_OMS\",\n                     \"store_id\":50,\n                     \"source\":\"Manual\"\n                  },\n                  \"method\":\"PUT\",\n                  \"ip\":\"209.97.146.236\"\n               }\n            },\n            \"order_substate_id\":133,\n            \"order_state\":{\n               \"id\":843,\n               \"name\":\"On Hold\",\n               \"store_id\":50,\n               \"type\":\"DEFAULT_ON_HOLD\",\n               \"order\":\"1.1\",\n               \"colour\":\"dark\"\n            }\n         },\n         {\n            \"id\":662152,\n            \"order_state_id\":833,\n            \"order_id\":112754,\n            \"store_id\":50,\n            \"created_at\":\"2022-05-10T17:25:48+00:00\",\n            \"updated_at\":\"2022-05-10T17:25:48+00:00\",\n            \"agent\":{\n               \"type\":\"user\",\n               \"data\":{\n                  \"name\":\"Usuario Ejemplo\",\n                  \"email\":\"usuario@example.com\",\n                  \"default_store_name\":\"Ssano\",\n                  \"id\":3\n               }\n            },\n            \"order_substate_id\":null,\n            \"order_state\":{\n               \"id\":833,\n               \"name\":\"Empacado\",\n               \"store_id\":50,\n               \"type\":\"DEFAULT_IN_SHIPMENT\",\n               \"order\":\"4.0\",\n               \"colour\":\"primary\"\n            }\n         },\n         {\n            \"id\":662153,\n            \"order_state_id\":833,\n            \"order_id\":112754,\n            \"store_id\":50,\n            \"created_at\":\"2022-05-10T17:26:13+00:00\",\n            \"updated_at\":\"2022-05-10T17:26:13+00:00\",\n            \"agent\":{\n               \"type\":\"user\",\n               \"data\":{\n                  \"name\":\"Usuario Ejemplo\",\n                  \"email\":\"usuario@example.com\",\n                  \"default_store_name\":\"Ssano\",\n                  \"id\":3\n               }\n            },\n            \"order_substate_id\":null,\n            \"order_state\":{\n               \"id\":833,\n               \"name\":\"Empacado\",\n               \"store_id\":50,\n               \"type\":\"DEFAULT_IN_SHIPMENT\",\n               \"order\":\"4.0\",\n               \"colour\":\"primary\"\n            }\n         },\n         {\n            \"id\":662154,\n            \"order_state_id\":833,\n            \"order_id\":112754,\n            \"store_id\":50,\n            \"created_at\":\"2022-05-10T17:26:52+00:00\",\n            \"updated_at\":\"2022-05-10T17:26:52+00:00\",\n            \"agent\":{\n               \"type\":\"user\",\n               \"data\":{\n                  \"name\":\"Usuario Ejemplo\",\n                  \"email\":\"usuario@example.com\",\n                  \"default_store_name\":\"Ssano\",\n                  \"id\":3\n               }\n            },\n            \"order_substate_id\":null,\n            \"order_state\":{\n               \"id\":833,\n               \"name\":\"Empacado\",\n               \"store_id\":50,\n               \"type\":\"DEFAULT_IN_SHIPMENT\",\n               \"order\":\"4.0\",\n               \"colour\":\"primary\"\n            }\n         },\n         {\n            \"id\":662155,\n            \"order_state_id\":833,\n            \"order_id\":112754,\n            \"store_id\":50,\n            \"created_at\":\"2022-05-10T17:29:01+00:00\",\n            \"updated_at\":\"2022-05-10T17:29:01+00:00\",\n            \"agent\":{\n               \"type\":\"user\",\n               \"data\":{\n                  \"name\":\"Usuario Ejemplo\",\n                  \"email\":\"usuario@example.com\",\n                  \"default_store_name\":\"Ssano\",\n                  \"id\":3\n               }\n            },\n            \"order_substate_id\":null,\n            \"order_state\":{\n               \"id\":833,\n               \"name\":\"Empacado\",\n               \"store_id\":50,\n               \"type\":\"DEFAULT_IN_SHIPMENT\",\n               \"order\":\"4.0\",\n               \"colour\":\"primary\"\n            }\n         },\n         {\n            \"id\":662156,\n            \"order_state_id\":834,\n            \"order_id\":112754,\n            \"store_id\":50,\n            \"created_at\":\"2022-05-10T17:32:54+00:00\",\n            \"updated_at\":\"2022-05-10T17:32:54+00:00\",\n            \"agent\":{\n               \"type\":\"API\",\n               \"data\":{\n                  \"path\":\"api/orders/state/ws\",\n                  \"body\":{\n                     \"type\":\"DEFAULT_OUT_SHIPMENT\",\n                     \"order_reference\":\"IDENTIFICADOR_PEDIDO\",\n                     \"store_id\":50,\n                     \"source\":\"Manual\"\n                  },\n                  \"method\":\"PUT\",\n                  \"ip\":\"209.97.146.236\"\n               }\n            },\n            \"order_substate_id\":null,\n            \"order_state\":{\n               \"id\":834,\n               \"name\":\"Listo para Enviar\",\n               \"store_id\":50,\n               \"type\":\"DEFAULT_OUT_SHIPMENT\",\n               \"order\":\"5.0\",\n               \"colour\":\"primary\"\n            }\n         }\n      ]\n   }\n}"}],"_postman_id":"51f1ea2e-b9d9-4027-bd3e-28e77d1153a6"},{"name":"Get Order By ID / Stock Info","id":"452fcce2-4ae9-445b-94ba-0dbe3670c58c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"url":"https://api.starkoms.org/api/v3/ext/orders/230914/stock","description":"<p>Devuelve el pedido igual que <em>Get Order By ID</em> y agrega a cada línea de <code>order_detail</code> el arreglo <code>stocks</code>: el stock del SKU por bodega (<code>warehouse_id</code>, <code>physical_quantity</code>, <code>reserved_quantity</code>, <code>quantity</code>).</p>\n<ul>\n<li>La respuesta <strong>no</strong> viene envuelta en <code>data</code>, a diferencia de <em>Get Order By ID</em>.</li>\n<li>El stock puede tener <strong>hasta 10 minutos de antigüedad</strong> y los datos del pedido hasta 2 minutos. Para seguir el stock en tiempo real usa el webhook <em>Stock Update</em>.</li>\n<li>Una línea cuyo SKU no existe en el catálogo viene sin <code>stocks</code>.</li>\n</ul>\n<p><strong>Errores (HTTP 400)</strong>: <code>{\"error\":\"Order not found\"}</code>.</p>\n","urlObject":{"protocol":"https","path":["api","v3","ext","orders","230914","stock"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"7a7d4934-fc46-4ae4-ae08-3c4bfdb5f93a","name":"Get Order By ID / Stock Info","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"}],"url":"https://api.starkoms.org/api/v3/ext/orders/230914/stock"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 28 Feb 2023 15:47:05 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1497","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 230914,\n    \"order_reference\": \"o_ref_test2\",\n    \"store_id\": 92,\n    \"shipping_number\": null,\n    \"total_products\": \"21970.00\",\n    \"total_shipping\": \"2990.00\",\n    \"total_discount\": \"0.00\",\n    \"total_paid\": \"24960.00\",\n    \"source_date\": \"2020-09-24 06:54:21\",\n    \"created_at\": \"2023-02-28T15:42:48+00:00\",\n    \"updated_at\": \"2023-02-28T15:42:49+00:00\",\n    \"deleted_at\": null,\n    \"carrier\": null,\n    \"invoice_number\": null,\n    \"invoice_url\": null,\n    \"additional_data\": null,\n    \"tracking_url\": \"/#/tracking/ZDBQNjFxR0p6WFgrOThHTERwSW5kUT09\",\n    \"tracking_carrier\": null,\n    \"order_detail\": [\n        {\n            \"id\": 360063,\n            \"product\": \"Producto Test.\",\n            \"sku\": \"SKUTEST\",\n            \"ean\": \"\",\n            \"quantity\": 30,\n            \"total\": 111000,\n            \"created_at\": \"2023-02-28T15:42:48+00:00\",\n            \"updated_at\": \"2023-02-28T15:42:48+00:00\",\n            \"order_id\": 230914,\n            \"store_id\": 92,\n            \"stocks\": [\n                {\n                    \"id\": 367167,\n                    \"physical_quantity\": 20,\n                    \"reserved_quantity\": 31,\n                    \"quantity\": -11,\n                    \"location_id\": 119,\n                    \"product_id\": 110144,\n                    \"store_id\": 92,\n                    \"warehouse_id\": 122,\n                    \"created_at\": \"2023-02-28T15:37:23+00:00\",\n                    \"updated_at\": \"2023-02-28T15:42:48+00:00\",\n                    \"deleted_at\": null\n                }\n            ]\n        },\n        {\n            \"id\": 360064,\n            \"product\": \"Producto TEST 12.\",\n            \"sku\": \"SKUTEST2\",\n            \"ean\": \"\",\n            \"quantity\": 1,\n            \"total\": 111000,\n            \"created_at\": \"2023-02-28T15:42:48+00:00\",\n            \"updated_at\": \"2023-02-28T15:42:48+00:00\",\n            \"order_id\": 230914,\n            \"store_id\": 92,\n            \"stocks\": [\n                {\n                    \"id\": 367168,\n                    \"physical_quantity\": 100,\n                    \"reserved_quantity\": 2,\n                    \"quantity\": 98,\n                    \"location_id\": 119,\n                    \"product_id\": 110145,\n                    \"store_id\": 92,\n                    \"warehouse_id\": 122,\n                    \"created_at\": \"2023-02-28T15:38:00+00:00\",\n                    \"updated_at\": \"2023-02-28T15:42:48+00:00\",\n                    \"deleted_at\": null\n                }\n            ]\n        }\n    ],\n    \"source\": {\n        \"id\": 2,\n        \"name\": \"Manual\",\n        \"type_id\": 3\n    },\n    \"customer\": {\n        \"id\": 232614,\n        \"firstname\": \"Juan\",\n        \"lastname\": \"Pérez\",\n        \"fullname\": \"Juan Pérez\",\n        \"email\": \"juan.perez@example.com\",\n        \"created_at\": \"2023-02-28T15:42:48+00:00\",\n        \"updated_at\": \"2023-02-28T15:42:48+00:00\",\n        \"store_id\": 92\n    },\n    \"address\": {\n        \"id\": 231141,\n        \"customer_id\": 232614,\n        \"street\": \"Santa Ester\",\n        \"number\": \"123\",\n        \"dpto\": \"B\",\n        \"city\": \"San Miguel\",\n        \"province\": \"San Miguel\",\n        \"state\": \"Metropolitana de Santiago\",\n        \"dni\": \"1-9\",\n        \"phone\": \"56999999999\",\n        \"store_id\": 92,\n        \"created_at\": \"2023-02-28T15:42:48+00:00\",\n        \"updated_at\": \"2023-02-28T15:42:48+00:00\",\n        \"additional\": null,\n        \"zip_code\": \"313333\",\n        \"country\": \"CL\",\n        \"full_address\": \"Santa Ester 123 B\",\n        \"latitude\": \"-33.4155458\",\n        \"longitude\": \"-70.6077416\",\n        \"note\": null\n    },\n    \"order_state\": {\n        \"id\": 1595,\n        \"name\": \"On Hold\",\n        \"store_id\": 92,\n        \"type\": \"DEFAULT_ON_HOLD\",\n        \"order\": \"1.1\",\n        \"colour\": \"dark\"\n    },\n    \"order_substate\": {\n        \"id\": 286,\n        \"name\": \"Fuera de Stock\",\n        \"type\": \"OUT_STOCK\",\n        \"order_state_id\": 1595,\n        \"created_at\": \"2022-10-11 16:59:20\",\n        \"updated_at\": \"2022-10-11 16:59:20\"\n    },\n    \"order_histories\": [\n        {\n            \"id\": 1772392,\n            \"order_state_id\": 1582,\n            \"order_id\": 230914,\n            \"store_id\": 92,\n            \"created_at\": \"2023-02-28T15:42:48+00:00\",\n            \"updated_at\": \"2023-02-28T15:42:48+00:00\",\n            \"agent\": null,\n            \"order_substate_id\": null,\n            \"order_state\": {\n                \"id\": 1582,\n                \"name\": \"Ingresado\",\n                \"store_id\": 92,\n                \"type\": \"DEFAULT_IN_OMS\",\n                \"order\": \"1.0\",\n                \"colour\": \"outline-info\"\n            }\n        },\n        {\n            \"id\": 1772393,\n            \"order_state_id\": 1595,\n            \"order_id\": 230914,\n            \"store_id\": 92,\n            \"created_at\": \"2023-02-28T15:42:48+00:00\",\n            \"updated_at\": \"2023-02-28T15:42:48+00:00\",\n            \"agent\": {\n                \"type\": \"API\",\n                \"data\": {\n                    \"path\": \"api/orders/state/ws\",\n                    \"body\": {\n                        \"type\": \"DEFAULT_ON_HOLD\",\n                        \"order_reference\": \"o_ref_test2\",\n                        \"subtype\": \"OUT_STOCK\",\n                        \"store_id\": 92,\n                        \"source\": \"Manual\"\n                    },\n                    \"method\": \"PUT\",\n                    \"ip\": \"209.97.146.236\"\n                }\n            },\n            \"order_substate_id\": 286,\n            \"order_state\": {\n                \"id\": 1595,\n                \"name\": \"On Hold\",\n                \"store_id\": 92,\n                \"type\": \"DEFAULT_ON_HOLD\",\n                \"order\": \"1.1\",\n                \"colour\": \"dark\"\n            }\n        }\n    ]\n}"}],"_postman_id":"452fcce2-4ae9-445b-94ba-0dbe3670c58c"},{"name":"Create Order","id":"02459409-dfdd-494a-b34e-d36e0bc6c60a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"body":{"mode":"raw","raw":"{\n  \"order_reference\":\"rbaistest_202205112\",\n  \"order_type\":\"OD\",\n  \"source\":\"Manual\",\n  \"carrier\":\"Bluex\",\n  \"firstname\":\"Juan\",\n  \"lastname\":\"Pérez\",\n  \"fullname\":\"Juan Pérez\",\n  \"email\":\"juan.perez@example.com\",\n  \"phone\":\"56999999999\",\n  \"dni\":\"1-9\",\n  \"street\":\"Santa Ester\",\n  \"number\":\"123\",\n  \"dpto\":\" B\",\n  \"city\":\"San Miguel\",\n  \"province\":\"San Miguel\",\n  \"state\":\"Región Metropolitana de Santiago\",\n  \"full_address\":\"Santa Ester 123 B\",\n  \"zip_code\":\"313333\",\n  \"country\":\"CL\",\n  \"latitude\":\"-33.4155458\",\n  \"longitude\":\"-70.6077416\",\n  \"total_shipping\":\"2990\",\n  \"total_products\":\"21970\",\n  \"total_discount\":\"0\",\n  \"total_paid\":\"24960\",\n  \"date_order\":\"2020-09-24 03:54:21\",\n  \"items\":[\n    {\n      \"product\":\"Producto Test.\",\n      \"sku\":\"SKUTEST\",\n      \"quantity\":1,\n      \"total\":\"111000\"\n    },\n    {\n      \"product\":\"Producto Creado.\",\n      \"sku\":\"SKUTESTD\",\n      \"quantity\":1,\n      \"total\":\"111000\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/orders","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>order_type</strong></th>\n<th><strong>opcional</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>OD</td>\n<td>Orden de Despacho</td>\n</tr>\n<tr>\n<td>OA</td>\n<td>Orden de Abastecimiento</td>\n</tr>\n<tr>\n<td>PS</td>\n<td>PickUpStore</td>\n</tr>\n<tr>\n<td>OV</td>\n<td>Orden Virtual</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v3","ext","orders"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"dcda809d-df63-462b-b70b-613b62795852","name":"Create Order","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"order_reference\":\"IDENTIFICADOR_PEDIDO\",\n   \"source\":\"Manual\",\n   \"firstname\":\"Juan\",\n   \"lastname\":\"Pérez\",\n   \"fullname\":\"Juan Pérez\",\n   \"email\":\"juan.perez@example.com\",\n   \"phone\":\"56999999999\",\n   \"dni\":\"1-9\",\n   \"street\":\"Santa Ester\",\n   \"number\":\"123\",\n   \"dpto\":\" B\",\n   \"city\":\"San Miguel\",\n   \"province\":\"San Miguel\",\n   \"state\":\"Regi\\u00f3n Metropolitana de Santiago\",\n   \"full_address\":\"Santa Ester 123  B\",\n   \"zip_code\":\"313333\",\n   \"country\":\"CL\",\n   \"latitude\":\"-33.4155458\",\n   \"longitude\":\"-70.6077416\",\n   \"total_shipping\":\"2990\",\n   \"total_products\":\"21970\",\n   \"total_discount\":\"0\",\n   \"total_paid\":\"24960\",\n   \"date_order\":\"2020-09-24 03:54:21\",\n   \"items\":[\n      {\n         \"product\":\"Producto 1.\",\n         \"sku\":\"17809558105218\",\n         \"quantity\":1,\n         \"total\":\"100\"\n      },\n      {\n         \"product\":\"Producto 2\",\n         \"sku\":\"1733338105218\",\n         \"quantity\":1,\n         \"total\":\"200\"\n      }\n   ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 10 May 2022 17:13:27 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1498","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"order_reference\": \"IDENTIFICADOR_PEDIDO\",\n        \"total_products\": \"21970\",\n        \"total_shipping\": \"2990\",\n        \"total_discount\": \"0\",\n        \"total_paid\": \"24960\",\n        \"source_date\": \"2020-09-24 03:54:21\",\n        \"carrier\": null,\n        \"shipping_number\": null,\n        \"tracking_url\": \"/#/tracking/OHpNZTBTYnNqRURqbUlBYnBtREc0Zz09\",\n        \"tracking_carrier\": null,\n        \"store_id\": 50,\n        \"updated_at\": \"2022-05-10T17:13:25+00:00\",\n        \"created_at\": \"2022-05-10T17:13:25+00:00\",\n        \"id\": 112754,\n        \"customer\": {\n            \"id\": 114156,\n            \"firstname\": \"Juan\",\n            \"lastname\": \"Pérez\",\n            \"fullname\": \"Juan Pérez\",\n            \"email\": \"juan.perez@example.com\",\n            \"created_at\": \"2022-05-10T17:13:25+00:00\",\n            \"updated_at\": \"2022-05-10T17:13:25+00:00\",\n            \"store_id\": 50\n        },\n        \"source\": {\n            \"id\": 2,\n            \"name\": \"Manual\",\n            \"type_id\": 3\n        },\n        \"address\": {\n            \"id\": 112986,\n            \"customer_id\": 114156,\n            \"street\": \"Santa Ester\",\n            \"number\": \"123\",\n            \"dpto\": \"B\",\n            \"city\": \"San Miguel\",\n            \"province\": \"San Miguel\",\n            \"state\": \"Región Metropolitana de Santiago\",\n            \"dni\": \"1-9\",\n            \"phone\": \"56999999999\",\n            \"store_id\": 50,\n            \"created_at\": \"2022-05-10T17:13:25+00:00\",\n            \"updated_at\": \"2022-05-10T17:13:25+00:00\",\n            \"additional\": null,\n            \"zip_code\": \"313333\",\n            \"country\": \"CL\",\n            \"full_address\": \"Santa Ester 123  B\",\n            \"latitude\": \"-33.4155458\",\n            \"longitude\": \"-70.6077416\"\n        },\n        \"store\": {\n            \"id\": 50,\n            \"name\": \"Ssano\",\n            \"created_at\": \"2022-05-10T17:03:13+00:00\",\n            \"updated_at\": \"2022-05-10T17:03:13+00:00\",\n            \"code\": \"SSANO\"\n        },\n        \"order_state\": {\n            \"id\": 830,\n            \"name\": \"Ingresado\",\n            \"store_id\": 50,\n            \"type\": \"DEFAULT_IN_OMS\",\n            \"order\": \"1.0\",\n            \"colour\": \"outline-info\"\n        },\n        \"order_type\": {\n            \"id\": 1,\n            \"name\": \"Orden de Despacho\",\n            \"code\": \"OD\",\n            \"created_at\": \"2020-07-21T11:50:31+00:00\",\n            \"updated_at\": \"2020-07-21T11:50:31+00:00\"\n        },\n        \"order_histories\": [\n            {\n                \"id\": 662147,\n                \"order_state_id\": 830,\n                \"order_id\": 112754,\n                \"store_id\": 50,\n                \"created_at\": \"2022-05-10T17:13:25+00:00\",\n                \"updated_at\": \"2022-05-10T17:13:25+00:00\",\n                \"agent\": null,\n                \"order_substate_id\": null,\n                \"order_state\": {\n                    \"id\": 830,\n                    \"name\": \"Ingresado\",\n                    \"store_id\": 50,\n                    \"type\": \"DEFAULT_IN_OMS\",\n                    \"order\": \"1.0\",\n                    \"colour\": \"outline-info\"\n                }\n            },\n            {\n                \"id\": 662148,\n                \"order_state_id\": 843,\n                \"order_id\": 112754,\n                \"store_id\": 50,\n                \"created_at\": \"2022-05-10T17:13:26+00:00\",\n                \"updated_at\": \"2022-05-10T17:13:26+00:00\",\n                \"agent\": {\n                    \"type\": \"API\",\n                    \"data\": {\n                        \"path\": \"api/orders/state/ws\",\n                        \"body\": {\n                            \"type\": \"DEFAULT_ON_HOLD\",\n                            \"order_reference\": \"IDENTIFICADOR_PEDIDO\",\n                            \"subtype\": \"NO_PRODUCT_OMS\",\n                            \"store_id\": 50,\n                            \"source\": \"Manual\"\n                        },\n                        \"method\": \"PUT\",\n                        \"ip\": \"209.97.146.236\"\n                    }\n                },\n                \"order_substate_id\": 133,\n                \"order_state\": {\n                    \"id\": 843,\n                    \"name\": \"On Hold\",\n                    \"store_id\": 50,\n                    \"type\": \"DEFAULT_ON_HOLD\",\n                    \"order\": \"1.1\",\n                    \"colour\": \"dark\"\n                }\n            },\n            {\n                \"id\": 662149,\n                \"order_state_id\": 843,\n                \"order_id\": 112754,\n                \"store_id\": 50,\n                \"created_at\": \"2022-05-10T17:13:26+00:00\",\n                \"updated_at\": \"2022-05-10T17:13:26+00:00\",\n                \"agent\": {\n                    \"type\": \"API\",\n                    \"data\": {\n                        \"path\": \"api/orders/state/ws\",\n                        \"body\": {\n                            \"type\": \"DEFAULT_ON_HOLD\",\n                            \"order_reference\": \"IDENTIFICADOR_PEDIDO\",\n                            \"subtype\": \"NO_PRODUCT_OMS\",\n                            \"store_id\": 50,\n                            \"source\": \"Manual\"\n                        },\n                        \"method\": \"PUT\",\n                        \"ip\": \"209.97.146.236\"\n                    }\n                },\n                \"order_substate_id\": 133,\n                \"order_state\": {\n                    \"id\": 843,\n                    \"name\": \"On Hold\",\n                    \"store_id\": 50,\n                    \"type\": \"DEFAULT_ON_HOLD\",\n                    \"order\": \"1.1\",\n                    \"colour\": \"dark\"\n                }\n            },\n            {\n                \"id\": 662150,\n                \"order_state_id\": 843,\n                \"order_id\": 112754,\n                \"store_id\": 50,\n                \"created_at\": \"2022-05-10T17:13:26+00:00\",\n                \"updated_at\": \"2022-05-10T17:13:26+00:00\",\n                \"agent\": {\n                    \"type\": \"API\",\n                    \"data\": {\n                        \"path\": \"api/orders/state/ws\",\n                        \"body\": {\n                            \"type\": \"DEFAULT_ON_HOLD\",\n                            \"order_reference\": \"IDENTIFICADOR_PEDIDO\",\n                            \"subtype\": \"NO_PRODUCT_OMS\",\n                            \"store_id\": 50,\n                            \"source\": \"Manual\"\n                        },\n                        \"method\": \"PUT\",\n                        \"ip\": \"209.97.146.236\"\n                    }\n                },\n                \"order_substate_id\": 133,\n                \"order_state\": {\n                    \"id\": 843,\n                    \"name\": \"On Hold\",\n                    \"store_id\": 50,\n                    \"type\": \"DEFAULT_ON_HOLD\",\n                    \"order\": \"1.1\",\n                    \"colour\": \"dark\"\n                }\n            },\n            {\n                \"id\": 662151,\n                \"order_state_id\": 843,\n                \"order_id\": 112754,\n                \"store_id\": 50,\n                \"created_at\": \"2022-05-10T17:13:27+00:00\",\n                \"updated_at\": \"2022-05-10T17:13:27+00:00\",\n                \"agent\": {\n                    \"type\": \"API\",\n                    \"data\": {\n                        \"path\": \"api/orders/state/ws\",\n                        \"body\": {\n                            \"type\": \"DEFAULT_ON_HOLD\",\n                            \"order_reference\": \"IDENTIFICADOR_PEDIDO\",\n                            \"subtype\": \"NO_PRODUCT_OMS\",\n                            \"store_id\": 50,\n                            \"source\": \"Manual\"\n                        },\n                        \"method\": \"PUT\",\n                        \"ip\": \"209.97.146.236\"\n                    }\n                },\n                \"order_substate_id\": 133,\n                \"order_state\": {\n                    \"id\": 843,\n                    \"name\": \"On Hold\",\n                    \"store_id\": 50,\n                    \"type\": \"DEFAULT_ON_HOLD\",\n                    \"order\": \"1.1\",\n                    \"colour\": \"dark\"\n                }\n            }\n        ],\n        \"order_detail\": [\n            {\n                \"id\": 173777,\n                \"product\": \"Producto 1.\",\n                \"sku\": \"17809558105218\",\n                \"ean\": \"\",\n                \"quantity\": 1,\n                \"total\": 100,\n                \"created_at\": \"2022-05-10T17:13:25+00:00\",\n                \"updated_at\": \"2022-05-10T17:13:25+00:00\",\n                \"order_id\": 112754,\n                \"store_id\": 50\n            },\n            {\n                \"id\": 173778,\n                \"product\": \"Producto 2\",\n                \"sku\": \"1733338105218\",\n                \"ean\": \"\",\n                \"quantity\": 1,\n                \"total\": 200,\n                \"created_at\": \"2022-05-10T17:13:25+00:00\",\n                \"updated_at\": \"2022-05-10T17:13:25+00:00\",\n                \"order_id\": 112754,\n                \"store_id\": 50\n            }\n        ],\n        \"order_substate\": null\n    }\n}"},{"id":"f0639a4b-222a-4fe5-878f-e5152a79f43d","name":"Create Order","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"order_reference\":\"o_ref_test4\",\n  \"order_type\":\"OD\",\n  \"source\":\"Manual\",\n  \"carrier\":null,\n  \"firstname\":\"Juan\",\n  \"lastname\":\"Pérez\",\n  \"fullname\":\"Juan P\\u00e9rez\",\n  \"email\":\"juan.perez@example.com\",\n  \"phone\":\"56999999999\",\n  \"dni\":\"1-9\",\n  \"street\":\"Santa Ester\",\n  \"number\":\"123\",\n  \"dpto\":\" B\",\n  \"city\":\"San Miguel\",\n  \"province\":\"San Miguel\",\n  \"state\":\"Regi\\u00f3n Metropolitana de Santiago\",\n  \"full_address\":\"Santa Ester 123 B\",\n  \"zip_code\":\"313333\",\n  \"country\":\"CL\",\n  \"latitude\":\"-33.4155458\",\n  \"longitude\":\"-70.6077416\",\n  \"total_shipping\":\"2990\",\n  \"total_products\":\"21970\",\n  \"total_discount\":\"0\",\n  \"total_paid\":\"24960\",\n  \"date_order\":\"2020-09-24 03:54:21\",\n  \"items\":[\n    {\n      \"product\":\"Producto Test.\",\n      \"sku\":\"SKUTEST\",\n      \"quantity\":10,\n      \"total\":\"111000\"\n    },\n    {\n      \"product\":\"Producto TEST 12.\",\n      \"sku\":\"SKUTEST2\",\n      \"quantity\":30,\n      \"total\":\"111000\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 28 Feb 2023 16:00:47 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1498","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"br","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"order_reference\": \"o_ref_test4\",\n        \"total_products\": \"21970\",\n        \"total_shipping\": \"2990\",\n        \"total_discount\": \"0\",\n        \"total_paid\": \"24960\",\n        \"source_date\": \"2020-09-24 06:54:21\",\n        \"carrier\": null,\n        \"shipping_number\": null,\n        \"tracking_url\": \"/#/tracking/ZWVrQUd0ZGZtbWpndE96VGkxOURTQT09\",\n        \"tracking_carrier\": null,\n        \"store_id\": 92,\n        \"updated_at\": \"2023-02-28T16:00:46+00:00\",\n        \"created_at\": \"2023-02-28T16:00:46+00:00\",\n        \"id\": 230916,\n        \"customer\": {\n            \"id\": 232616,\n            \"firstname\": \"Juan\",\n            \"lastname\": \"Pérez\",\n            \"fullname\": \"Juan Pérez\",\n            \"email\": \"juan.perez@example.com\",\n            \"created_at\": \"2023-02-28T16:00:46+00:00\",\n            \"updated_at\": \"2023-02-28T16:00:46+00:00\",\n            \"store_id\": 92\n        },\n        \"source\": {\n            \"id\": 2,\n            \"name\": \"Manual\",\n            \"type_id\": 3\n        },\n        \"address\": {\n            \"id\": 231143,\n            \"customer_id\": 232616,\n            \"street\": \"Santa Ester\",\n            \"number\": \"123\",\n            \"dpto\": \"B\",\n            \"city\": \"San Miguel\",\n            \"province\": \"San Miguel\",\n            \"state\": \"Metropolitana de Santiago\",\n            \"dni\": \"1-9\",\n            \"phone\": \"56999999999\",\n            \"store_id\": 92,\n            \"created_at\": \"2023-02-28T16:00:46+00:00\",\n            \"updated_at\": \"2023-02-28T16:00:46+00:00\",\n            \"additional\": null,\n            \"zip_code\": \"313333\",\n            \"country\": \"CL\",\n            \"full_address\": \"Santa Ester 123 B\",\n            \"latitude\": \"-33.4155458\",\n            \"longitude\": \"-70.6077416\",\n            \"note\": null\n        },\n        \"store\": {\n            \"id\": 92,\n            \"name\": \"Forever 21\",\n            \"created_at\": \"2022-10-11T16:59:20+00:00\",\n            \"updated_at\": \"2022-10-11T16:59:20+00:00\",\n            \"code\": \"ECOMFORE\"\n        },\n        \"order_state\": {\n            \"id\": 1582,\n            \"name\": \"Ingresado\",\n            \"store_id\": 92,\n            \"type\": \"DEFAULT_IN_OMS\",\n            \"order\": \"1.0\",\n            \"colour\": \"outline-info\"\n        },\n        \"order_type\": {\n            \"id\": 1,\n            \"name\": \"Orden de Despacho\",\n            \"code\": \"OD\",\n            \"created_at\": \"2020-07-21T11:50:31+00:00\",\n            \"updated_at\": \"2020-07-21T11:50:31+00:00\"\n        },\n        \"order_histories\": [\n            {\n                \"id\": 1772398,\n                \"order_state_id\": 1582,\n                \"order_id\": 230916,\n                \"store_id\": 92,\n                \"created_at\": \"2023-02-28T16:00:46+00:00\",\n                \"updated_at\": \"2023-02-28T16:00:46+00:00\",\n                \"agent\": null,\n                \"order_substate_id\": null,\n                \"order_state\": {\n                    \"id\": 1582,\n                    \"name\": \"Ingresado\",\n                    \"store_id\": 92,\n                    \"type\": \"DEFAULT_IN_OMS\",\n                    \"order\": \"1.0\",\n                    \"colour\": \"outline-info\"\n                }\n            },\n            {\n                \"id\": 1772399,\n                \"order_state_id\": 1595,\n                \"order_id\": 230916,\n                \"store_id\": 92,\n                \"created_at\": \"2023-02-28T16:00:46+00:00\",\n                \"updated_at\": \"2023-02-28T16:00:46+00:00\",\n                \"agent\": {\n                    \"type\": \"API\",\n                    \"data\": {\n                        \"path\": \"api/orders/state/ws\",\n                        \"body\": {\n                            \"type\": \"DEFAULT_ON_HOLD\",\n                            \"order_reference\": \"o_ref_test4\",\n                            \"subtype\": \"OUT_STOCK\",\n                            \"store_id\": 92,\n                            \"source\": \"Manual\"\n                        },\n                        \"method\": \"PUT\",\n                        \"ip\": \"209.97.146.236\"\n                    }\n                },\n                \"order_substate_id\": 286,\n                \"order_state\": {\n                    \"id\": 1595,\n                    \"name\": \"On Hold\",\n                    \"store_id\": 92,\n                    \"type\": \"DEFAULT_ON_HOLD\",\n                    \"order\": \"1.1\",\n                    \"colour\": \"dark\"\n                }\n            }\n        ],\n        \"order_detail\": [\n            {\n                \"id\": 360067,\n                \"product\": \"Producto Test.\",\n                \"sku\": \"SKUTEST\",\n                \"ean\": \"\",\n                \"quantity\": 10,\n                \"total\": 111000,\n                \"created_at\": \"2023-02-28T16:00:46+00:00\",\n                \"updated_at\": \"2023-02-28T16:00:46+00:00\",\n                \"order_id\": 230916,\n                \"store_id\": 92\n            },\n            {\n                \"id\": 360068,\n                \"product\": \"Producto TEST 12.\",\n                \"sku\": \"SKUTEST2\",\n                \"ean\": \"\",\n                \"quantity\": 30,\n                \"total\": 111000,\n                \"created_at\": \"2023-02-28T16:00:46+00:00\",\n                \"updated_at\": \"2023-02-28T16:00:46+00:00\",\n                \"order_id\": 230916,\n                \"store_id\": 92\n            }\n        ],\n        \"order_substate\": null\n    }\n}"}],"_postman_id":"02459409-dfdd-494a-b34e-d36e0bc6c60a"},{"name":"Update Order State","id":"ced340d2-f034-477b-bf5c-0185986d19a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"body":{"mode":"raw","raw":"{\n  \"type\":\"DEFAULT_ON_HOLD\",\n  \"subtype\":\"READY_TO_CONTINUE\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/order/230914/state","description":"<p>Tabla de equivalencias de estados</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\"> \"order_state\": {\n      \"type\": \"DEFAULT_ON_HOLD\",\n      \"subtype\": \"CONFIRM_TO_CONTINUE\"\n    }\n\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>nombre</th>\n<th>estado</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Ingresado</td>\n<td>DEFAULT_IN_OMS</td>\n</tr>\n<tr>\n<td>Preparando</td>\n<td>DEFAULT_IN_PACKAGING</td>\n</tr>\n<tr>\n<td>Preparado</td>\n<td>DEFAULT_OUT_PACKAGING</td>\n</tr>\n<tr>\n<td>Empacado</td>\n<td>DEFAULT_IN_SHIPMENT</td>\n</tr>\n<tr>\n<td>Listo para Enviar</td>\n<td>DEFAULT_OUT_SHIPMENT</td>\n</tr>\n<tr>\n<td>Entregado a Transporte</td>\n<td>DEFAULT_IN_CARRIER</td>\n</tr>\n<tr>\n<td>En Ruta</td>\n<td>DEFAULT_ON_CARRIER</td>\n</tr>\n<tr>\n<td>Entregado a Cliente</td>\n<td>DEFAULT_IN_CUSTOMER</td>\n</tr>\n<tr>\n<td>Cancelado</td>\n<td>DEFAULT_CANCELED</td>\n</tr>\n<tr>\n<td>Incidencia en el Envío</td>\n<td>DEFAULT_IN_CARRIER_INCIDENCE</td>\n</tr>\n<tr>\n<td>Entrega Fallida</td>\n<td>DEFAULT_IN_CARRIER_FAIL</td>\n</tr>\n</tbody>\n</table>\n</div><div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>nombre</th>\n<th>estado</th>\n<th>descripción</th>\n<th>subestado</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>On Hold</td>\n<td>DEFAULT_ON_HOLD</td>\n<td>Fuera de Stock</td>\n<td>OUT_STOCK</td>\n</tr>\n<tr>\n<td>On Hold</td>\n<td>DEFAULT_ON_HOLD</td>\n<td>No se Encuentra Producto en el OMS</td>\n<td>NO_PRODUCT_OMS</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v3","ext","order","230914","state"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"0c245e71-cfe3-48cd-a3dc-7123b123df89","name":"Update Order State","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"type\":\"DEFAULT_ON_HOLD\",\n  \"subtype\":\"READY_TO_CONTINUE\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/order/230914/state"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 28 Feb 2023 15:58:16 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1499","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": 230914,\n        \"order_reference\": \"o_ref_test2\",\n        \"store_id\": 92,\n        \"shipping_number\": null,\n        \"total_products\": \"21970.00\",\n        \"total_shipping\": \"2990.00\",\n        \"total_discount\": \"0.00\",\n        \"total_paid\": \"24960.00\",\n        \"source_date\": \"2020-09-24 06:54:21\",\n        \"created_at\": \"2023-02-28T15:42:48+00:00\",\n        \"updated_at\": \"2023-02-28T15:56:48+00:00\",\n        \"deleted_at\": null,\n        \"carrier\": null,\n        \"invoice_number\": null,\n        \"invoice_url\": null,\n        \"additional_data\": null,\n        \"tracking_url\": \"/#/tracking/ZDBQNjFxR0p6WFgrOThHTERwSW5kUT09\",\n        \"tracking_carrier\": null,\n        \"store\": {\n            \"id\": 92,\n            \"name\": \"Forever 21\",\n            \"created_at\": \"2022-10-11T16:59:20+00:00\",\n            \"updated_at\": \"2022-10-11T16:59:20+00:00\",\n            \"code\": \"ECOMFORE\"\n        },\n        \"order_state\": {\n            \"id\": 1595,\n            \"name\": \"On Hold\",\n            \"store_id\": 92,\n            \"type\": \"DEFAULT_ON_HOLD\",\n            \"order\": \"1.1\",\n            \"colour\": \"dark\"\n        },\n        \"source\": {\n            \"id\": 2,\n            \"name\": \"Manual\",\n            \"type_id\": 3\n        },\n        \"customer\": {\n            \"id\": 232614,\n            \"firstname\": \"Juan\",\n            \"lastname\": \"Pérez\",\n            \"fullname\": \"Juan Pérez\",\n            \"email\": \"juan.perez@example.com\",\n            \"created_at\": \"2023-02-28T15:42:48+00:00\",\n            \"updated_at\": \"2023-02-28T15:42:48+00:00\",\n            \"store_id\": 92\n        },\n        \"address\": {\n            \"id\": 231141,\n            \"customer_id\": 232614,\n            \"street\": \"Santa Ester\",\n            \"number\": \"123\",\n            \"dpto\": \"B\",\n            \"city\": \"San Miguel\",\n            \"province\": \"San Miguel\",\n            \"state\": \"Metropolitana de Santiago\",\n            \"dni\": \"1-9\",\n            \"phone\": \"56999999999\",\n            \"store_id\": 92,\n            \"created_at\": \"2023-02-28T15:42:48+00:00\",\n            \"updated_at\": \"2023-02-28T15:42:48+00:00\",\n            \"additional\": null,\n            \"zip_code\": \"313333\",\n            \"country\": \"CL\",\n            \"full_address\": \"Santa Ester 123 B\",\n            \"latitude\": \"-33.4155458\",\n            \"longitude\": \"-70.6077416\",\n            \"note\": null\n        },\n        \"order_substate\": {\n            \"id\": 295,\n            \"name\": \"Confirmado para Redespacho\",\n            \"type\": \"CONFIRM_TO_CONTINUE\",\n            \"order_state_id\": 1595,\n            \"created_at\": \"2022-10-11 16:59:20\",\n            \"updated_at\": \"2022-10-11 16:59:20\"\n        },\n        \"order_histories\": [\n            {\n                \"id\": 1772392,\n                \"order_state_id\": 1582,\n                \"order_id\": 230914,\n                \"store_id\": 92,\n                \"created_at\": \"2023-02-28T15:42:48+00:00\",\n                \"updated_at\": \"2023-02-28T15:42:48+00:00\",\n                \"agent\": null,\n                \"order_substate_id\": null,\n                \"order_state\": {\n                    \"id\": 1582,\n                    \"name\": \"Ingresado\",\n                    \"store_id\": 92,\n                    \"type\": \"DEFAULT_IN_OMS\",\n                    \"order\": \"1.0\",\n                    \"colour\": \"outline-info\"\n                }\n            },\n            {\n                \"id\": 1772393,\n                \"order_state_id\": 1595,\n                \"order_id\": 230914,\n                \"store_id\": 92,\n                \"created_at\": \"2023-02-28T15:42:48+00:00\",\n                \"updated_at\": \"2023-02-28T15:42:48+00:00\",\n                \"agent\": {\n                    \"type\": \"API\",\n                    \"data\": {\n                        \"path\": \"api/orders/state/ws\",\n                        \"body\": {\n                            \"type\": \"DEFAULT_ON_HOLD\",\n                            \"order_reference\": \"o_ref_test2\",\n                            \"subtype\": \"OUT_STOCK\",\n                            \"store_id\": 92,\n                            \"source\": \"Manual\"\n                        },\n                        \"method\": \"PUT\",\n                        \"ip\": \"209.97.146.236\"\n                    }\n                },\n                \"order_substate_id\": 286,\n                \"order_state\": {\n                    \"id\": 1595,\n                    \"name\": \"On Hold\",\n                    \"store_id\": 92,\n                    \"type\": \"DEFAULT_ON_HOLD\",\n                    \"order\": \"1.1\",\n                    \"colour\": \"dark\"\n                }\n            },\n            {\n                \"id\": 1772394,\n                \"order_state_id\": 1595,\n                \"order_id\": 230914,\n                \"store_id\": 92,\n                \"created_at\": \"2023-02-28T15:56:48+00:00\",\n                \"updated_at\": \"2023-02-28T15:56:48+00:00\",\n                \"agent\": {\n                    \"type\": \"API\",\n                    \"data\": {\n                        \"path\": \"api/ext/v3/orders/230914/state\",\n                        \"body\": {\n                            \"type\": \"DEFAULT_ON_HOLD\",\n                            \"subtype\": \"CONFIRM_TO_CONTINUE\"\n                        },\n                        \"method\": \"PUT\",\n                        \"ip\": \"209.97.146.236\"\n                    }\n                },\n                \"order_substate_id\": 295,\n                \"order_state\": {\n                    \"id\": 1595,\n                    \"name\": \"On Hold\",\n                    \"store_id\": 92,\n                    \"type\": \"DEFAULT_ON_HOLD\",\n                    \"order\": \"1.1\",\n                    \"colour\": \"dark\"\n                }\n            },\n            {\n                \"id\": 1772395,\n                \"order_state_id\": 1595,\n                \"order_id\": 230914,\n                \"store_id\": 92,\n                \"created_at\": \"2023-02-28T15:58:16+00:00\",\n                \"updated_at\": \"2023-02-28T15:58:16+00:00\",\n                \"agent\": {\n                    \"type\": \"API\",\n                    \"data\": {\n                        \"path\": \"api/ext/v3/orders/230914/state\",\n                        \"body\": {\n                            \"type\": \"DEFAULT_ON_HOLD\",\n                            \"subtype\": \"CONFIRM_TO_CONTINUE\"\n                        },\n                        \"method\": \"PUT\",\n                        \"ip\": \"209.97.146.236\"\n                    }\n                },\n                \"order_substate_id\": 295,\n                \"order_state\": {\n                    \"id\": 1595,\n                    \"name\": \"On Hold\",\n                    \"store_id\": 92,\n                    \"type\": \"DEFAULT_ON_HOLD\",\n                    \"order\": \"1.1\",\n                    \"colour\": \"dark\"\n                }\n            }\n        ]\n    }\n}"}],"_postman_id":"ced340d2-f034-477b-bf5c-0185986d19a6"},{"name":"Upload Invoice Order","id":"3333a88f-328f-4ab6-99f7-ba41d8238c94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"body":{"mode":"raw","raw":"{\n    \"invoice_number\": \"00099321\",\n    \"invoice_url\": \"https://s3.amazonaws.com/archivos/00099321.pdf\",\n    \"biller\": \"LibreDTE\",\n    \"document_type\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/order/230914/invoice","description":"<p>Asocia al pedido un documento tributario emitido fuera de starkoms. starkoms descarga el PDF, lo guarda, registra el folio en el pedido y lo informa al canal de venta cuando corresponde.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Campo</th>\n<th>Obligatorio</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>invoice_number</code></td>\n<td>Sí</td>\n<td>Folio del documento</td>\n</tr>\n<tr>\n<td><code>invoice_url</code></td>\n<td>Sí</td>\n<td>URL pública del PDF. starkoms lo descarga, así que debe estar accesible</td>\n</tr>\n<tr>\n<td><code>biller</code></td>\n<td>Sí</td>\n<td>Emisor configurado en la tienda, por ejemplo <code>LibreDTE</code></td>\n</tr>\n<tr>\n<td><code>document_type</code></td>\n<td>No</td>\n<td><code>1</code> Boleta, <code>2</code> Factura, <code>3</code> Guía. Si no lo envías, se deduce de la configuración de la tienda</td>\n</tr>\n</tbody>\n</table>\n</div><p>Solo se aceptan archivos <strong>PDF</strong>.</p>\n<p><strong>Errores</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>HTTP</th>\n<th>Mensaje</th>\n<th>Caso</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>422</td>\n<td><code>The given data was invalid.</code> + <code>errors</code></td>\n<td>Falta un campo obligatorio</td>\n</tr>\n<tr>\n<td>422</td>\n<td><code>Invoice (...) ya creado</code></td>\n<td>El pedido ya tiene ese documento</td>\n</tr>\n<tr>\n<td>400</td>\n<td><code>No se encontró la orden ingresada</code></td>\n<td>El pedido no existe o no pertenece a tu tienda</td>\n</tr>\n<tr>\n<td>400</td>\n<td><code>No se encontró el archivo ingresado</code></td>\n<td>starkoms no pudo descargar <code>invoice_url</code></td>\n</tr>\n<tr>\n<td>400</td>\n<td><code>Biller No Asignado</code></td>\n<td>El emisor no está configurado en la tienda</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v3","ext","order","230914","invoice"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"3cfaac7b-129b-467b-a131-84992eccd140","name":"Invoice Order","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer xxxxxx","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"invoice_number\": \"33333333\",\n    \"invoice_url\": \"https://s3.amazonaws.com/archivos/00099321.pdf\",\n    \"biller\": \"LibreDte\",\n    \"document_type\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/order/959419/invoice"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Fri, 24 Jan 2025 16:58:23 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1498","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"order_reference\": \"Pedido-20260\",\n    \"total_products\": 1000,\n    \"total_shipping\": 0,\n    \"total_discount\": 0,\n    \"total_paid\": 1000,\n    \"invoice_number\": \"33333333\",\n    \"pdf\": \"https://s3.amazonaws.com/archivos/00099321.pdf\",\n    \"created_at\": \"2025-01-24T16:58:23+00:00\",\n    \"updated_at\": \"2025-01-24T16:58:23+00:00\",\n    \"additional_data\": \"{\\\"shipping_barcode\\\":\\\"0000000959419\\\"}\",\n    \"deleted_at\": null,\n    \"xml\": null,\n    \"customer\": {\n        \"id\": 373682,\n        \"firstname\": \"Juan\",\n        \"lastname\": \"Perez\",\n        \"fullname\": \"Juan Perez\",\n        \"email\": \"no@mail.com\",\n        \"created_at\": \"2025-01-24T16:58:23+00:00\",\n        \"updated_at\": \"2025-01-24T16:58:23+00:00\",\n        \"store_id\": 23\n    },\n    \"address\": null,\n    \"biller\": {\n        \"id\": 2,\n        \"name\": \"LibreDTE\"\n    },\n    \"source\": {\n        \"id\": 2,\n        \"name\": \"Manual\",\n        \"created_at\": \"2020-05-12T14:47:50.000000Z\",\n        \"updated_at\": \"2020-05-12T14:47:53.000000Z\"\n    },\n    \"invoice_state\": {\n        \"id\": 1,\n        \"name\": \"Generado\",\n        \"type\": \"DEFAULT_INVOICE_OUT\",\n        \"store_id\": 0\n    },\n    \"order_detail\": [\n        {\n            \"id\": 1263996,\n            \"name\": \"Arom\",\n            \"sku\": \"A1\",\n            \"ean\": null,\n            \"quantity\": 1,\n            \"total\": 1000,\n            \"discount\": 0,\n            \"created_at\": \"2025-01-24T16:58:23.000000Z\",\n            \"updated_at\": \"2025-01-24T16:58:23.000000Z\",\n            \"invoice_id\": 248963,\n            \"store_id\": 23,\n            \"total_discount\": 0\n        }\n    ]\n}"}],"_postman_id":"3333a88f-328f-4ab6-99f7-ba41d8238c94"}],"id":"dfe6ec4d-569a-4f9c-9a7c-af7c4630b4d6","_postman_id":"dfe6ec4d-569a-4f9c-9a7c-af7c4630b4d6","description":""},{"name":"Envíos y etiquetas","item":[{"name":"Get Shipment by Order ID","id":"c5834df0-46e5-4b0a-b196-261e7d67327f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"url":"https://api.starkoms.org/api/v3/ext/orders/163630/shipment","description":"<p>Devuelve el envío más reciente del pedido: carrier, número de seguimiento, URLs de la etiqueta (<code>pdf</code>, <code>zpl</code>), estado del envío e historial.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parámetro</th>\n<th>Ubicación</th>\n<th>Obligatorio</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>ruta</td>\n<td>Sí</td>\n<td>ID del pedido en starkoms (campo <code>id</code> de <em>Get Orders</em>), no el <code>order_reference</code></td>\n</tr>\n<tr>\n<td><code>printed</code></td>\n<td>query</td>\n<td>No</td>\n<td><code>true</code> registra la fecha de impresión de la etiqueta (solo la primera vez)</td>\n</tr>\n</tbody>\n</table>\n</div><p>También devuelve envíos cancelados: revisa <code>shipment_state.type</code>.</p>\n<p><strong>Errores (HTTP 400)</strong>: <code>{\"message\":\"Shipment not found\"}</code> si el pedido no tiene envío o no pertenece a tu tienda.</p>\n","urlObject":{"protocol":"https","path":["api","v3","ext","orders","163630","shipment"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"5da41756-7924-49c8-bae2-e870bb58afb3","name":"Get Shipment by Order ID","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{bearer_token_0u01}}"}],"url":"https://api.starkoms.org/api/v3/ext/orders/163630/shipment"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc"},{"key":"Date","value":"Fri, 14 Jul 2023 21:00:04 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"-1"},{"key":"X-RateLimit-Limit","value":"1500"},{"key":"X-RateLimit-Remaining","value":"1497"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 128904,\n    \"order_reference\": \"1063\",\n    \"carrier_id\": 19,\n    \"store_id\": 69,\n    \"customer_id\": 128920,\n    \"address_id\": 128931,\n    \"shipping_number\": \"42440620144\",\n    \"label\": \"\",\n    \"current_state\": 973,\n    \"source_id\": 11,\n    \"created_at\": \"2022-07-20T18:58:06+00:00\",\n    \"updated_at\": \"2022-07-20T18:59:35+00:00\",\n    \"pdf\": \"https://example.com/shipment/42440620144.pdf\",\n    \"bags\": 1,\n    \"manifest_id\": null,\n    \"total_products\": \"24000.00\",\n    \"total_shipping\": \"3309.00\",\n    \"total_discount\": \"0.00\",\n    \"total_paid\": \"27309.00\",\n    \"deleted_at\": null,\n    \"order_id\": 163630,\n    \"barcode\": \"7298916332\",\n    \"tracking_url\": \"http://tracking.starkoms.com/#/tracking/MVV6bmhENGJtMG9NWm44K3BsdW5uZz09\",\n    \"additional_data\": \"{\\\"order_id\\\":4875772199124,\\\"address\\\":\\\"shipping_address\\\",\\\"order_type\\\":\\\"OD\\\",\\\"shipping_code\\\":\\\"\\\",\\\"assigned_carrier\\\":null}\",\n    \"tracking_carrier\": \"\",\n    \"warehouses\": \"[]\",\n    \"printed\": \"2022-07-20 18:59:35\",\n    \"tags\": null,\n    \"zpl\": \"https://example.com/shipment/42440620144.txt\",\n    \"customer\": {\n        \"id\": 128920,\n        \"email\": \"juan.perez@example.com\",\n        \"firstname\": \"Juan\",\n        \"lastname\": \"Pérez\",\n        \"fullname\": \"Juan Pérez\",\n        \"store_id\": 69,\n        \"created_at\": \"2022-07-20T18:58:06+00:00\",\n        \"updated_at\": \"2022-07-20T18:58:06+00:00\"\n    },\n    \"address\": {\n        \"id\": 128931,\n        \"street\": \"Av. Ejemplo\",\n        \"number\": \"123\",\n        \"dpto\": \"\",\n        \"city\": \"santiago\",\n        \"state\": \"Metropolitana de Santiago\",\n        \"province\": \"Santiago\",\n        \"dni\": \"1-9\",\n        \"phone\": \"9 2345 6789\",\n        \"comment\": \"\",\n        \"store_id\": 69,\n        \"created_at\": \"2022-07-20T18:58:06+00:00\",\n        \"updated_at\": \"2022-07-20T18:58:06+00:00\",\n        \"zip_code\": null,\n        \"country\": \"CL\",\n        \"latitude\": null,\n        \"longitude\": null,\n        \"note\": null\n    },\n    \"order_detail\": [\n        {\n            \"id\": 207861,\n            \"name\": \"ADIDAS  KIDS STAN SMITH\",\n            \"sku\": \"AD-02-white-1\",\n            \"ean\": null,\n            \"quantity\": 1,\n            \"total\": 24000,\n            \"high\": 1,\n            \"width\": 1,\n            \"depth\": 1,\n            \"weight\": \"1.000\",\n            \"shipment_id\": 128904,\n            \"store_id\": 69,\n            \"created_at\": \"2022-07-20T18:58:06+00:00\",\n            \"updated_at\": \"2022-07-20T18:58:06+00:00\"\n        }\n    ],\n    \"source\": {\n        \"id\": 11,\n        \"name\": \"Shopify\"\n    },\n    \"carrier\": {\n        \"id\": 19,\n        \"name\": \"Bluex\",\n        \"api_data\": \"{\\\"url_emision\\\": \\\"http://portal.bluex.cl/ws_emision_integracion/BXEMS001EmisionIntegracionImpl\\\", \\\"url_tracking\\\": \\\"https://portal.bluex.cl/ws_tracking_integrado/BXTRK002TrackingIntegrado\\\", \\\"localidades\\\": [{\\\"COD_REGION\\\": 15, \\\"NOM_REGION\\\": \\\"Arica y Parinacota\\\", \\\"COD_COMUNA\\\": 15101, \\\"NOM_COMUNA\\\": \\\"ARICA\\\", \\\"COD_LOCALIDAD\\\": \\\"ACZ\\\", \\\"NOM_LOCALIDAD\\\": \\\"CODPA\\\"}, {\\\"COD_REGION\\\": 15, \\\"NOM_REGION\\\": \\\"Arica y Parinacota\\\", \\\"COD_COMUNA\\\": 15101, \\\"NOM_COMUNA\\\": \\\"ARICA\\\", \\\"COD_LOCALIDAD\\\": \\\"AGN\\\", \\\"NOM_LOCALIDAD\\\": \\\"GUANACAHUA\\\"}]}\",\n        \"virtual_of\": null\n    },\n    \"shipment_state\": {\n        \"id\": 973,\n        \"name\": \"Listo para Enviar\",\n        \"store_id\": 69,\n        \"type\": \"DEFAULT_OUT_SHIPMENT\"\n    },\n    \"shipment_history\": [\n        {\n            \"id\": 496900,\n            \"created_at\": \"2022-07-20T18:58:06+00:00\",\n            \"updated_at\": \"2022-07-20T18:58:06+00:00\",\n            \"shipment_state_id\": 971,\n            \"store_id\": 69,\n            \"shipment_id\": 128904,\n            \"shipment_state\": {\n                \"id\": 971,\n                \"name\": \"Ingresado\",\n                \"store_id\": 69,\n                \"type\": \"DEFAULT_IN_SHIPPING\"\n            }\n        },\n        {\n            \"id\": 496901,\n            \"created_at\": \"2022-07-20T18:58:07+00:00\",\n            \"updated_at\": \"2022-07-20T18:58:07+00:00\",\n            \"shipment_state_id\": 971,\n            \"store_id\": 69,\n            \"shipment_id\": 128904,\n            \"shipment_state\": {\n                \"id\": 971,\n                \"name\": \"Ingresado\",\n                \"store_id\": 69,\n                \"type\": \"DEFAULT_IN_SHIPPING\"\n            }\n        }\n    ]\n}"},{"id":"a8fc6a03-6bce-4c00-98e2-96c364967a41","name":"Get Shipment by Order ID -> Not Found","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"}],"url":"https://api.starkoms.org/api/v3/ext/orders/33/shipment"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 28 Apr 2023 20:23:58 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"x-ratelimit-limit","value":"1500","enabled":true},{"key":"x-ratelimit-remaining","value":"1498","enabled":true},{"key":"vary","value":"Authorization","enabled":true},{"key":"CF-Cache-Status","value":"DYNAMIC","enabled":true},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=JrqVKQpkqQOJPY78n0Xq3O%2BE2f0rK0LGUjS0I6JcCt9%2B1ErwLcacxdDksOzwjTQ96C%2BNiLpC1lCC9ARCraXY4cy58ajYigtfhGRdUCWzOOwt6bR1vgypAKddA19fkxsxU2q8\"}],\"group\":\"cf-nel\",\"max_age\":604800}","enabled":true},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}","enabled":true},{"key":"Server","value":"cloudflare","enabled":true},{"key":"CF-RAY","value":"7bf206ab6bee751b-SCL","enabled":true},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Shipment not found\"\n}"}],"_postman_id":"c5834df0-46e5-4b0a-b196-261e7d67327f"},{"name":"Get Shipment ZPL Label (BETA)","id":"6eeb1aa9-197a-4e85-ad83-715b8d3fe004","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"url":"https://api.starkoms.org/api/v3/ext/orders/163630/shipment/label/zpl","description":"<p>Obtiene la etiqueta en formato ZPL del envío más reciente del pedido. Es equivalente a <em>Get Shipment ZPL Label by Shipping Number (BETA)</em>, que busca por número de seguimiento.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parámetro</th>\n<th>Ubicación</th>\n<th>Obligatorio</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>ruta</td>\n<td>Sí</td>\n<td>ID del pedido en starkoms</td>\n</tr>\n<tr>\n<td><code>printed</code></td>\n<td>query</td>\n<td>No</td>\n<td><code>true</code> registra la fecha de impresión de la etiqueta (solo la primera vez)</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Errores (HTTP 400)</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><code>message</code></th>\n<th>Caso</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Shipment is cancelled</code></td>\n<td>El envío está cancelado</td>\n</tr>\n<tr>\n<td><code>Shipment not found</code></td>\n<td>El pedido no tiene envío, o el envío todavía no tiene etiqueta. En el segundo caso la respuesta incluye además <code>state</code>, <code>error</code> y <code>additional_info</code> con el detalle del carrier</td>\n</tr>\n</tbody>\n</table>\n</div><p>Según la configuración de la tienda, obtener la etiqueta puede avanzar el estado del pedido.</p>\n","urlObject":{"protocol":"https","path":["api","v3","ext","orders","163630","shipment","label","zpl"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"ca4476e4-ad61-490d-a258-58269b56c5ec","name":"Get Shipment ZPL Label (BETA)","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"}],"url":"https://api.starkoms.org/api/v3/ext/orders/163630/shipment/label/zpl"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 18 Jul 2023 15:58:43 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1499","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"br","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"shipping_number\": \"42440620144\",\n    \"zpl\": \"^XA^FO50,50^A0N,40,40^FDEtiqueta de ejemplo^FS^XZ\"\n}"}],"_postman_id":"6eeb1aa9-197a-4e85-ad83-715b8d3fe004"},{"name":"Get Shipment ZPL Label by Shipping Number (BETA)","id":"53b4e916-ac2c-473d-8a6a-a478a32dffb7","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"url":"https://api.starkoms.org/api/v3/ext/shipment/shipping_number/42440620144/label/zpl","description":"<p>Obtiene la etiqueta en formato ZPL de un envío a partir de su número de seguimiento (<code>shipping_number</code>). Es equivalente a <em>Get Shipment ZPL Label (BETA)</em>, que busca por ID de pedido.</p>\n<p>Si la tienda tiene más de un envío con el mismo número de seguimiento, se devuelve el más reciente.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parámetro</th>\n<th>Ubicación</th>\n<th>Obligatorio</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>shipping_number</code></td>\n<td>ruta</td>\n<td>Sí</td>\n<td>Número de seguimiento del envío</td>\n</tr>\n<tr>\n<td><code>printed</code></td>\n<td>query</td>\n<td>No</td>\n<td><code>true</code> registra la fecha de impresión de la etiqueta (solo la primera vez)</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Errores (HTTP 400)</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><code>message</code></th>\n<th>Caso</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Shipment is cancelled</code></td>\n<td>El envío está cancelado</td>\n</tr>\n<tr>\n<td><code>Shipment not found</code></td>\n<td>No existe un envío con ese número en la tienda, o el envío todavía no tiene etiqueta. En el segundo caso la respuesta incluye además <code>state</code>, <code>error</code> y <code>additional_info</code> con el detalle del carrier</td>\n</tr>\n</tbody>\n</table>\n</div><p>Según la configuración de la tienda, obtener la etiqueta puede avanzar el estado del pedido.</p>\n","urlObject":{"protocol":"https","path":["api","v3","ext","shipment","shipping_number","42440620144","label","zpl"],"host":["api","starkoms","org"],"query":[{"disabled":true,"description":{"content":"<p>Opcional. <code>true</code> registra la fecha de impresión de la etiqueta (solo la primera vez).</p>\n","type":"text/plain"},"key":"printed","value":"true"}],"variable":[]}},"response":[{"id":"4a87b214-3a1b-4a91-bdd0-04ea19d62eef","name":"Get Shipment ZPL Label by Shipping Number","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"url":"https://api.starkoms.org/api/v3/ext/shipment/shipping_number/42440620144/label/zpl"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"shipping_number\": \"42440620144\",\n    \"zpl\": \"^XA^FO50,50^A0N,40,40^FDEtiqueta de ejemplo^FS^XZ\"\n}"}],"_postman_id":"53b4e916-ac2c-473d-8a6a-a478a32dffb7"}],"id":"7ac23d06-493f-467b-aee2-44f764b48513","_postman_id":"7ac23d06-493f-467b-aee2-44f764b48513","description":""},{"name":"Productos y stock","item":[{"name":"Get Products","id":"cfa6a5a4-7602-433e-ac80-ead968515625","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"url":"https://api.starkoms.org/api/v3/ext/products?filter_groups[0][filters][0][operator]=eq&filter_groups[0][filters][0][value]=3636&filter_groups[0][filters][0][key]=sku","description":"<p>La cantidad disponible es:  </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">....\n\"stocks\" {\n    ....\n    \"quantity\": 10\n.....\n}\n\n</code></pre>\n<p>Si se requiere se puede filtrar</p>\n<p>Filtros:</p>\n<p><code>{ \"filter_groups\":[ { \"filters\":[ { \"key\":\"sku\", \"value\":\"SKUTEST\", \"operator\":\"eq\" } ] } ]</code></p>\n<p>Se debe usar HTTP Query string.<br />Herramienta <a href=\"https://www.convertonline.io/convert/json-to-query-string\">https://www.convertonline.io/convert/json-to-query-string</a></p>\n","urlObject":{"protocol":"https","path":["api","v3","ext","products"],"host":["api","starkoms","org"],"query":[{"key":"filter_groups[0][filters][0][operator]","value":"eq"},{"key":"filter_groups[0][filters][0][value]","value":"3636"},{"key":"filter_groups[0][filters][0][key]","value":"sku"}],"variable":[]}},"response":[{"id":"c3c4b86d-903f-47b1-b90f-6cf92cb4006c","name":"Get Products","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"}],"url":{"raw":"https://api.starkoms.org/api/v3/ext/products","protocol":"https","host":["api","starkoms","org"],"path":["api","v3","ext","products"],"query":[{"key":"filter_groups[0][filters][0][operator]","value":"eq","disabled":true},{"key":"page","value":"1","type":"text","disabled":true},{"key":"limit","value":"100","type":"text","disabled":true},{"key":"filter_groups[0][filters][0][value]","value":"5108144","disabled":true},{"key":"filter_groups[0][filters][0][key]","value":"sku","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 10 May 2022 17:11:48 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1499","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 68142,\n            \"name\": \"Producto Pruebas\",\n            \"sku\": \"SKUTEST\",\n            \"ean\": \"EANTEST\",\n            \"price\": \"111000.000\",\n            \"ext_sku\": \"SKUTEST\",\n            \"active\": 1,\n            \"is_bundle\": 0,\n            \"height\": \"100.000\",\n            \"width\": \"101.000\",\n            \"depth\": \"102.000\",\n            \"weight\": \"103.000\",\n            \"stocks\": [\n                {\n                    \"id\": 241520,\n                    \"physical_quantity\": 0,\n                    \"reserved_quantity\": 0,\n                    \"quantity\": 0,\n                    \"location_id\": 70,\n                    \"product_id\": 68142,\n                    \"store_id\": 50,\n                    \"warehouse_id\": 72,\n                    \"created_at\": \"2022-05-10T17:11:12+00:00\",\n                    \"updated_at\": \"2022-05-10T17:11:12+00:00\",\n                    \"deleted_at\": null\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"cfa6a5a4-7602-433e-ac80-ead968515625"},{"name":"Get Product By ID","id":"ffa92e39-2052-447d-b2df-957df7b4e55e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"url":"https://api.starkoms.org/api/v3/ext/products/22","description":"<p>La cantidad disponible es:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">....\n\"stocks\" {\n    ....\n    \"quantity\": 10\n.....\n}\n\n</code></pre>\n<p>Bundle:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">...\n\"bundle_items\": [\n      {\n        \"product_id\": 294476,\n        \"sku\": \"965451\",\n        \"quantity\": \"1.000\"\n      },\n      {\n        \"product_id\": 574188,\n        \"sku\": \"M5690321600-1\",\n        \"quantity\": \"1.000\"\n      }\n    ]\n...\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["api","v3","ext","products","22"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"9e671e21-9a29-4a79-8674-40b25470e57e","name":"Get Product By ID","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"}],"url":{"raw":"https://api.starkoms.org/api/v3/ext/products/603582","protocol":"https","host":["api","starkoms","org"],"path":["api","v3","ext","products","603582"],"query":[{"key":"filter_groups[0][filters][0][operator]","value":"eq","disabled":true},{"key":"page","value":"1","type":"text","disabled":true},{"key":"limit","value":"100","type":"text","disabled":true},{"key":"filter_groups[0][filters][0][value]","value":"5108144","disabled":true},{"key":"filter_groups[0][filters][0][key]","value":"sku","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 10 May 2022 17:11:48 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1499","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n  \"data\": {\n    \"id\": 603582,\n    \"name\": \"Aceite De Motor Shell Helix Hx8 Ect 5w30 5 L + Destapador Vintage\",\n    \"sku\": \"965451xD\",\n    \"ean\": \"5011987040489\",\n    \"price\": \"74090.000\",\n    \"category_id\": 2634,\n    \"ext_sku\": \"965451xD\",\n    \"active\": 1,\n    \"is_bundle\": 1,\n    \"height\": \"29.000\",\n    \"width\": \"23.000\",\n    \"depth\": \"11.000\",\n    \"weight\": \"4.000\",\n    \"brand_id\": 3122,\n    \"is_serialized\": 0,\n    \"use_batch_code\": 0,\n    \"stocks\": [\n      {\n        \"id\": 1779438,\n        \"physical_quantity\": 11,\n        \"reserved_quantity\": 0,\n        \"quantity\": 11,\n        \"location_id\": 306,\n        \"product_id\": 603582,\n        \"store_id\": 152,\n        \"warehouse_id\": 182,\n        \"created_at\": \"2025-11-04T13:22:10.000000Z\",\n        \"updated_at\": \"2026-05-20T09:41:55.000000Z\",\n        \"deleted_at\": null\n      }\n    ],\n    \"bundle_items\": [\n      { \"product_id\": 294476, \"sku\": \"965451\",        \"quantity\": \"1.000\" },\n      { \"product_id\": 574188, \"sku\": \"M5690321600-1\", \"quantity\": \"1.000\" }\n    ]\n  }\n}"}],"_postman_id":"ffa92e39-2052-447d-b2df-957df7b4e55e"},{"name":"Create Product","id":"613e4625-3690-4752-a22a-4859295b8cab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Producto Pruebas\",\n    \"sku\": \"SKUTEST\",\n    \"ean\": \"EANTEST\",\n    \"price\": 111000,\n    \"category_id\": 56,\n    \"brand_id\": 1,\n    \"ext_sku\": \"SKUTEST\",\n    \"high\": \"100.000\",\n    \"width\": \"101.000\",\n    \"depth\": \"102.000\",\n    \"weight\": \"103.000\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/products","description":"<p>Crea un producto en el catálogo de la tienda.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Campo</th>\n<th>Obligatorio</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>sku</code></td>\n<td>Sí</td>\n<td>Único en la tienda</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>Sí</td>\n<td>Nombre</td>\n</tr>\n<tr>\n<td><code>price</code></td>\n<td>Sí</td>\n<td>Precio, ≥ 0</td>\n</tr>\n<tr>\n<td><code>high</code></td>\n<td>Sí</td>\n<td>Alto en cm (el campo se llama <code>high</code>)</td>\n</tr>\n<tr>\n<td><code>width</code></td>\n<td>Sí</td>\n<td>Ancho en cm</td>\n</tr>\n<tr>\n<td><code>depth</code></td>\n<td>Sí</td>\n<td>Largo en cm</td>\n</tr>\n<tr>\n<td><code>weight</code></td>\n<td>Sí</td>\n<td>Peso en kg</td>\n</tr>\n<tr>\n<td><code>ext_sku</code></td>\n<td>Sí</td>\n<td>SKU externo, por ejemplo el del ERP</td>\n</tr>\n<tr>\n<td><code>category_id</code></td>\n<td>Sí</td>\n<td>ID de una categoría de la tienda (<em>Get Categories</em>)</td>\n</tr>\n<tr>\n<td><code>ean</code></td>\n<td>No</td>\n<td>Código de barras</td>\n</tr>\n<tr>\n<td><code>brand_id</code></td>\n<td>No</td>\n<td>ID de una marca de la tienda (<em>Get Brands</em>)</td>\n</tr>\n</tbody>\n</table>\n</div><p>El producto se crea activo y con stock 0 en todas las bodegas de la tienda. Para cargar stock usa <em>Update Product Stock</em>.</p>\n<p><strong>Errores (HTTP 400)</strong></p>\n<ul>\n<li>Validación: <code>{\"error\":{\"&lt;campo&gt;\":[\"&lt;mensaje&gt;\"]}}</code></li>\n<li><code>{\"error\":\"Ya existe un producto con el mismo SKU\"}</code></li>\n<li><code>{\"error\":\"Categoría no encontrada\"}</code></li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v3","ext","products"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"1dd9f747-b2ea-493f-87b5-b9b60d444b5d","name":"Create Product","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Producto Pruebas\",\n    \"sku\": \"SKUTEST\",\n    \"ean\": \"EANTEST\",\n    \"price\": 111000,\n    \"category_id\": 56,\n    \"brand_id\": 1,\n    \"ext_sku\": \"SKUTEST\",\n    \"height\": \"100.000\",\n    \"width\": \"101.000\",\n    \"depth\": \"102.000\",\n    \"weight\": \"103.000\",\n    \"high\": \"100.000\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 10 May 2022 17:11:12 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1498","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 68142,\n            \"name\": \"Producto Pruebas\",\n            \"sku\": \"SKUTEST\",\n            \"ean\": \"EANTEST\",\n            \"price\": \"111000.000\",\n            \"ext_sku\": \"SKUTEST\",\n            \"active\": 1,\n            \"is_bundle\": 0,\n            \"height\": \"100.000\",\n            \"width\": \"101.000\",\n            \"depth\": \"102.000\",\n            \"weight\": \"103.000\",\n            \"stocks\": [\n                {\n                    \"id\": 241520,\n                    \"physical_quantity\": 0,\n                    \"reserved_quantity\": 0,\n                    \"quantity\": 0,\n                    \"location_id\": 70,\n                    \"product_id\": 68142,\n                    \"store_id\": 50,\n                    \"warehouse_id\": 72,\n                    \"created_at\": \"2022-05-10T17:11:12+00:00\",\n                    \"updated_at\": \"2022-05-10T17:11:12+00:00\",\n                    \"deleted_at\": null\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"613e4625-3690-4752-a22a-4859295b8cab"},{"name":"Update Product","id":"484acb30-05c1-49c6-b9bd-cebb9c319eb8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Producto Pruebas\",\n    \"sku\": \"SKUTEST\",\n    \"ean\": \"EANTEST\",\n    \"price\": 111000,\n    \"category_id\": 56,\n    \"brand_id\": 1,\n    \"ext_sku\": \"SKUTEST\",\n    \"high\": \"100.000\",\n    \"width\": \"101.000\",\n    \"depth\": \"102.000\",\n    \"weight\": \"103.000\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/products/72031","description":"<p>Actualiza el producto <code>{id}</code> (ID de starkoms, no el SKU).</p>\n<p><strong>Es un reemplazo completo</strong>: exige los mismos campos que <em>Create Product</em>. Un campo opcional que no envíes queda vacío (<code>ean</code> en blanco, <code>brand_id</code> sin marca). Actualizar un producto también lo deja <strong>activo</strong>.</p>\n<p>No modifica el stock: para eso usa <em>Update Product Stock</em>.</p>\n<p><strong>Errores (HTTP 400)</strong></p>\n<ul>\n<li>Validación: <code>{\"error\":{\"&lt;campo&gt;\":[\"&lt;mensaje&gt;\"]}}</code></li>\n<li><code>{\"error\":\"El id no corresponde a ningun producto\"}</code></li>\n<li><code>{\"error\":\"Categoría no encontrada\"}</code></li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v3","ext","products","72031"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"7591cb86-195c-4990-9042-3af83f0b5acf","name":"Update Product","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Producto Pruebas\",\n    \"sku\": \"SKUTEST\",\n    \"ean\": \"EANTEST\",\n    \"price\": 111000,\n    \"category_id\": 56,\n    \"brand_id\": 1,\n    \"ext_sku\": \"SKUTEST\",\n    \"height\": \"100.000\",\n    \"width\": \"101.000\",\n    \"depth\": \"102.000\",\n    \"weight\": \"103.000\",\n    \"high\": \"100.000\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/products/72301"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 10 May 2022 17:11:12 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1498","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 72031,\n            \"name\": \"Producto Pruebas\",\n            \"sku\": \"SKUTEST\",\n            \"ean\": \"EANTEST\",\n            \"price\": \"111000.000\",\n            \"ext_sku\": \"SKUTEST\",\n            \"active\": 1,\n            \"is_bundle\": 0,\n            \"height\": \"100.000\",\n            \"width\": \"101.000\",\n            \"depth\": \"102.000\",\n            \"weight\": \"103.000\",\n            \"brand_id\": 1,\n            \"is_serialized\": 0,\n            \"stocks\": [\n                {\n                    \"id\": 558022,\n                    \"physical_quantity\": 0,\n                    \"reserved_quantity\": 0,\n                    \"quantity\": 0,\n                    \"location_id\": 70,\n                    \"product_id\": 72031,\n                    \"store_id\": 23,\n                    \"warehouse_id\": 72,\n                    \"created_at\": \"2023-07-19T23:48:57+00:00\",\n                    \"updated_at\": \"2023-07-19T23:49:01+00:00\",\n                    \"deleted_at\": null\n                },\n                {\n                    \"id\": 1498941,\n                    \"physical_quantity\": 0,\n                    \"reserved_quantity\": 0,\n                    \"quantity\": 0,\n                    \"location_id\": 326,\n                    \"product_id\": 72031,\n                    \"store_id\": 23,\n                    \"warehouse_id\": 196,\n                    \"created_at\": \"2025-01-29T14:46:13+00:00\",\n                    \"updated_at\": \"2025-01-29T14:46:13+00:00\",\n                    \"deleted_at\": null\n                },\n                {\n                    \"id\": 1501766,\n                    \"physical_quantity\": 0,\n                    \"reserved_quantity\": 0,\n                    \"quantity\": 0,\n                    \"location_id\": 311,\n                    \"product_id\": 72031,\n                    \"store_id\": 23,\n                    \"warehouse_id\": 187,\n                    \"created_at\": \"2025-01-29T14:47:36+00:00\",\n                    \"updated_at\": \"2025-01-29T14:47:36+00:00\",\n                    \"deleted_at\": null\n                },\n                {\n                    \"id\": 1504563,\n                    \"physical_quantity\": 0,\n                    \"reserved_quantity\": 0,\n                    \"quantity\": 0,\n                    \"location_id\": 70,\n                    \"product_id\": 72031,\n                    \"store_id\": 23,\n                    \"warehouse_id\": 186,\n                    \"created_at\": \"2025-01-29T14:48:59+00:00\",\n                    \"updated_at\": \"2025-01-29T14:48:59+00:00\",\n                    \"deleted_at\": null\n                },\n                {\n                    \"id\": 1507360,\n                    \"physical_quantity\": 0,\n                    \"reserved_quantity\": 0,\n                    \"quantity\": 0,\n                    \"location_id\": 316,\n                    \"product_id\": 72031,\n                    \"store_id\": 23,\n                    \"warehouse_id\": 185,\n                    \"created_at\": \"2025-01-29T14:50:25+00:00\",\n                    \"updated_at\": \"2025-01-29T14:50:25+00:00\",\n                    \"deleted_at\": null\n                },\n                {\n                    \"id\": 1510157,\n                    \"physical_quantity\": 0,\n                    \"reserved_quantity\": 0,\n                    \"quantity\": 0,\n                    \"location_id\": 315,\n                    \"product_id\": 72031,\n                    \"store_id\": 23,\n                    \"warehouse_id\": 106,\n                    \"created_at\": \"2025-01-29T14:52:28+00:00\",\n                    \"updated_at\": \"2025-01-29T14:52:28+00:00\",\n                    \"deleted_at\": null\n                },\n                {\n                    \"id\": 1511720,\n                    \"physical_quantity\": 0,\n                    \"reserved_quantity\": 0,\n                    \"quantity\": 0,\n                    \"location_id\": 314,\n                    \"product_id\": 72031,\n                    \"store_id\": 23,\n                    \"warehouse_id\": 105,\n                    \"created_at\": \"2025-01-29T14:53:57+00:00\",\n                    \"updated_at\": \"2025-01-29T14:53:57+00:00\",\n                    \"deleted_at\": null\n                },\n                {\n                    \"id\": 1514503,\n                    \"physical_quantity\": 0,\n                    \"reserved_quantity\": 0,\n                    \"quantity\": 0,\n                    \"location_id\": 313,\n                    \"product_id\": 72031,\n                    \"store_id\": 23,\n                    \"warehouse_id\": 74,\n                    \"created_at\": \"2025-01-29T14:55:23+00:00\",\n                    \"updated_at\": \"2025-01-29T14:55:23+00:00\",\n                    \"deleted_at\": null\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"484acb30-05c1-49c6-b9bd-cebb9c319eb8"},{"name":"Delete Product","id":"a63600cb-9501-4cf1-acd1-b47ae1408a3b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"url":"https://api.starkoms.org/api/v3/ext/products/72031","description":"<p>Desactiva y elimina el producto <code>{id}</code> (ID de starkoms), junto con los packs que lo contienen. Responde <code>\"OK\"</code>.</p>\n<p>No modifica el stock publicado en los canales de venta: si el producto sigue publicado en un marketplace, actualiza su stock a 0 <strong>antes</strong> de eliminarlo.</p>\n<p><strong>Errores (HTTP 400)</strong></p>\n<ul>\n<li><code>{\"message\":\"Producto &lt;sku&gt; no se puede borrar por estar asociado a una orden en curso\"}</code></li>\n<li><code>{\"error\":\"El id no corresponde a ningun producto\"}</code></li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v3","ext","products","72031"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"c6376b50-7b84-4b9b-9d69-2641b0034591","name":"Delete Product","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"}],"url":"https://api.starkoms.org/api/v3/ext/products/72301"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 10 May 2022 17:11:12 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1498","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"\"OK\""}],"_postman_id":"a63600cb-9501-4cf1-acd1-b47ae1408a3b"},{"name":"Update Product Stock","id":"2d475ae6-abf9-4a63-ae88-fee05755df94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"body":{"mode":"raw","raw":"{\n    \"physical_quantity\": 11,\n    \"warehouse_id\": 72\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/products/68142/stock","description":"<p>Fija el <strong>stock físico</strong> del producto <code>{id}</code> (ID de starkoms) en una bodega.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Campo</th>\n<th>Obligatorio</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>physical_quantity</code></td>\n<td>Sí</td>\n<td>Cantidad física total en la bodega, entero ≥ 0. <strong>Es un valor absoluto, no un incremento</strong></td>\n</tr>\n<tr>\n<td><code>warehouse_id</code></td>\n<td>Sí</td>\n<td>ID de la bodega (<em>Get Warehouses</em>)</td>\n</tr>\n</tbody>\n</table>\n</div><p>El disponible se calcula como físico menos reservado (pedidos en curso). El cambio se publica en los canales de venta y dispara el webhook <em>Stock Update</em>. Para actualizar varios SKU a la vez usa <em>Update Product Stock by Sku</em>.</p>\n<p><strong>Errores (HTTP 400)</strong></p>\n<ul>\n<li>Validación: <code>{\"error\":{\"&lt;campo&gt;\":[\"&lt;mensaje&gt;\"]}}</code></li>\n<li><code>{\"error\":\"Warehouse not found\"}</code></li>\n<li><code>{\"error\":\"Product not found\"}</code></li>\n<li><code>{\"error\":\"BATCH_FEFO_NOT_SUPPORTED\"}</code>: la tienda maneja stock por lote</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v3","ext","products","68142","stock"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"5ad7caeb-1bd8-4e07-9203-cdd669a096f6","name":"Update Product Stock","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"physical_quantity\": 11,\n    \"warehouse_id\": 72\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.starkoms.org/api/v3/ext/products/68142/stock","protocol":"https","host":["api","starkoms","org"],"path":["api","v3","ext","products","68142","stock"],"query":[{"key":"page","value":"1","type":"text","disabled":true},{"key":"limit","value":"100","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 10 May 2022 17:12:44 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1496","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 68142,\n            \"name\": \"Producto Pruebas\",\n            \"sku\": \"SKUTEST\",\n            \"ean\": \"EANTEST\",\n            \"price\": \"111000.000\",\n            \"ext_sku\": \"SKUTEST\",\n            \"active\": 1,\n            \"is_bundle\": 0,\n            \"height\": \"100.000\",\n            \"width\": \"101.000\",\n            \"depth\": \"102.000\",\n            \"weight\": \"103.000\",\n            \"stocks\": [\n                {\n                    \"id\": 241520,\n                    \"physical_quantity\": 11,\n                    \"reserved_quantity\": 0,\n                    \"quantity\": 11,\n                    \"location_id\": 70,\n                    \"product_id\": 68142,\n                    \"store_id\": 50,\n                    \"warehouse_id\": 72,\n                    \"created_at\": \"2022-05-10T17:11:12+00:00\",\n                    \"updated_at\": \"2022-05-10T17:12:44+00:00\",\n                    \"deleted_at\": null\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"2d475ae6-abf9-4a63-ae88-fee05755df94"},{"name":"Update Product Stock by Sku","id":"6023da6a-be16-4afa-a7e4-a30ffbdfd2fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer XXXXXXXX","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"items\": [\n        {\n            \"sku\": \"SKUPRUE2026TE\",\n            \"physical_quantity\": 11\n        },\n        {\n            \"sku\": \"SKUPRUEBAIMG\",\n            \"physical_quantity\": 5\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/products/stock/by-sku","description":"<p>Fija el <strong>stock físico</strong> de varios productos por SKU en una sola llamada.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Campo</th>\n<th>Obligatorio</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>items</code></td>\n<td>Sí</td>\n<td>Entre 1 y <strong>50</strong> elementos</td>\n</tr>\n<tr>\n<td><code>items[].sku</code></td>\n<td>Sí</td>\n<td>SKU del producto</td>\n</tr>\n<tr>\n<td><code>items[].physical_quantity</code></td>\n<td>Sí</td>\n<td>Cantidad física total en la bodega, entero ≥ 0. Es un valor absoluto, como en <em>Update Product Stock</em></td>\n</tr>\n<tr>\n<td><code>items[].warehouse_id</code></td>\n<td>No</td>\n<td>ID de la bodega. Si no lo envías se usa la bodega por defecto de la tienda (<code>default=1</code> en <em>Get Warehouses</em>)</td>\n</tr>\n</tbody>\n</table>\n</div><p>Se procesa en segundo plano. Responde <strong>HTTP 202</strong>:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{ \"message\": \"Stock update queued\", \"count\": 2, \"warehouse_default_applied\": 1 }\n</code></pre>\n<p><code>warehouse_default_applied</code> indica cuántos elementos usaron la bodega por defecto.</p>\n<p><strong>Errores</strong></p>\n<ul>\n<li>HTTP 422 <code>{\"error\":{\"&lt;campo&gt;\":[\"&lt;mensaje&gt;\"]}}</code>: validación</li>\n<li>HTTP 400 <code>{\"error\":\"No default warehouse found for store\"}</code>: algún elemento no trae <code>warehouse_id</code> y la tienda no tiene bodega por defecto</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v3","ext","products","stock","by-sku"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"e54926e3-09cc-4cca-9fa0-272594d22d3c","name":"Update Product Stock by Sku","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer XXXXXXXX","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"items\": [\n        {\n            \"sku\": \"SKUPRUE2026TE\",\n            \"physical_quantity\": 11\n        },\n        {\n            \"sku\": \"SKUPRUEBAIMG\",\n            \"physical_quantity\": 5\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/products/stock/by-sku"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":":status","value":202},{"key":"date","value":"Thu, 12 Mar 2026 12:00:46 GMT"},{"key":"Content-Type","value":"application/json","description":"","type":"text"},{"key":"server","value":"cloudflare"},{"key":"cache-control","value":"private, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"-1"},{"key":"x-ratelimit-limit","value":"1500"},{"key":"x-ratelimit-remaining","value":"1496"},{"key":"vary","value":"Authorization"},{"key":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=JheA0dZw5joAZEQ77osp%2FFX%2FFpzSdZUkHclZp5UxZCbMnfuEe8zPKuXR%2Fm18WzmZ6sGqvLKhBS0qEyvpKdiTbS3eK1saixY5HMDhZnfM\"}]}"},{"key":"cf-ray","value":"9db2a3efe9911e8a-EZE"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"message\": \"Stock update queued\",\n    \"count\": 2,\n    \"warehouse_default_applied\": 2\n}"}],"_postman_id":"6023da6a-be16-4afa-a7e4-a30ffbdfd2fb"},{"name":"Get Warehouses","id":"9d6b8629-d847-486d-9e56-4de870d6e722","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"url":"https://api.starkoms.org/api/v3/ext/warehouses","description":"<p>Lista las bodegas de la tienda con <code>id</code>, <code>name</code>, <code>default</code> y <code>priority</code>.</p>\n<ul>\n<li><code>id</code> es el <code>warehouse_id</code> que usan los endpoints de stock.</li>\n<li><code>default=1</code> marca la bodega que se usa cuando no indicas una.</li>\n</ul>\n<p>Acepta <code>limit</code> (máximo 50) y <code>page</code> (requiere <code>limit</code>).</p>\n","urlObject":{"protocol":"https","path":["api","v3","ext","warehouses"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"391bb684-6615-4d50-b72b-879a734e6e43","name":"Get Warehouses","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"}],"url":{"raw":"https://api.starkoms.org/api/v3/ext/warehouses?includes[]=stocks","protocol":"https","host":["api","starkoms","org"],"path":["api","v3","ext","warehouses"],"query":[{"key":"filter_groups[0][filters][0][operator]","value":"eq","disabled":true},{"key":"page","value":"1","type":"text","disabled":true},{"key":"limit","value":"100","type":"text","disabled":true},{"key":"filter_groups[0][filters][0][value]","value":"5108144","disabled":true},{"key":"filter_groups[0][filters][0][key]","value":"sku","disabled":true},{"key":"includes[]","value":"stocks"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 10 May 2022 17:12:37 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1497","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 72,\n            \"name\": \"Ssano\",\n            \"default\": 1,\n            \"priority\": \"1.0\",\n            \"stocks\": [\n                {\n                    \"id\": 241520,\n                    \"physical_quantity\": 0,\n                    \"reserved_quantity\": 0,\n                    \"quantity\": 0,\n                    \"location_id\": 70,\n                    \"product_id\": 68142,\n                    \"store_id\": 50,\n                    \"warehouse_id\": 72,\n                    \"created_at\": \"2022-05-10T17:11:12+00:00\",\n                    \"updated_at\": \"2022-05-10T17:11:12+00:00\",\n                    \"deleted_at\": null\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"9d6b8629-d847-486d-9e56-4de870d6e722"}],"id":"8c81ccc4-3129-4ab7-8125-d39dd2b9bb4e","_postman_id":"8c81ccc4-3129-4ab7-8125-d39dd2b9bb4e","description":""},{"name":"Categorías","item":[{"name":"Get Categories","id":"30215a3d-ae42-4b9d-970b-af6ce0d5c261","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"url":"https://api.starkoms.org/api/v3/ext/categories","description":"<p>Lista las categorías de la tienda con <code>id</code>, <code>name</code> y <code>parent_category</code> (ID de la categoría padre, o vacío si es de primer nivel).</p>\n<p>Acepta <code>limit</code> y <code>page</code>. En este endpoint <code>page</code> empieza en <strong>0</strong> y requiere <code>limit</code>.</p>\n","urlObject":{"protocol":"https","path":["api","v3","ext","categories"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"2f6cfe31-a76f-4dbd-8685-05a439b682d6","name":"Get Categories","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"}],"url":{"raw":"https://api.starkoms.org/api/v3/ext/categories","protocol":"https","host":["api","starkoms","org"],"path":["api","v3","ext","categories"],"query":[{"key":"filter_groups[0][filters][0][operator]","value":"eq","disabled":true},{"key":"page","value":"1","type":"text","disabled":true},{"key":"limit","value":"100","type":"text","disabled":true},{"key":"filter_groups[0][filters][0][value]","value":"eeeee","disabled":true},{"key":"filter_groups[0][filters][0][key]","value":"name","disabled":true},{"key":"includes[]","value":"stocks","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 10 May 2022 17:10:47 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1499","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 56,\n            \"name\": \"Ssano\",\n            \"parent_category\": 0\n        }\n    ]\n}"}],"_postman_id":"30215a3d-ae42-4b9d-970b-af6ce0d5c261"},{"name":"Create Category","id":"48b1a701-b625-4dbb-8d72-3c6ed99faa7c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Category Name\",\n    \"parent_category\": 0\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/categories","description":"<p>Crea una categoría.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Campo</th>\n<th>Obligatorio</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>Sí</td>\n<td>Nombre. No se valida que sea único</td>\n</tr>\n<tr>\n<td><code>parent_category</code></td>\n<td>No</td>\n<td>ID de la categoría padre</td>\n</tr>\n</tbody>\n</table>\n</div><p>Responde <code>{\"id\", \"name\", \"parent_category\"}</code>.</p>\n<p><strong>Errores (HTTP 400)</strong></p>\n<ul>\n<li>Validación: <code>{\"error\":{\"name\":[\"The name field is required.\"]}}</code></li>\n<li><code>{\"error\":\"El parent_category no corresponde a ninguna categoría\"}</code></li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v3","ext","categories"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"3cf5161b-c4d6-4041-be21-c9bba8db2e06","name":"Create Category","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Category Name\",\n    \"parent_category\": 0\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 10 May 2022 17:10:47 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1499","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 56,\n    \"name\": \"Category Name\",\n    \"parent_category\": 0\n}"}],"_postman_id":"48b1a701-b625-4dbb-8d72-3c6ed99faa7c"},{"name":"Update Category","id":"32bcb3e4-d1a0-4f4a-98ae-5a1666c63fa2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"New Category Name\",\n    \"parent_category\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/categories/56","description":"<p>Actualiza el nombre y la categoría padre de la categoría <code>{id}</code>.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Campo</th>\n<th>Obligatorio</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>Sí</td>\n<td>Nombre nuevo</td>\n</tr>\n<tr>\n<td><code>parent_category</code></td>\n<td>No</td>\n<td>ID de la categoría padre. Si no lo envías, la categoría queda de primer nivel</td>\n</tr>\n</tbody>\n</table>\n</div><p>Responde <code>{\"id\", \"name\", \"parent_category\"}</code>.</p>\n<p><strong>Errores (HTTP 400)</strong></p>\n<ul>\n<li>Validación: <code>{\"error\":{\"name\":[\"The name field is required.\"]}}</code></li>\n<li><code>{\"error\":\"El id no corresponde a ninguna categoría\"}</code></li>\n<li><code>{\"error\":\"El parent_category no corresponde a ninguna categoría\"}</code></li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v3","ext","categories","56"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"1ff57cb8-2b5f-49bb-b89c-cc2e27c09b9d","name":"Update Category","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"New Category Name\",\n    \"parent_category\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/categories/56"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 10 May 2022 17:10:47 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1499","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 56,\n    \"name\": \"New Category Name\",\n    \"parent_category\": 1\n}"}],"_postman_id":"32bcb3e4-d1a0-4f4a-98ae-5a1666c63fa2"},{"name":"Delete Category","id":"174a2e37-39f2-4d1b-895c-fe680f3a17cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"url":"https://api.starkoms.org/api/v3/ext/categories/56","description":"<p>Elimina la categoría <code>{id}</code> y responde <code>\"OK\"</code>. Los productos que la tenían quedan asignados a otra categoría de la tienda.</p>\n<p><strong>Errores (HTTP 400)</strong>: <code>{\"error\":\"El id no corresponde a ninguna categoría\"}</code>.</p>\n","urlObject":{"protocol":"https","path":["api","v3","ext","categories","56"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"a9b41129-114c-4ba8-ba41-e6c7f9966826","name":"Delete Category","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.starkoms.org/api/v3/ext/categories/56"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 10 May 2022 17:10:47 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1499","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"\"OK\""}],"_postman_id":"174a2e37-39f2-4d1b-895c-fe680f3a17cf"}],"id":"7e8082e7-8543-4dc6-9672-e7b7cfa184b1","_postman_id":"7e8082e7-8543-4dc6-9672-e7b7cfa184b1","description":""},{"name":"Marcas","item":[{"name":"Get Brands","id":"c4ced339-8730-4dd8-aaab-b591431e8139","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"url":"https://api.starkoms.org/api/v3/ext/brands","description":"<p>Lista las marcas de la tienda con <code>id</code> y <code>name</code>. El <code>id</code> es el <code>brand_id</code> de <em>Create Product</em>.</p>\n<p>Acepta <code>limit</code> y <code>page</code>. En este endpoint <code>page</code> empieza en <strong>0</strong> y requiere <code>limit</code>.</p>\n","urlObject":{"protocol":"https","path":["api","v3","ext","brands"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"9ad42209-f933-4358-943a-fa0ffe4b0d49","name":"Get Brands","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"}],"url":"https://api.starkoms.org/api/v3/ext/brands"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 10 May 2022 17:10:47 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1499","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 56,\n            \"name\": \"Marca Ejemplo\"\n        }\n    ]\n}"}],"_postman_id":"c4ced339-8730-4dd8-aaab-b591431e8139"},{"name":"Create Brand","id":"c429206a-54f3-4cc0-a422-e5d630569181","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Brand Name\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/brands","description":"<p>Crea una marca.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Campo</th>\n<th>Obligatorio</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>Sí</td>\n<td>Nombre. No se valida que sea único</td>\n</tr>\n</tbody>\n</table>\n</div><p>Responde <code>{\"id\", \"name\"}</code>.</p>\n<p><strong>Errores (HTTP 400)</strong>: validación, <code>{\"error\":{\"name\":[\"The name field is required.\"]}}</code>.</p>\n","urlObject":{"protocol":"https","path":["api","v3","ext","brands"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"5862857a-e81d-40eb-af6b-b3079a77aeaf","name":"Create Brand","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Brand Name\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/brands"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 10 May 2022 17:10:47 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1499","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 56,\n    \"name\": \"Brand Name\"\n}"}],"_postman_id":"c429206a-54f3-4cc0-a422-e5d630569181"},{"name":"Update Brand","id":"6dff5738-42e0-46e5-adb4-ee78fe5c2705","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"New Brand Name\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/brands/56","description":"<p>Cambia el nombre de la marca <code>{id}</code>.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Campo</th>\n<th>Obligatorio</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>Sí</td>\n<td>Nombre nuevo</td>\n</tr>\n</tbody>\n</table>\n</div><p>Responde <code>{\"id\", \"name\"}</code>.</p>\n<p><strong>Errores (HTTP 400)</strong></p>\n<ul>\n<li>Validación: <code>{\"error\":{\"name\":[\"The name field is required.\"]}}</code></li>\n<li><code>{\"error\":\"El id no corresponde a ninguna marca\"}</code></li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v3","ext","brands","56"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"a953b3aa-bd52-4d72-97ab-ae0df4056864","name":"Update Brand","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"New Brand Name\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/brands/56"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 10 May 2022 17:10:47 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1499","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 56,\n    \"name\": \"New Brand Name\"\n}"}],"_postman_id":"6dff5738-42e0-46e5-adb4-ee78fe5c2705"},{"name":"Delete Brand","id":"f9a70ad5-8120-42fc-876f-76e0a647253a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"url":"https://api.starkoms.org/api/v3/ext/brands/56","description":"<p>Elimina la marca <code>{id}</code> y responde <code>\"OK\"</code>. Los productos que la tenían quedan asignados a otra marca de la tienda.</p>\n<p><strong>Errores (HTTP 400)</strong>: <code>{\"error\":\"El id no corresponde a ninguna marca\"}</code>.</p>\n","urlObject":{"protocol":"https","path":["api","v3","ext","brands","56"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"bbe7f2c4-4ccd-4bad-9753-22b984c5998a","name":"Delete Brand","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.starkoms.org/api/v3/ext/brands/56"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx-rc","enabled":true},{"key":"Date","value":"Tue, 10 May 2022 17:10:47 GMT","enabled":true},{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Authorization","enabled":true},{"key":"Cache-Control","value":"private, must-revalidate","enabled":true},{"key":"pragma","value":"no-cache","enabled":true},{"key":"expires","value":"-1","enabled":true},{"key":"X-RateLimit-Limit","value":"1500","enabled":true},{"key":"X-RateLimit-Remaining","value":"1499","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"X-Content-Type-Options","value":"nosniff","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"\"OK\""}],"_postman_id":"f9a70ad5-8120-42fc-876f-76e0a647253a"}],"id":"a28052b3-85bc-4057-ba88-2547b89297ce","_postman_id":"a28052b3-85bc-4057-ba88-2547b89297ce","description":""},{"name":"Devoluciones y cambios (logística inversa)","item":[{"name":"Get Return Options","id":"dee2b51f-53f3-4074-a4b9-e83c9d34f488","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"url":"https://api.starkoms.org/api/v3/ext/returns/options","description":"<p>Devuelve los valores válidos de motivo (<code>reasons</code>), condición (<code>conditions</code>), resolución (<code>resolutions</code>), responsable del costo (<code>cost_responsibles</code>) y canal (<code>channels</code>).</p>\n<p>Envía siempre el <code>code</code>; el <code>label</code> es solo el texto visible.</p>\n","urlObject":{"protocol":"https","path":["api","v3","ext","returns","options"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"2b08efbb-22bb-4259-a734-c34d861d97af","name":"Get Return Options","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"url":"https://api.starkoms.org/api/v3/ext/returns/options"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"reasons\": [\n            { \"code\": \"defective\", \"label\": \"Producto defectuoso o incompleto\" },\n            { \"code\": \"not_as_described\", \"label\": \"Producto distinto al publicado\" },\n            { \"code\": \"wrong_item\", \"label\": \"Error en el despacho (SKU o cantidad equivocada)\" },\n            { \"code\": \"changed_mind\", \"label\": \"Se arrepintió de la compra\" },\n            { \"code\": \"does_not_fit\", \"label\": \"No le sirve (talla, color, medida)\" },\n            { \"code\": \"late_delivery\", \"label\": \"Llegó fuera de plazo\" }\n        ],\n        \"conditions\": [\n            { \"code\": \"unopened\", \"label\": \"Sin abrir\" },\n            { \"code\": \"opened_unused\", \"label\": \"Abierto sin uso\" },\n            { \"code\": \"used\", \"label\": \"Usado\" },\n            { \"code\": \"damaged\", \"label\": \"Dañado\" }\n        ],\n        \"resolutions\": [\n            { \"code\": \"refund\", \"label\": \"devolucion\" },\n            { \"code\": \"exchange\", \"label\": \"cambio\" }\n        ],\n        \"cost_responsibles\": [\n            { \"code\": \"customer\", \"label\": \"Cliente\" },\n            { \"code\": \"store\", \"label\": \"Tienda\" }\n        ],\n        \"channels\": [\n            { \"code\": \"phone\", \"label\": \"Teléfono\" },\n            { \"code\": \"store\", \"label\": \"Tienda\" },\n            { \"code\": \"email\", \"label\": \"Correo\" },\n            { \"code\": \"operator\", \"label\": \"Operador\" }\n        ]\n    }\n}"}],"_postman_id":"dee2b51f-53f3-4074-a4b9-e83c9d34f488"},{"name":"Create Return","id":"dee748dc-401f-434c-b1ef-f29843a670ea","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"order_reference\": \"TICKET-123456\",\n    \"original_order\": { \"order_reference\": \"1619210573885-01\" },\n    \"items\": [\n        { \"sku\": \"ABC-1\", \"quantity\": 1, \"reason\": \"defective\", \"condition\": \"opened_unused\", \"resolution\": \"refund\" },\n        { \"sku\": \"ABC-2\", \"quantity\": 1, \"reason\": \"does_not_fit\", \"condition\": \"unopened\", \"resolution\": \"exchange\", \"replacement_sku\": \"ABC-2-AZUL\" }\n    ],\n    \"pickup_address\": {\n        \"name\": \"Juan\", \"surname\": \"Pérez\", \"email\": \"juan.perez@example.com\",\n        \"street\": \"Av. Ejemplo\", \"number\": \"123\", \"dept\": \"56\",\n        \"state\": \"Metropolitana de Santiago\", \"province\": \"Providencia\", \"city\": \"Santiago\",\n        \"dni\": \"11111111-1\", \"phone\": \"56999999999\", \"zip_code\": \"\"\n    },\n    \"cost_responsible\": \"customer\",\n    \"channel\": \"email\",\n    \"comment\": \"opcional\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/returns","description":"<p>Crea una solicitud de devolución o cambio (OLI). Responde <strong>201</strong> si la crea, o <strong>200</strong> si ya existía una OLI con ese <code>order_reference</code> y el mismo pedido original (no crea nada). El cuerpo es el mismo que <em>Get Return</em>. La creación puede tardar decenas de segundos.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Campo</th>\n<th>Obligatorio</th>\n<th>Descripción</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>order_reference</code></td>\n<td>Sí</td>\n<td>Referencia de la solicitud en tu sistema. Solo ASCII imprimible (sin tildes), máx. 50. Es la clave de idempotencia. El pedido de cambio queda como <code>&lt;order_reference&gt;-CAMBIO</code></td>\n</tr>\n<tr>\n<td><code>original_order</code></td>\n<td>No</td>\n<td>Pedido original, por <code>order_reference</code> <strong>o</strong> por <code>id</code> (id de starkoms). No se exige que esté entregado</td>\n</tr>\n<tr>\n<td><code>items</code></td>\n<td>Sí</td>\n<td>De 1 a 50 líneas</td>\n</tr>\n<tr>\n<td><code>items[].sku</code></td>\n<td>Sí</td>\n<td>Debe existir en el catálogo de la tienda; no tiene que estar en el pedido original</td>\n</tr>\n<tr>\n<td><code>items[].quantity</code></td>\n<td>Sí</td>\n<td>Entero ≥ 1</td>\n</tr>\n<tr>\n<td><code>items[].reason</code> / <code>condition</code> / <code>resolution</code></td>\n<td>Sí</td>\n<td>Códigos de <em>Get Return Options</em></td>\n</tr>\n<tr>\n<td><code>items[].replacement_sku</code></td>\n<td>Si <code>resolution</code> es <code>exchange</code></td>\n<td>SKU de reemplazo</td>\n</tr>\n<tr>\n<td><code>cost_responsible</code> / <code>channel</code></td>\n<td>Sí</td>\n<td>Códigos de <em>Get Return Options</em></td>\n</tr>\n<tr>\n<td><code>pickup_address</code></td>\n<td>Si no envías <code>original_order</code></td>\n<td>Ver abajo</td>\n</tr>\n<tr>\n<td><code>comment</code></td>\n<td>No</td>\n<td>Texto</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong><code>pickup_address</code></strong>: si hay pedido original, se copia su dirección y los campos que envíes la reemplazan. El resultado debe tener <code>name</code>, <code>surname</code>, <code>email</code>, <code>street</code>, <code>number</code>, <code>state</code>, <code>province</code>, <code>dni</code> y <code>phone</code>; son opcionales <code>dept</code>, <code>city</code>, <code>zip_code</code> y <code>additional</code>. Ojo: <code>state</code> es la <strong>región</strong> y <code>province</code> es la <strong>comuna</strong>. El courier calcula la cobertura con <code>province</code>, así que una comuna mal puesta deja la etiqueta sin emitir.</p>\n<p><strong>Notas</strong></p>\n<ul>\n<li>Si la tienda no emite etiquetas de reversa, la OLI se crea igual y <code>label.status</code> es <code>not_enabled</code>.</li>\n<li>Si el pedido de cambio no se pudo crear, la OLI existe igual y toda respuesta trae <code>\"replacement_order\": null</code> y <code>\"replacement_error\": \"replacement_missing\"</code>. Repórtalo a soporte.</li>\n<li>Antes de reintentar, lee la <strong>regla de reintento</strong> en la descripción de la carpeta.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v3","ext","returns"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"665f5059-cc0c-4217-bd82-a7fee9dce8aa","name":"Create Return (201)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"order_reference\": \"TICKET-123456\",\n    \"original_order\": { \"order_reference\": \"1619210573885-01\" },\n    \"items\": [\n        { \"sku\": \"ABC-1\", \"quantity\": 1, \"reason\": \"defective\", \"condition\": \"opened_unused\", \"resolution\": \"refund\" },\n        { \"sku\": \"ABC-2\", \"quantity\": 1, \"reason\": \"does_not_fit\", \"condition\": \"unopened\", \"resolution\": \"exchange\", \"replacement_sku\": \"ABC-2-AZUL\" }\n    ],\n    \"cost_responsible\": \"customer\",\n    \"channel\": \"email\",\n    \"comment\": \"opcional\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/returns"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": 3014990,\n        \"order_reference\": \"TICKET-123456\",\n        \"state\": { \"type\": \"OLI_LABEL_ISSUED\", \"name\": \"Retiro coordinado\" },\n        \"created_at\": \"2026-11-05T14:02:11+00:00\",\n        \"updated_at\": \"2026-11-05T14:02:40+00:00\",\n        \"original_order\": { \"id\": 2890030, \"order_reference\": \"1619210573885-01\" },\n        \"items\": [\n            {\n                \"sku\": \"ABC-1\", \"quantity\": 1,\n                \"reason\": \"defective\", \"reason_label\": \"Producto defectuoso o incompleto\",\n                \"condition\": \"opened_unused\", \"condition_label\": \"Abierto sin uso\",\n                \"resolution\": \"refund\", \"replacement_sku\": null\n            },\n            {\n                \"sku\": \"ABC-2\", \"quantity\": 1,\n                \"reason\": \"does_not_fit\", \"reason_label\": \"No le sirve (talla, color, medida)\",\n                \"condition\": \"unopened\", \"condition_label\": \"Sin abrir\",\n                \"resolution\": \"exchange\", \"replacement_sku\": \"ABC-2-AZUL\"\n            }\n        ],\n        \"cost_responsible\": \"customer\",\n        \"channel\": \"email\",\n        \"comment\": \"opcional\",\n        \"replacement_order\": {\n            \"id\": 3014991,\n            \"order_reference\": \"TICKET-123456-CAMBIO\",\n            \"state\": { \"type\": \"DEFAULT_VALIDATION_OMS\", \"name\": \"Validando\" }\n        },\n        \"label\": { \"status\": \"issued\", \"shipping_number\": \"123456789\" },\n        \"history\": [\n            { \"type\": \"OLI_REQUESTED\", \"at\": \"2026-11-05T14:02:11+00:00\" },\n            { \"type\": \"OLI_LABEL_ISSUED\", \"at\": \"2026-11-05T14:02:40+00:00\" }\n        ]\n    }\n}"}],"_postman_id":"dee748dc-401f-434c-b1ef-f29843a670ea"},{"name":"Get Return","id":"0982e47f-b80b-4fec-8c1f-33e0c05327d4","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"url":"https://api.starkoms.org/api/v3/ext/returns/3014990","description":"<p>Devuelve el detalle y el estado de la OLI <code>{id}</code>. Un <code>{id}</code> que no es una OLI de tu tienda responde <code>404 return_not_found</code>.</p>\n<ul>\n<li><code>state.type</code> / <code>state.name</code>: estado actual (ver la tabla de estados en la carpeta).</li>\n<li><code>items[].reason</code>, <code>condition</code>, <code>resolution</code>: códigos de <em>Get Return Options</em>. Si el valor guardado no corresponde a un código (por ejemplo, una OLI creada desde la aplicación con otro texto), el código es <code>null</code> y el texto viene en <code>reason_label</code> / <code>condition_label</code>.</li>\n<li><code>replacement_order</code>: pedido de cambio, o <code>null</code> si no hay. <code>replacement_error</code> solo aparece si debía haber un cambio y falta.</li>\n<li><code>label</code>: resumen de la etiqueta (<code>status</code>, <code>shipping_number</code>). Las URLs se obtienen en <em>Get Return Label</em>. Si el estado de la etiqueta no se pudo consultar, <code>label.status</code> es <code>unknown</code> y la respuesta igual es 200.</li>\n<li><code>history</code>: transiciones de estado en orden cronológico.</li>\n</ul>\n<p>Consulta cada OLI como máximo una vez cada 5 minutos.</p>\n","urlObject":{"protocol":"https","path":["api","v3","ext","returns","3014990"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"20882bc8-44bb-406a-bc46-1c85876f389a","name":"Get Return","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"url":"https://api.starkoms.org/api/v3/ext/returns/3014990"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": 3014990,\n        \"order_reference\": \"TICKET-123456\",\n        \"state\": { \"type\": \"OLI_RECEIVED\", \"name\": \"Recibido\" },\n        \"created_at\": \"2026-11-05T14:02:11+00:00\",\n        \"updated_at\": \"2026-11-07T10:15:03+00:00\",\n        \"original_order\": { \"id\": 2890030, \"order_reference\": \"1619210573885-01\" },\n        \"items\": [\n            {\n                \"sku\": \"ABC-1\", \"quantity\": 1,\n                \"reason\": \"defective\", \"reason_label\": \"Producto defectuoso o incompleto\",\n                \"condition\": \"opened_unused\", \"condition_label\": \"Abierto sin uso\",\n                \"resolution\": \"refund\", \"replacement_sku\": null\n            },\n            {\n                \"sku\": \"ABC-2\", \"quantity\": 1,\n                \"reason\": \"does_not_fit\", \"reason_label\": \"No le sirve (talla, color, medida)\",\n                \"condition\": \"unopened\", \"condition_label\": \"Sin abrir\",\n                \"resolution\": \"exchange\", \"replacement_sku\": \"ABC-2-AZUL\"\n            }\n        ],\n        \"cost_responsible\": \"customer\",\n        \"channel\": \"email\",\n        \"comment\": \"opcional\",\n        \"replacement_order\": {\n            \"id\": 3014991,\n            \"order_reference\": \"TICKET-123456-CAMBIO\",\n            \"state\": { \"type\": \"DEFAULT_IN_PACKAGING\", \"name\": \"Preparando\" }\n        },\n        \"label\": { \"status\": \"issued\", \"shipping_number\": \"123456789\" },\n        \"history\": [\n            { \"type\": \"OLI_REQUESTED\", \"at\": \"2026-11-05T14:02:11+00:00\" },\n            { \"type\": \"OLI_LABEL_ISSUED\", \"at\": \"2026-11-05T14:02:40+00:00\" },\n            { \"type\": \"OLI_RECEIVED\", \"at\": \"2026-11-07T10:15:03+00:00\" }\n        ]\n    }\n}"}],"_postman_id":"0982e47f-b80b-4fec-8c1f-33e0c05327d4"},{"name":"Get Return Label","id":"a6777d5c-6fbc-4baf-bb22-52eb8cae4041","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"url":"https://api.starkoms.org/api/v3/ext/returns/3014990/label","description":"<p>Devuelve la etiqueta de reversa de la OLI <code>{id}</code>, o su estado. Pide la etiqueta <strong>siempre</strong> aquí: no uses los endpoints de etiqueta de pedidos con una OLI, porque pueden alterar su estado.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>HTTP</th>\n<th><code>data.status</code></th>\n<th>Caso</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td><code>issued</code></td>\n<td>Etiqueta emitida: trae <code>shipping_number</code>, <code>carrier</code>, <code>pdf_url</code> y <code>zpl_url</code></td>\n</tr>\n<tr>\n<td>202</td>\n<td><code>pending</code></td>\n<td>Aún no hay número (la emisión puede ser asíncrona). Reintenta en unos minutos</td>\n</tr>\n<tr>\n<td>200</td>\n<td><code>failed</code></td>\n<td>Pasaron 15 minutos o más desde la creación y sigue sin número. Es terminal: contacta a soporte. Si soporte la emite después, pasa a <code>issued</code> solo</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>zpl_url</code> apunta a un archivo de texto con el ZPL, no al contenido. La etiqueta de reversa es de un solo bulto.</p>\n<p><strong>Errores</strong>: <code>409 label_not_enabled</code> (la tienda no emite etiquetas de reversa), <code>409 return_cancelled</code> (OLI cancelada), <code>404 return_not_found</code> y <code>502 upstream_unavailable</code> (reintenta más tarde).</p>\n","urlObject":{"protocol":"https","path":["api","v3","ext","returns","3014990","label"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"4158492a-bfbd-4d54-a7cf-b1936c257c22","name":"Get Return Label (issued)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"url":"https://api.starkoms.org/api/v3/ext/returns/3014990/label"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"status\": \"issued\",\n        \"shipping_number\": \"123456789\",\n        \"carrier\": \"Chilexpress\",\n        \"pdf_url\": \"https://example.com/shipment/123456789.pdf\",\n        \"zpl_url\": \"https://example.com/shipment/123456789.txt\"\n    }\n}"},{"id":"c5e75393-ac55-48ca-bdd2-b99939c09f3e","name":"Get Return Label (pending)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"}],"url":"https://api.starkoms.org/api/v3/ext/returns/3014990/label"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"status\": \"pending\"\n    }\n}"}],"_postman_id":"a6777d5c-6fbc-4baf-bb22-52eb8cae4041"},{"name":"Cancel Return","id":"538d8e84-45f3-42e2-a6bc-6dc34bbfae6c","request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"comment\": \"El cliente desistió\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/returns/3014990/cancel","description":"<p>Cancela la OLI <code>{id}</code> y su pedido de cambio, si existe. El body es opcional (<code>comment</code>). Responde 200 con el cuerpo de <em>Get Return</em>, con <code>state.type</code> en <code>DEFAULT_CANCELED</code>.</p>\n<p><strong>Cuándo se puede</strong>: mientras el producto no haya llegado a la bodega, es decir, en <code>OLI_REQUESTED</code>, <code>OLI_APPROVED</code>, <code>OLI_LABEL_ISSUED</code> u <code>OLI_IN_TRANSIT</code>, aunque el transportista ya haya retirado el paquete. Desde cualquier otro estado responde <code>409 not_cancellable</code>. Si el pedido de cambio ya avanzó en la bodega, responde <code>409 replacement_not_cancellable</code> y no cancela nada.</p>\n<p>Es idempotente y reintentable: cancelar una OLI ya cancelada responde 200, y si una cancelación anterior quedó a medias, el reintento la completa.</p>\n<p><strong>Qué debes saber</strong></p>\n<ul>\n<li><strong>La etiqueta no se anula ante el transportista.</strong> Si estaba pendiente, puede emitirse igual después de la cancelación; la OLI sigue cancelada.</li>\n<li><strong>Si el paquete de una OLI cancelada llega igual a la bodega</strong>, el almacén puede recibirlo y el estado puede pasar a <code>OLI_RECEIVED</code>. Si ocurre, contacta a soporte.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v3","ext","returns","3014990","cancel"],"host":["api","starkoms","org"],"query":[],"variable":[]}},"response":[{"id":"5f429db4-4e27-4910-b27e-8763f4b1973c","name":"Cancel Return","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer a1b2c3d4e5f6a1b2c3d4e5f6a1"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"comment\": \"El cliente desistió\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.starkoms.org/api/v3/ext/returns/3014990/cancel"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": 3014990,\n        \"order_reference\": \"TICKET-123456\",\n        \"state\": { \"type\": \"DEFAULT_CANCELED\", \"name\": \"Cancelado\" },\n        \"created_at\": \"2026-11-05T14:02:11+00:00\",\n        \"updated_at\": \"2026-11-05T16:40:22+00:00\",\n        \"original_order\": { \"id\": 2890030, \"order_reference\": \"1619210573885-01\" },\n        \"items\": [\n            {\n                \"sku\": \"ABC-1\", \"quantity\": 1,\n                \"reason\": \"defective\", \"reason_label\": \"Producto defectuoso o incompleto\",\n                \"condition\": \"opened_unused\", \"condition_label\": \"Abierto sin uso\",\n                \"resolution\": \"refund\", \"replacement_sku\": null\n            },\n            {\n                \"sku\": \"ABC-2\", \"quantity\": 1,\n                \"reason\": \"does_not_fit\", \"reason_label\": \"No le sirve (talla, color, medida)\",\n                \"condition\": \"unopened\", \"condition_label\": \"Sin abrir\",\n                \"resolution\": \"exchange\", \"replacement_sku\": \"ABC-2-AZUL\"\n            }\n        ],\n        \"cost_responsible\": \"customer\",\n        \"channel\": \"email\",\n        \"comment\": \"opcional\",\n        \"replacement_order\": {\n            \"id\": 3014991,\n            \"order_reference\": \"TICKET-123456-CAMBIO\",\n            \"state\": { \"type\": \"DEFAULT_CANCELED\", \"name\": \"Cancelado\" }\n        },\n        \"label\": { \"status\": \"cancelled\", \"shipping_number\": null },\n        \"history\": [\n            { \"type\": \"OLI_REQUESTED\", \"at\": \"2026-11-05T14:02:11+00:00\" },\n            { \"type\": \"OLI_LABEL_ISSUED\", \"at\": \"2026-11-05T14:02:40+00:00\" },\n            { \"type\": \"DEFAULT_CANCELED\", \"at\": \"2026-11-05T16:40:22+00:00\" }\n        ]\n    }\n}"}],"_postman_id":"538d8e84-45f3-42e2-a6bc-6dc34bbfae6c"}],"id":"9c028795-04c1-46e5-a3c2-8c1678b7c9cc","description":"<p>Permite a un sistema externo de posventa crear una solicitud de devolución o cambio (OLI), obtener su etiqueta de reversa, consultar su estado y cancelarla. La recepción y la revisión del producto las hace el personal de bodega en starkoms; no se hacen por API.</p>\n<ul>\n<li><strong>Id público:</strong> el <code>id</code> de una OLI es el id del pedido en starkoms. Se obtiene en la respuesta de la creación.</li>\n<li><strong>Habilitación:</strong> la tienda tiene que estar habilitada para logística inversa; si no, la creación responde <code>422 store_not_enabled</code>. Solicítalo a soporte.</li>\n<li><strong>Autenticación:</strong> el mismo token Bearer del resto de la API. Solo ves y modificas OLI de la tienda del token. Los errores de autenticación responden <code>400</code> con <code>{\"message\": ...}</code>, sin el campo <code>error</code>.</li>\n</ul>\n<h2 id=\"reglas-generales\">Reglas generales</h2>\n<ul>\n<li><strong>Errores:</strong> <code>{\"error\": \"&lt;código&gt;\", \"message\": \"&lt;texto&gt;\", \"details\": {...}}</code>. Ramifica por <code>error</code>, que es estable; no por <code>message</code>.</li>\n<li><strong>Códigos HTTP:</strong> se entregan tal cual: <code>201</code> creada, <code>200</code> ya existía o consulta correcta, <code>202</code> etiqueta pendiente.</li>\n<li><strong>Polling:</strong> consulta cada OLI <strong>como máximo una vez cada 5 minutos</strong>. No hay webhook. Aplica además el rate limit general de la API (ver la descripción de la colección).</li>\n<li><strong>Fechas:</strong> ISO 8601 en UTC.</li>\n</ul>\n<h2 id=\"regla-de-reintento\">Regla de reintento</h2>\n<p>Un <code>5xx</code> o un timeout <strong>no</strong> significa que la OLI no se creó. Reintenta siempre con el <strong>mismo <code>order_reference</code></strong> y el mismo pedido original: el reintento devuelve la OLI ya creada (<code>200</code>) y nunca duplica la OLI, el pedido de cambio ni la etiqueta. Si recibes <code>409 creation_in_progress</code>, otra solicitud con ese <code>order_reference</code> sigue en curso: reintenta más tarde.</p>\n<ul>\n<li>El reintento <strong>no compara el body</strong>: para corregir una devolución, cancélala y crea otra con un <code>order_reference</code> nuevo.</li>\n<li>Una OLI cancelada conserva su <code>order_reference</code>: reenviarla devuelve la OLI cancelada (<code>200</code>).</li>\n</ul>\n<h2 id=\"estados\">Estados</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><code>state.type</code></th>\n<th>Significado</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>OLI_REQUESTED</code></td>\n<td>Solicitud creada; aún sin etiqueta emitida</td>\n</tr>\n<tr>\n<td><code>OLI_LABEL_ISSUED</code></td>\n<td>Etiqueta de reversa emitida; retiro coordinado</td>\n</tr>\n<tr>\n<td><code>OLI_RECEIVED</code></td>\n<td>El producto llegó a la bodega y fue recibido</td>\n</tr>\n<tr>\n<td><code>OLI_INSPECTED</code></td>\n<td>El producto fue revisado en la bodega</td>\n</tr>\n<tr>\n<td><code>OLI_REJECTED</code></td>\n<td>La revisión rechazó la devolución</td>\n</tr>\n<tr>\n<td><code>OLI_CLOSED</code></td>\n<td>Solicitud cerrada</td>\n</tr>\n<tr>\n<td><code>DEFAULT_CANCELED</code></td>\n<td>Cancelada</td>\n</tr>\n<tr>\n<td>otro estado</td>\n<td>Gestión manual: trátalo como \"en gestión manual\" y consulta a soporte si necesitas detalle</td>\n</tr>\n</tbody>\n</table>\n</div><p>La revisión y la recepción <strong>no tienen orden fijo</strong>: una OLI puede quedar <code>OLI_INSPECTED</code> antes de <code>OLI_RECEIVED</code>.</p>\n<h2 id=\"errores\">Errores</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>HTTP</th>\n<th><code>error</code></th>\n<th>Cuándo</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400</td>\n<td><code>invalid_payload</code></td>\n<td>Payload mal formado (campo ausente, vacío, de largo o tipo inválido). <code>details</code> indica el campo</td>\n</tr>\n<tr>\n<td>404</td>\n<td><code>return_not_found</code></td>\n<td>En consulta, etiqueta y cancelación: la OLI no existe en tu tienda, o el id no es una OLI</td>\n</tr>\n<tr>\n<td>404</td>\n<td><code>order_not_found</code></td>\n<td>En la creación: el pedido original no existe en tu tienda</td>\n</tr>\n<tr>\n<td>409</td>\n<td><code>ambiguous_order_reference</code></td>\n<td>Más de un pedido tiene ese <code>original_order.order_reference</code>. <code>details.candidates</code> los lista; reintenta con <code>original_order.id</code></td>\n</tr>\n<tr>\n<td>409</td>\n<td><code>reference_conflict</code></td>\n<td>El <code>order_reference</code> ya existe con otro pedido original (<code>details.id</code>) o lo usa otro pedido de la tienda</td>\n</tr>\n<tr>\n<td>409</td>\n<td><code>creation_in_progress</code></td>\n<td>Hay otra creación en curso con el mismo <code>order_reference</code></td>\n</tr>\n<tr>\n<td>409</td>\n<td><code>not_cancellable</code></td>\n<td>La OLI está en un estado que no permite cancelar (<code>details.state</code>)</td>\n</tr>\n<tr>\n<td>409</td>\n<td><code>replacement_not_cancellable</code></td>\n<td>El pedido de cambio ya no es cancelable (<code>details.replacement_state</code>); no se cancela nada</td>\n</tr>\n<tr>\n<td>409</td>\n<td><code>label_not_enabled</code></td>\n<td><code>/label</code>: la tienda no emite etiquetas de reversa</td>\n</tr>\n<tr>\n<td>409</td>\n<td><code>return_cancelled</code></td>\n<td><code>/label</code>: la OLI está cancelada</td>\n</tr>\n<tr>\n<td>422</td>\n<td><code>store_not_enabled</code></td>\n<td>La tienda no está habilitada para logística inversa</td>\n</tr>\n<tr>\n<td>422</td>\n<td><code>invalid_reason</code> / <code>invalid_condition</code> / <code>invalid_resolution</code></td>\n<td>Valor fuera de <em>Options</em> (<code>details.line</code>)</td>\n</tr>\n<tr>\n<td>422</td>\n<td><code>invalid_cost_responsible</code> / <code>invalid_channel</code></td>\n<td>Valor fuera de <em>Options</em></td>\n</tr>\n<tr>\n<td>422</td>\n<td><code>missing_replacement_sku</code></td>\n<td>Línea de cambio sin <code>replacement_sku</code> (<code>details.line</code>)</td>\n</tr>\n<tr>\n<td>422</td>\n<td><code>unknown_sku</code></td>\n<td>Un SKU no existe en el catálogo de la tienda (<code>details.line</code>, <code>details.sku</code>)</td>\n</tr>\n<tr>\n<td>422</td>\n<td><code>incomplete_pickup_address</code></td>\n<td>Faltan datos de la dirección (<code>details.missing_fields</code>)</td>\n</tr>\n<tr>\n<td>422</td>\n<td><code>create_failed</code></td>\n<td>La creación fue rechazada; <code>details</code> trae la causa</td>\n</tr>\n<tr>\n<td>422</td>\n<td><code>use_returns_endpoint</code></td>\n<td>Intentaste crear o mover una OLI con los endpoints de pedidos; usa esta API</td>\n</tr>\n<tr>\n<td>502</td>\n<td><code>upstream_unavailable</code></td>\n<td>Un servicio interno no respondió. La OLI pudo haberse creado: reintenta con el mismo <code>order_reference</code></td>\n</tr>\n</tbody>\n</table>\n</div><p>Si un error interno no trae el formato estándar, la API lo envuelve conservando el código HTTP: <code>request_failed</code> (4xx) o <code>upstream_error</code> (5xx, resultado desconocido: reintenta con el mismo <code>order_reference</code>), con <code>details.upstream_status</code>.</p>\n","_postman_id":"9c028795-04c1-46e5-a3c2-8c1678b7c9cc"},{"name":"Webhooks","item":[{"name":"Webhook New Order","id":"35962465-0aa2-49f1-8462-0865ee6c9f3b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Starkoms-Signature-v1","value":"e592fd0517d185e625b151e993684555f5c8420e85a57c99008e7403f249cf05"}],"body":{"mode":"raw","raw":"{\n   \"store_id\": 99,\n   \"store_name\": \"Tienda Ejemplo\",\n   \"topic\": \"order-new\",\n   \"order\": {\n      \"id\": 123456,\n      \"order_reference\": \"1000001111222333\",\n      \"store_id\": 99,\n      \"shipping_number\": \"123456789012\",\n      \"total_products\": \"5000.00\",\n      \"total_shipping\": 100,\n      \"total_discount\": \"500.00\",\n      \"total_paid\": \"4600.00\",\n      \"source_date\": \"2024-01-01 10:00:00\",\n      \"created_at\": \"2024-01-01T10:05:00+00:00\",\n      \"updated_at\": \"2024-01-01T10:06:00+00:00\",\n      \"deleted_at\": null,\n      \"carrier\": \"NOMBRE COURIER\",\n      \"invoice_number\": null,\n      \"invoice_url\": null,\n      \"additional_data\": \"\",\n      \"tracking_url\": \"http://tracking.starkoms.com/#/tracking/ABCDEFG12345\",\n      \"tracking_carrier\": null,\n      \"delivery_date\": null,\n      \"shipping_date\": null,\n      \"invoice_xml_url\": null,\n      \"order_detail\": [\n         {\n            \"id\": 987654,\n            \"product\": \"Tablet Samsung Galaxy Tab A7 10.4\\\"\",\n            \"sku\": \"987654321\",\n            \"ean\": null,\n            \"quantity\": 1,\n            \"total\": 5000,\n            \"created_at\": \"2024-01-01T10:05:00+00:00\",\n            \"updated_at\": \"2024-01-01T10:05:00+00:00\",\n            \"order_id\": 123456,\n            \"store_id\": 99,\n            \"total_discount\": 500\n         }\n      ],\n      \"source\": {\n         \"id\": 3,\n         \"name\": \"MercadoLibre\",\n         \"type_id\": 2\n      },\n      \"customer\": {\n         \"id\": 654321,\n         \"firstname\": \"John\",\n         \"lastname\": \"Doe\",\n         \"fullname\": \"Ján Doe\",\n         \"email\": \"john_doe@example.com\",\n         \"created_at\": \"2024-01-01T10:05:00+00:00\",\n         \"updated_at\": \"2024-01-01T10:05:00+00:00\",\n         \"store_id\": 99\n      },\n      \"address\": {\n         \"id\": 654789,\n         \"customer_id\": 654321,\n         \"street\": \"Main Street\",\n         \"number\": \"123\",\n         \"dpto\": \"Apartment 4B\",\n         \"city\": \"Metropolis\",\n         \"province\": \"Metropolis\",\n         \"state\": \"Central State\",\n         \"dni\": \"12345678-9\",\n         \"phone\": \"XXXXXXX\",\n         \"store_id\": 99,\n         \"created_at\": \"2024-01-01T10:05:00+00:00\",\n         \"updated_at\": \"2024-01-01T10:05:00+00:00\",\n         \"additional\": null,\n         \"zip_code\": null,\n         \"country\": \"CL\",\n         \"full_address\": \"123 Main Street, Apartment 4B\",\n         \"latitude\": \"40.712776\",\n         \"longitude\": \"-74.005974\",\n         \"note\": null\n      },\n      \"order_state\": {\n         \"id\": 1500,\n         \"name\": \"Processing\",\n         \"store_id\": 99,\n         \"type\": \"DEFAULT_IN_OMS\",\n         \"order\": \"1.0\",\n         \"colour\": \"outline-primary\"\n      },\n      \"order_substate\": null,\n      \"order_histories\": [\n         {\n            \"id\": 123987,\n            \"order_state_id\": 1500,\n            \"order_id\": 123456,\n            \"store_id\": 99,\n            \"created_at\": \"2024-01-01T10:05:00+00:00\",\n            \"updated_at\": \"2024-01-01T10:05:00+00:00\",\n            \"agent\": null,\n            \"order_substate_id\": null,\n            \"order_state\": {\n               \"id\": 1500,\n               \"name\": \"Processing\",\n               \"store_id\": 99,\n               \"type\": \"DEFAULT_IN_OMS\",\n               \"order\": \"1.0\",\n               \"colour\": \"outline-primary\"\n            },\n            \"order_substate\": null\n         }\n      ]\n   }\n}","options":{"raw":{"language":"json"}}},"url":"URLCLIENTE","description":"<p>Se ejecuta cuando se crea un pedido en starkoms. <code>order</code> trae el pedido completo, con la misma forma que <a href=\"https://docs.starkoms.com/#51f1ea2e-b9d9-4027-bd3e-28e77d1153a6\">Get Order By ID</a>.</p>\n<p><strong>Entrega</strong></p>\n<ul>\n<li><code>POST</code> a la URL configurada para tu tienda, con <code>Content-Type: application/json</code>.</li>\n<li>Responde con un código 2xx en menos de 30 segundos. Ante un 4xx, un 5xx o un timeout se reintenta 2 veces más (a los 30 y a los 60 segundos); después se descarta.</li>\n<li>Las llamadas salen desde la IP <code>34.176.92.253</code>, por si necesitas autorizarla en tu firewall.</li>\n</ul>\n<p><strong>Firma</strong></p>\n<p><code>X-Starkoms-Signature-v1</code> es el HMAC-SHA256 en hexadecimal del body recibido, calculado con la llave compartida de tu tienda. Calcúlalo sobre el body tal como llega, sin volver a serializarlo: el JSON viene en una sola línea, sin escapar <code>/</code> ni caracteres unicode.</p>\n<p>El body de esta request se muestra formateado para que sea legible. Con la llave <code>LLAVESECRETA</code>, su versión en una línea produce la firma del header de ejemplo:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\"store_id\":99,\"store_name\":\"Tienda Ejemplo\",\"topic\":\"order-new\",\"order\":{\"id\":123456,\"order_reference\":\"1000001111222333\",\"store_id\":99,\"shipping_number\":\"123456789012\",\"total_products\":\"5000.00\",\"total_shipping\":100,\"total_discount\":\"500.00\",\"total_paid\":\"4600.00\",\"source_date\":\"2024-01-01 10:00:00\",\"created_at\":\"2024-01-01T10:05:00+00:00\",\"updated_at\":\"2024-01-01T10:06:00+00:00\",\"deleted_at\":null,\"carrier\":\"NOMBRE COURIER\",\"invoice_number\":null,\"invoice_url\":null,\"additional_data\":\"\",\"tracking_url\":\"http://tracking.starkoms.com/#/tracking/ABCDEFG12345\",\"tracking_carrier\":null,\"delivery_date\":null,\"shipping_date\":null,\"invoice_xml_url\":null,\"order_detail\":[{\"id\":987654,\"product\":\"Tablet Samsung Galaxy Tab A7 10.4\\\"\",\"sku\":\"987654321\",\"ean\":null,\"quantity\":1,\"total\":5000,\"created_at\":\"2024-01-01T10:05:00+00:00\",\"updated_at\":\"2024-01-01T10:05:00+00:00\",\"order_id\":123456,\"store_id\":99,\"total_discount\":500}],\"source\":{\"id\":3,\"name\":\"MercadoLibre\",\"type_id\":2},\"customer\":{\"id\":654321,\"firstname\":\"John\",\"lastname\":\"Doe\",\"fullname\":\"Ján Doe\",\"email\":\"john_doe@example.com\",\"created_at\":\"2024-01-01T10:05:00+00:00\",\"updated_at\":\"2024-01-01T10:05:00+00:00\",\"store_id\":99},\"address\":{\"id\":654789,\"customer_id\":654321,\"street\":\"Main Street\",\"number\":\"123\",\"dpto\":\"Apartment 4B\",\"city\":\"Metropolis\",\"province\":\"Metropolis\",\"state\":\"Central State\",\"dni\":\"12345678-9\",\"phone\":\"XXXXXXX\",\"store_id\":99,\"created_at\":\"2024-01-01T10:05:00+00:00\",\"updated_at\":\"2024-01-01T10:05:00+00:00\",\"additional\":null,\"zip_code\":null,\"country\":\"CL\",\"full_address\":\"123 Main Street, Apartment 4B\",\"latitude\":\"40.712776\",\"longitude\":\"-74.005974\",\"note\":null},\"order_state\":{\"id\":1500,\"name\":\"Processing\",\"store_id\":99,\"type\":\"DEFAULT_IN_OMS\",\"order\":\"1.0\",\"colour\":\"outline-primary\"},\"order_substate\":null,\"order_histories\":[{\"id\":123987,\"order_state_id\":1500,\"order_id\":123456,\"store_id\":99,\"created_at\":\"2024-01-01T10:05:00+00:00\",\"updated_at\":\"2024-01-01T10:05:00+00:00\",\"agent\":null,\"order_substate_id\":null,\"order_state\":{\"id\":1500,\"name\":\"Processing\",\"store_id\":99,\"type\":\"DEFAULT_IN_OMS\",\"order\":\"1.0\",\"colour\":\"outline-primary\"},\"order_substate\":null}]}}\n</code></pre>","urlObject":{"host":["URLCLIENTE"],"query":[],"variable":[]}},"response":[],"_postman_id":"35962465-0aa2-49f1-8462-0865ee6c9f3b"},{"name":"Webhook Order Update","id":"28b8cdc5-465b-4ebe-9200-505f8db3dd28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Starkoms-Signature-v1","value":"5daa940ff8852840c7bd753f87e599554a305dc3320a7cade4e8ad812122fa09"}],"body":{"mode":"raw","raw":"{\n   \"topic\": \"order-update-state\",\n   \"store_id\": 99,\n   \"store_name\": \"Tienda Ejemplo\",\n   \"order\": {\n      \"id\": 123456,\n      \"order_reference\": \"1000001111222333\"\n   },\n   \"source\": {\n      \"name\": \"Mercadolibre\"\n   },\n   \"order_state\": {\n      \"type\": \"DEFAULT_ON_CARRIER\"\n   },\n   \"sub_order_state\": {\n      \"type\": null\n   }\n}","options":{"raw":{"language":"json"}}},"url":"URLCLIENTE","description":"<p>Se ejecuta cuando cambia el estado de un pedido en starkoms.</p>\n<ul>\n<li><code>order</code> trae solo <code>id</code> y <code>order_reference</code>. Para el detalle consulta <a href=\"https://docs.starkoms.com/#51f1ea2e-b9d9-4027-bd3e-28e77d1153a6\">Get Order By ID</a>.</li>\n<li><code>order_state.type</code> es el estado nuevo y <code>sub_order_state.type</code> el subestado (por ejemplo <code>OUT_STOCK</code> en un On Hold), o <code>null</code>.</li>\n<li><strong>Variante completa</strong>: si la solicitas a soporte, el payload incluye <code>\"version\": 2</code> y en <code>order</code> el pedido completo, con la misma forma que <em>Get Order By ID</em>. Así evitas la consulta adicional.</li>\n</ul>\n<p><strong>Entrega</strong></p>\n<ul>\n<li><code>POST</code> a la URL configurada para tu tienda, con <code>Content-Type: application/json</code>.</li>\n<li>Responde con un código 2xx en menos de 30 segundos. Ante un 4xx, un 5xx o un timeout se reintenta 2 veces más (a los 30 y a los 60 segundos); después se descarta.</li>\n<li>Las llamadas salen desde la IP <code>34.176.92.253</code>, por si necesitas autorizarla en tu firewall.</li>\n</ul>\n<p><strong>Firma</strong></p>\n<p><code>X-Starkoms-Signature-v1</code> es el HMAC-SHA256 en hexadecimal del body recibido, calculado con la llave compartida de tu tienda. Calcúlalo sobre el body tal como llega, sin volver a serializarlo: el JSON viene en una sola línea, sin escapar <code>/</code> ni caracteres unicode.</p>\n<p>El body de esta request se muestra formateado para que sea legible. Con la llave <code>LLAVESECRETA</code>, su versión en una línea produce la firma del header de ejemplo:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\"topic\":\"order-update-state\",\"store_id\":99,\"store_name\":\"Tienda Ejemplo\",\"order\":{\"id\":123456,\"order_reference\":\"1000001111222333\"},\"source\":{\"name\":\"Mercadolibre\"},\"order_state\":{\"type\":\"DEFAULT_ON_CARRIER\"},\"sub_order_state\":{\"type\":null}}\n</code></pre>","urlObject":{"host":["URLCLIENTE"],"query":[],"variable":[]}},"response":[],"_postman_id":"28b8cdc5-465b-4ebe-9200-505f8db3dd28"},{"name":"Webhook Stock Update","id":"f624d4ff-2e5b-418b-8b9a-62c5dc811c2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Starkoms-Signature-v1","value":"b9d4a178cdeb0238980b3f72597dab309a984f0bf5c116643804f19cebe98977"}],"body":{"mode":"raw","raw":"{\n   \"topic\": \"product-stock-update\",\n   \"store_id\": 99,\n   \"store_name\": \"Tienda Ejemplo\",\n   \"product\": {\n      \"sku\": \"SKUTEST\",\n      \"id\": 120918\n   },\n   \"stock\": {\n      \"physical_quantity\": 43,\n      \"reserved_quantity\": 1,\n      \"quantity\": 42\n   }\n}","options":{"raw":{"language":"json"}}},"url":"URLCLIENTE","description":"<p>Se ejecuta cada vez que cambia el stock de un producto. <code>stock.quantity</code> es el disponible: físico (<code>physical_quantity</code>) menos reservado (<code>reserved_quantity</code>).</p>\n<p><strong>Entrega</strong></p>\n<ul>\n<li><code>POST</code> a la URL configurada para tu tienda, con <code>Content-Type: application/json</code>.</li>\n<li>Responde con un código 2xx en menos de 30 segundos. Ante un 4xx, un 5xx o un timeout se reintenta 2 veces más (a los 30 y a los 60 segundos); después se descarta.</li>\n<li>Las llamadas salen desde la IP <code>34.176.92.253</code>, por si necesitas autorizarla en tu firewall.</li>\n</ul>\n<p><strong>Firma</strong></p>\n<p><code>X-Starkoms-Signature-v1</code> es el HMAC-SHA256 en hexadecimal del body recibido, calculado con la llave compartida de tu tienda. Calcúlalo sobre el body tal como llega, sin volver a serializarlo: el JSON viene en una sola línea, sin escapar <code>/</code> ni caracteres unicode.</p>\n<p>El body de esta request se muestra formateado para que sea legible. Con la llave <code>LLAVESECRETA</code>, su versión en una línea produce la firma del header de ejemplo:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\"topic\":\"product-stock-update\",\"store_id\":99,\"store_name\":\"Tienda Ejemplo\",\"product\":{\"sku\":\"SKUTEST\",\"id\":120918},\"stock\":{\"physical_quantity\":43,\"reserved_quantity\":1,\"quantity\":42}}\n</code></pre>","urlObject":{"host":["URLCLIENTE"],"query":[],"variable":[]}},"response":[],"_postman_id":"f624d4ff-2e5b-418b-8b9a-62c5dc811c2f"}],"id":"5f9b7de0-2d6c-48b3-928f-aa013edb3a0b","_postman_id":"5f9b7de0-2d6c-48b3-928f-aa013edb3a0b","description":""}],"variable":[{"key":"bearer_token_0qgt","secret":true,"source":{"provider":"postman","postman":{"type":"cloud","secretId":"35cb71b7-a994-45f8-8d7d-e38f34b15497","vaultId":"a59b1144-1eb7-4742-bdf5-dc99d9ddc1b9"}}},{"key":"bearer_token_0u01","secret":true,"source":{"provider":"postman","postman":{"type":"cloud","secretId":"993f6d38-a5c9-49aa-820d-e34016697d40","vaultId":"a59b1144-1eb7-4742-bdf5-dc99d9ddc1b9"}}}]}