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

Getting started

Sandbox and gated Production

One developer identity and two separately authorised environments.

Production is gated.

The production API at https://api.parcelxpert.com/v1 is a separate deployment. Live credential issuance, carrier purchases, real payments and production webhook delivery are disabled pending an approved controlled pilot.

One portal, two environments

Use the Sandbox / Production selector in the same Developer Portal account. Applications share an organisation identity; credentials, requests and webhook configuration are environment-scoped; live shipment views read authorised PX records and finance belongs to the PX account. Owner/Admin requests production access for a named application. Trusted PX staff must record approved services and scopes, an explicit shipping-account mapping, billing readiness, expiry and request/spend limits. Sandbox approval never implies production approval. Future live credentials are high-entropy bearer keys shown once, stored as hashes and masked afterwards; revocation and rotation are audited.

Shared PX saved-card billing

Website and live API bookings use the authorised PX shipping account and its shared billing service. Manage masked saved cards, explicit default payment preferences and shipment payments in the authenticated PX account, not in the Developer Portal. Stripe-hosted collection and server-verified SetupIntent evidence establish the card; PX records off-session consent. An API key cannot choose another account or payment method.

The accepted PX total, account, shipment, request fingerprint and permanent PaymentIntent are recorded together. A successful capture is required before provider purchase. Payment declines return 402 payment_declined; authentication-required payments return 409 payment_action_required with the same shipment ID and a secure PX account completion URL. Processing and uncertain outcomes remain under reconciliation. Complete any required authentication in PX, then retry the identical API body and Idempotency-Key. No fallback card or replacement booking is selected.

Cancellation requested, cancellation confirmed and completed refund are separate states. PX handles customer refunds under its approved rules; a cancellation does not promise a refund or recovery of every fee. Supplier settlement and refund reconciliation stay internal to PX.

Shared prepaid wallet deferred

The previously implemented PX account ledger and reservation evidence are retained for a separately approved shared-wallet phase. Wallet funding and spending remain disabled. There is no independent developer balance, card system or shipment ledger, and wallet activation is not a prerequisite for the saved-card path. Sandbox synthetic shipping and payments never affect live financial history.

Safe recovery

Persist the request body and Idempotency-Key before booking. On timeout or 503 booking_verification_required retry exactly the same body/key. 409 request_in_progress means reconciliation/operator review is pending. Never generate a new key to bypass an uncertain booking. A changed payload on the old key returns 409 idempotency_conflict. Stored final replies replay with a new request ID and Idempotency-Replayed: true. Production idempotency does not automatically expire.

Current limitations

Live quote/booking adapters reuse PX quote sessions, service eligibility, customer pricing, address/content/handover checks, final booking preconditions, provider purchase fences, owned label retrieval and tracking normalization. Hosted carrier and Stripe TEST evidence is recorded separately from real transaction certification; live actions remain gated. Approved service identifiers are configured by staff; supplier credentials, costs and margins are never part of merchant responses. Quote requirements are optional discovery fields: inspect them and supply conditional declared_value, customs, recipient identifiers or DPD compliant packaging where applicable. The server enforces the final requirements.

DAP parcel shipping is the initial supported design. DDP, documents-only services, InPost/shop-to-shop point selection, surcharged DPD packaging, unpriced extras, marketplace-order booking and collection modification remain unavailable. Initial collection scheduling follows the selected PX service. PDF A4/thermal support follows actual stored label availability, not a promise that every carrier returns both. REST webhook-management operations remain sandbox-only; Production console configurations stay disabled. The production outbox/worker is implemented with stable IDs, HMAC signing, private-destination/redirect protection and the same seven-attempt retry policy, but hosted production delivery has not been activated.

Sandbox to Production checklist

  1. Complete the sandbox integration and failure scenarios, with least-privilege scopes.
  2. Request application-specific production approval in the same portal.
  3. Confirm authorised shipping-account binding, approved services, billing currency, caps and expiry with PX.
  4. Obtain separate controlled-pilot approval for one saved-card charge and one postage purchase within the approved total; wallet funding stays deferred.
  5. Only after activation, select Production, securely obtain a live key and set PX_BASE_URL to https://api.parcelxpert.com/v1. Never reuse a test key.
  6. Inspect returned service requirements and label capabilities, use unchanged core HTTP paths/schemas and retain replay journals.
  7. Configure approved production webhook delivery and verify signatures/deduplicate event IDs. Remove all sandbox scenario controls.