Developers
Get Started
OpenAPI ↗
REST API v1 · Developer previewLive API credentials are not yet generally available. Approved test access uses sandbox-api.parcelxpert.com.

Guides

Idempotency and uncertain outcomes

Durable, account-scoped protection against duplicate bookings.

REST API v1 · Sandbox developer preview

Use approved test credentials at https://sandbox-api.parcelxpert.com/v1. Quotes, bookings, labels and carrier events are simulated. Live credentials, carrier purchasing and billing remain disabled.

Use Idempotency-Key for POST /shipments and every documented mutation, including PATCH webhooks. Keys allow A–Z, a–z, 0–9, underscore, dot, colon and hyphen; 8–128 characters. Bookings use database account+operation uniqueness and transactional locking across instances. Concurrent identical calls return one shipment; completed replay returns the stored original 201 body and Idempotency-Replayed: true, even after status changes.

Reusing that account/operation/key with a different payload returns 409 idempotency_conflict. A temporary scenario failure keeps the fingerprint but allows same-body retry. A provider rejection is retained as 422. Validation failures before execution do not consume a booking key. Keys are not automatically expired or reset in this release. POST webhook dispatch is a worker diagnostic: each call claims at most one due delivery or returns idle. Its response is not persistently replayed; repeating it may process a different due event. Deduplicate received event IDs.

The uncertain_outcome scenario persists one booking before returning 503. Repeat the identical request/key to recover its original response. Do not purchase a substitute shipment. Webhook registration/rotation replay omits the one-time secret; if you lost it, perform a new deliberate rotation.

Production recovery

Production payment attempts and request fingerprints are persistent. Uncertain purchases stay in reconciliation or operator review; no lease expiry submits a new label purchase. Retry the identical body/key and retain X-Request-ID. Real purchases remain disabled.