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

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.

Hosted sandbox developer preview

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

POST/v1/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

NameLocationMeaning
PX-Sandbox-Scenario
optional
headerSandbox-only deterministic fixture. The selected quote carries this scenario into booking. Never use this header in live.

Request body

FieldTypeDescription
collection_country
required
stringISO 3166-1 alpha-2 uppercase country code. Pattern: ^[A-Z]{2}$
collection_postcode
required
stringCollection postcode; UK postcodes must have valid format.
delivery_country
required
stringISO 3166-1 alpha-2 uppercase country code. Pattern: ^[A-Z]{2}$
delivery_postcode
required
stringDelivery postcode.
parcels
required
arrayTotal consignment weight cannot exceed 1000 kg. Individual services may impose lower limits. Max items: 100
parcels[].weight
required
numberWeight in kilograms.
parcels[].length
required
numberDimension in centimetres.
parcels[].width
required
numberDimension in centimetres.
parcels[].height
required
numberDimension in centimetres.
Response schema
FieldTypeDescription
data
required
array
data[].id
required
stringPX quote identifier.
data[].service_id
required
stringOpaque PX service identifier; does not identify a supplier account.
data[].courier
required
stringCustomer-facing courier.
data[].service
required
stringCustomer-facing service name.
data[].handover
required
stringValues: collection, drop_off
data[].price
required
object
data[].price.total
required
numberTotal retail customer price inclusive of applicable VAT. Minimum: 0
data[].price.net
required
numberMinimum: 0
data[].price.vat
required
numberMinimum: 0
data[].price.currency
required
stringISO 4217 currency. Pattern: ^[A-Z]{3}$
data[].estimated_transit_days
required
integer | nullEstimate, not a guarantee. Minimum: 1
data[].expires_at
required
stringISO 8601 UTC timestamp. Database-backed responses may use +00:00; tracking events and signed webhook payloads use Z.
data[].capabilities
required
object
data[].capabilities.collection
required
boolean
data[].capabilities.label_formats
required
array
data[].capabilities.customs_terms
required
array
data[].requirements
optional
arrayOptional 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
200Success.
400Malformed JSON, cursor or idempotency header.
401Missing, invalid, expired or revoked key.
403Required scope not granted.
404Resource unavailable in this account and environment, or label format unavailable.
405Method not supported.
409Idempotency conflict, request in progress, expired/mismatched quote or cancellation unavailable.
413Body exceeds 256 KiB.
422Schema or capability validation failure.
429Enforced sandbox rate limit reached.
500Unexpected PX failure.
502Provider operation not confirmed. No blind booking retry.
503Provider 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"
        ]
      }
    }
  ]
}