{
  "_type": "export",
  "__export_format": 4,
  "__export_date": "2026-09-29T00:00:00.000Z",
  "__export_source": "centraldepedidos.delivery:1.0.0",
  "resources": [
    {
      "_id": "wrk_od",
      "_type": "workspace",
      "name": "Central de Pedidos — OpenDelivery (POS) v1.0.0",
      "description": "How your POS talks to Central de Pedidos. Sandbox environment."
    },
    {
      "_id": "grp_od",
      "_type": "request_group",
      "parentId": "wrk_od",
      "name": "OpenDelivery",
      "metaSortKey": -1
    },
    {
      "_id": "req_token",
      "_type": "request",
      "parentId": "grp_od",
      "metaSortKey": 100,
      "name": "1 · Token",
      "description": "Run FIRST. Every other request reads the accessToken from here. Valid for 1 hour.",
      "method": "POST",
      "url": "{{ od_base }}/opendelivery/oauth/token",
      "headers": [
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"grantType\": \"client_credentials\",\n  \"clientId\": \"{{ client_id }}\",\n  \"clientSecret\": \"{{ client_secret }}\"\n}"
      }
    },
    {
      "_id": "req_get",
      "_type": "request",
      "parentId": "grp_od",
      "metaSortKey": 200,
      "name": "2 · Get order",
      "description": "Source of truth for the status. When in doubt, look here, not at the event sequence.",
      "method": "GET",
      "url": "{{ od_base }}/opendelivery/orders/{{ order_id }}",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer {% response 'body', 'req_token', '$.accessToken', 'never', 3600 %}"
        }
      ]
    },
    {
      "_id": "req_confirm",
      "_type": "request",
      "parentId": "grp_od",
      "metaSortKey": 300,
      "name": "3 · Confirm",
      "description": "→ CONFIRMED. 202 = accepted, not applied. Repeating also returns 202.",
      "method": "POST",
      "url": "{{ od_base }}/opendelivery/orders/{{ order_id }}/confirm",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer {% response 'body', 'req_token', '$.accessToken', 'never', 3600 %}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {
        "mimeType": "application/json",
        "text": "{}"
      }
    },
    {
      "_id": "req_preparing",
      "_type": "request",
      "parentId": "grp_od",
      "metaSortKey": 400,
      "name": "4 · Preparing",
      "description": "→ PREPARING. 202 = accepted, not applied. Repeating also returns 202.",
      "method": "POST",
      "url": "{{ od_base }}/opendelivery/orders/{{ order_id }}/preparing",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer {% response 'body', 'req_token', '$.accessToken', 'never', 3600 %}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {
        "mimeType": "application/json",
        "text": "{}"
      }
    },
    {
      "_id": "req_ready-for-pickup",
      "_type": "request",
      "parentId": "grp_od",
      "metaSortKey": 500,
      "name": "5 · Ready",
      "description": "→ READY. 202 = accepted, not applied. Repeating also returns 202.",
      "method": "POST",
      "url": "{{ od_base }}/opendelivery/orders/{{ order_id }}/ready-for-pickup",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer {% response 'body', 'req_token', '$.accessToken', 'never', 3600 %}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {
        "mimeType": "application/json",
        "text": "{}"
      }
    },
    {
      "_id": "req_dispatch",
      "_type": "request",
      "parentId": "grp_od",
      "metaSortKey": 600,
      "name": "6 · Dispatch",
      "description": "→ IN_DELIVERY. 202 = accepted, not applied. Repeating also returns 202.",
      "method": "POST",
      "url": "{{ od_base }}/opendelivery/orders/{{ order_id }}/dispatch",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer {% response 'body', 'req_token', '$.accessToken', 'never', 3600 %}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {
        "mimeType": "application/json",
        "text": "{}"
      }
    },
    {
      "_id": "req_delivered",
      "_type": "request",
      "parentId": "grp_od",
      "metaSortKey": 700,
      "name": "7 · Delivered",
      "description": "→ DELIVERED. 202 = accepted, not applied. Repeating also returns 202.",
      "method": "POST",
      "url": "{{ od_base }}/opendelivery/orders/{{ order_id }}/delivered",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer {% response 'body', 'req_token', '$.accessToken', 'never', 3600 %}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {
        "mimeType": "application/json",
        "text": "{}"
      }
    },
    {
      "_id": "req_cancel",
      "_type": "request",
      "parentId": "grp_od",
      "metaSortKey": 800,
      "name": "8 · Request cancellation",
      "description": "202 does NOT cancel: the origin decides and answers by event. Only CANCELLED cancels.",
      "method": "POST",
      "url": "{{ od_base }}/opendelivery/orders/{{ order_id }}/requestCancellation",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer {% response 'body', 'req_token', '$.accessToken', 'never', 3600 %}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"reason\": \"Item out of stock after confirmation\",\n  \"code\": \"UNAVAILABLE_ITEM\",\n  \"mode\": \"MANUAL\"\n}"
      }
    },
    {
      "_id": "req_polling",
      "_type": "request",
      "parentId": "grp_od",
      "metaSortKey": 900,
      "name": "9 · Poll events",
      "description": "Only with the integration in POLLING or BOTH. 200 with the list, 204 when empty.",
      "method": "GET",
      "url": "{{ od_base }}/opendelivery/events:polling",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer {% response 'body', 'req_token', '$.accessToken', 'never', 3600 %}"
        }
      ]
    },
    {
      "_id": "req_ack",
      "_type": "request",
      "parentId": "grp_od",
      "metaSortKey": 1000,
      "name": "10 · Acknowledge events",
      "description": "Acknowledge EVERYTHING you received, including types you ignore. Unacknowledged events come back.",
      "method": "POST",
      "url": "{{ od_base }}/opendelivery/events/acknowledgment",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer {% response 'body', 'req_token', '$.accessToken', 'never', 3600 %}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {
        "mimeType": "application/json",
        "text": "{\n  \"eventIds\": [\n    \"{{ event_id }}\"\n  ]\n}"
      }
    },
    {
      "_id": "req_item",
      "_type": "request",
      "parentId": "grp_od",
      "metaSortKey": 1100,
      "name": "11 · Cancel item (not supported yet)",
      "description": "Returns 501 NOT_IMPLEMENTED.",
      "method": "POST",
      "url": "{{ od_base }}/opendelivery/orders/{{ order_id }}/items/{{ item_id }}/cancel",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer {% response 'body', 'req_token', '$.accessToken', 'never', 3600 %}"
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "body": {
        "mimeType": "application/json",
        "text": "{}"
      }
    },
    {
      "_id": "env_od",
      "_type": "environment",
      "parentId": "wrk_od",
      "name": "Sandbox",
      "data": {
        "od_base": "https://api-homolog.centraldepedidos.delivery",
        "client_id": "",
        "client_secret": "",
        "order_id": "",
        "event_id": "",
        "item_id": ""
      }
    }
  ]
}
