API reference
Quotes
Synthetic customer-price offers. Select a returned quote and inspect capabilities; 15-minute expiry unless an expiry scenario is requested. Gated production pricing is customer-facing PX pricing; optional requirements describe conditional inputs.
Set PX_BASE_URL to https://sandbox-api.parcelxpert.com/v1. Intended live host: https://api.parcelxpert.com/v1. Live requests are not released. Set PX_IDEMPOTENCY_KEY to one stored unique value per write; replace all example quote and shipment IDs with returned IDs.
Get quotes
Available to approved test accounts in the external sandbox. Synthetic side effects only. Live shipping is disabled. Route fixtures support GB, FR, DE, IE, US, CA and AU. Per-parcel limits: 70 kg and 150 cm each dimension. Expiry 15 minutes. Domestic fixture VAT 20%; cross-border fixtures show zero VAT without making a tax determination.
Required scope: quotes:read
Parameters
| Name | Location | Meaning |
|---|---|---|
| PX-Sandbox-Scenario optional | header | Sandbox-only deterministic fixture. The selected quote carries this scenario into booking. Never use this header in live. |
Request body
| Field | Type | Description |
|---|---|---|
collection_countryrequired | string | ISO 3166-1 alpha-2 uppercase country code. Pattern: ^[A-Z]{2}$ |
collection_postcoderequired | string | Collection postcode; UK postcodes must have valid format. |
delivery_countryrequired | string | ISO 3166-1 alpha-2 uppercase country code. Pattern: ^[A-Z]{2}$ |
delivery_postcoderequired | string | Delivery postcode. |
parcelsrequired | array | Total consignment weight cannot exceed 1000 kg. Individual services may impose lower limits. Max items: 100 |
parcels[].weightrequired | number | Weight in kilograms. |
parcels[].lengthrequired | number | Dimension in centimetres. |
parcels[].widthrequired | number | Dimension in centimetres. |
parcels[].heightrequired | number | Dimension in centimetres. |
Response schema
| Field | Type | Description |
|---|---|---|
datarequired | array | |
data[].idrequired | string | PX quote identifier. |
data[].service_idrequired | string | Opaque PX service identifier; does not identify a supplier account. |
data[].courierrequired | string | Customer-facing courier. |
data[].servicerequired | string | Customer-facing service name. |
data[].handoverrequired | string | Values: collection, drop_off |
data[].pricerequired | object | |
data[].price.totalrequired | number | Total retail customer price inclusive of applicable VAT. Minimum: 0 |
data[].price.netrequired | number | Minimum: 0 |
data[].price.vatrequired | number | Minimum: 0 |
data[].price.currencyrequired | string | ISO 4217 currency. Pattern: ^[A-Z]{3}$ |
data[].estimated_transit_daysrequired | integer | null | Estimate, not a guarantee. Minimum: 1 |
data[].expires_atrequired | string | ISO 8601 UTC timestamp. Database-backed responses may use +00:00; tracking events and signed webhook payloads use Z. |
data[].capabilitiesrequired | object | |
data[].capabilities.collectionrequired | boolean | |
data[].capabilities.label_formatsrequired | array | |
data[].capabilities.customs_termsrequired | array | |
data[].requirementsoptional | array | Optional required field paths for this selected service. Read unfamiliar optional requirements and seek updated guidance; client forms do not update automatically. Gated production extension. Not accepted or returned by the current public sandbox; omit it from sandbox requests. |
HTTP responses and errors
| 200 | Success. |
| 400 | Malformed JSON, cursor or idempotency header. |
| 401 | Missing, invalid, expired or revoked key. |
| 403 | Required scope not granted. |
| 404 | Resource unavailable in this account and environment, or label format unavailable. |
| 405 | Method not supported. |
| 409 | Idempotency conflict, request in progress, expired/mismatched quote or cancellation unavailable. |
| 413 | Body exceeds 256 KiB. |
| 422 | Schema or capability validation failure. |
| 429 | Enforced sandbox rate limit reached. |
| 500 | Unexpected PX failure. |
| 502 | Provider operation not confirmed. No blind booking retry. |
| 503 | Provider unavailable or live API not released. |
Request example
curl --request POST \
--url "$PX_BASE_URL/quotes" \
--header "Authorization: Bearer $PX_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"collection_country": "GB",
"collection_postcode": "NN1 1AA",
"delivery_country": "GB",
"delivery_postcode": "SW1A 1AA",
"parcels": [
{
"weight": 2,
"length": 30,
"width": 20,
"height": 15
}
]
}'Response example
{
"data": [
{
"id": "qt_00000000-0000-4000-8000-000000000001",
"service_id": "svc_test_drop_off",
"courier": "PX Sandbox Courier",
"service": "Test drop-off",
"handover": "drop_off",
"price": {
"total": 6,
"net": 5,
"vat": 1,
"currency": "GBP"
},
"estimated_transit_days": 3,
"expires_at": "2026-10-04T10:40:00Z",
"capabilities": {
"collection": false,
"label_formats": [
"a4"
],
"customs_terms": [
"DAP"
]
}
}
]
}