Skip to content
DocsSign inCreate an account

Read deliveries

GET/api/v1/external/dispatches

Webhooks are the intended way to track progress; these reads are for reconciliation, a support screen, or recovering after an outage on your side. Every path is under /dispatches, so each request carries a fresh Idempotency-Key.

  • GET/api/v1/external/dispatchesList deliveries, newest first
  • GET/api/v1/external/dispatches/:idRead one delivery
  • GET/api/v1/external/dispatches/:id/eventsIts status history
  • GET/api/v1/external/dispatches/:id/webhooksOur attempts to notify you about it

List deliveries#

Query parameters

  • statusstring
    One of the lifecycle statuses.
  • source'api' | 'csv' | 'shopify' | 'staff'
    Where the delivery came from.
  • limitinteger
    1–200. Defaults to 50.
  • cursorstring
    From meta.nextCursor on the previous page. Absent means you have reached the end.

Unknown query parameters are a 422, the same strictness as the create body.

Read one delivery#

GET /dispatches/:id returns the same object as Create a delivery. A delivery that does not exist and one that belongs to another merchant are both a 404, so ids cannot be probed.

Status history#

GET /dispatches/:id/events returns the ordered history behind a delivery — every transition and when it happened. It is the right thing to show on a support screen and the right thing to attach to a dispute.

Webhook attempts#

GET /dispatches/:id/webhooks returns our attempts to notify you about that delivery: status, attempt count, the last HTTP code we got back and the last error. Check it first when your system has missed an event — see Webhooks.

Authorization: X-API-Key

Request
# List: the newest 50 delivered via the API
curl -G https://api.dispatch.gumza.ke/api/v1/external/dispatches \
  -H "X-API-Key: $DISPATCH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  --data-urlencode "status=DELIVERED" \
  --data-urlencode "source=api" \
  --data-urlencode "limit=50"

# One delivery, then its history
curl https://api.dispatch.gumza.ke/api/v1/external/dispatches/$ID \
  -H "X-API-Key: $DISPATCH_API_KEY" -H "Idempotency-Key: $(uuidgen)"
curl https://api.dispatch.gumza.ke/api/v1/external/dispatches/$ID/events \
  -H "X-API-Key: $DISPATCH_API_KEY" -H "Idempotency-Key: $(uuidgen)"
Response
{
  "success": true,
  "data": [
    {
      "id": "c0ffee11-2233-4455-6677-8899aabbccdd",
      "externalId": "order_10294",
      "status": "DELIVERED",
      "customerName": "Customer 001",
      "feeCents": 32000,
      "currency": "KES",
      "source": "api",
      "createdAt": "2026-10-12T08:41:02.117Z",
      "…": "every field from Create a delivery"
    }
  ],
  "meta": {
    "limit": 50,
    "nextCursor": "eyJjcmVh…"
  }
}