Guides
Domestic shipping
Synthetic GB quote and booking workflow.
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 GB postcodes NN1 1AA and SW1A 1AA. Select drop_off Economy or collection Express. Route and parcels must match the selected quote. Sender and recipient require name, line1, city, postcode, country, email and phone. The selected Express offer requires collection date, ready_time and close_time.
Deterministic sandbox scenarios
Set PX-Sandbox-Scenario on POST /quotes. The returned quote retains that scenario for booking. This header is a sandbox control; omit it when separately approved for live.
| Scenario | Expected result |
|---|---|
| success (default) | Two synthetic services; drop-off Economy and collection Express. |
| no_service | 422 unsupported_route, no quote. |
| expired_quote | Quotes already expired; booking 409 quote_expired. |
| provider_rejection | Booking 422 provider_rejected; no shipment. Same-key rejection is retained. |
| temporary_failure | First booking 503 provider_unavailable, identical same-key retry 201. |
| provider_delay | Booking waits approximately one second before returning. |
| uncertain_outcome | First booking returns 503 booking_verification_required after durable creation. Identical same-key retry returns the original 201 shipment. |
| cancellation_rejection | Booking succeeds; cancellation returns 409 cancellation_not_allowed. |
Invalid GB postcode: INVALID. Invalid parcels: nonpositive dimensions/weight, weight above 70 kg or any side above 150 cm. Country codes outside GB, FR, DE, IE, US, CA and AU are not served. Use NN1 1AA → SW1A 1AA for GB, or GB → FR / 75001 with DAP customs for international fixtures.
Tracking progression
POST /sandbox/shipments/{id}/events with {"status":"in_transit"}, then out_for_delivery, then delivered. exception can be followed by in_transit/out_for_delivery or returned. collected is allowed from label_ready. Terminal shipments cannot be advanced. Requires shipments:write, ownership and an Idempotency-Key; repeats do not duplicate tracking events. Timestamps are ISO 8601 UTC. These controls cannot operate on live shipments.