DeltaVelocity

Retries and pagination

Keep one identity per logical request

Persist the request and a unique Message-Id before sending a supported mutation. Reuse the same ID and exact method, path, query and body after a timeout. A corrected request needs a new ID. IDs are optional, brand-scoped, 1–255 printable ASCII characters and retained for 24 hours. Keep resource IDs for longer-term reconciliation. Only operations listing the header support it; token exchange, rate quotes and settings writes do not.

Same Message-IdResult
Completed requestStored response with Message-Id-Replayed: true; work is not repeated.
Request still running409 message-id-in-progress; wait for Retry-After.
Different method, path, query or body422 message-id-reused; use a new ID for different work.
5xx, 408, 409, 423, 425 or 429No stored response; the ID is released. Check resource state before retrying.
Invalid ID400 invalid-message-id.
Webhook create or secret rotationSecret-bearing responses are never stored. Retrying runs the request again.

Other 4xx answers are stored and replayed. After a webhook create timeout, list endpoints with GET /v1/webhooks; if the endpoint exists, rotate its secret to obtain a usable one.

Recover deliberately

A timeout does not prove that work failed. Read the resource, honour Retry-After, and use bounded backoff with jitter for transient failures. Reuse the same request identity when retrying. Do not retry validation or permission errors unchanged, or treat 202 accepted work as completed. For partial returns or pickups, inspect each result and retry only the affected items after resolving their cause.

Natural protections also apply: a repeated order reference returns the existing order without booking again; an existing AWB is not booked again; an open return is returned with Return-Existing: true. Those protections do not make every mutation safe to repeat. See each operation's outcome guidance.

Pagination

Operational lists use {"data": [...], "next_cursor": "..."}. Send next_cursor back as cursor, keeping every other parameter unchanged. Stop when it is null. Cursors are opaque and query-bound; changed filters return 400 invalid-cursor. limit defaults to 50 and is at most 200, or 100 for webhook deliveries.

Orders and shipments use (updated_at, id) keyset pagination; wallet transactions use transaction ID, newest first. Persist checkpoints after processing each page. See Tracking and change feed for overlapping poll windows and its 60-second settle window.

Not every list uses this envelope: couriers return items, allocation metadata returns fields, settings return their configuration, and GET /v1/webhooks returns all endpoints in data without a cursor.