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

Error handling

Complete HTTP errors are different from transport failures.

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.

The gated live saved-card path distinguishes payment_declined (402), payment_action_required (409), payment_processing (409) and payment_reconciliation_required (409). Complete authentication only in the authorised PX account; then retain the same shipment and Idempotency-Key. A provider timeout is reconciled by PX and never triggers a new purchase or a different card. Cancellation requested, cancellation confirmed and refund completed are distinct. No refund amount or fee recovery is promised by the API.

Every response carries X-Request-ID. JSON errors use error.code, message, optional field and request_id. Handle 400 invalid JSON/cursor/idempotency, 401 credentials, 403 scope/account, 404 object access, 409 conflicts/expiry/state, 422 validation/unavailable operations, 429 quota and 500/503 failures. Never parse provider text to make integration decisions.

A received 409 idempotency_conflict is a complete expected API response. A timeout or truncated response is uncertain; retain the original body and idempotency key. Retry those exact values. Do not create a replacement key merely because the response is unclear.