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

Tracking

Persisted normalized UTC events with equivalent duplicate events suppressed. Authenticated bounded sandbox progression controls exercise lifecycle outcomes.

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.

Retrieve tracking

GET/v1/shipments/{id}/tracking

Available to approved test accounts in the external sandbox. Synthetic side effects only. Live shipping is disabled.

Required scope: tracking:read

Parameters

NameLocationMeaning
id
required
pathPX resource ID, scoped to account and environment.
Response schema
FieldTypeDescription
shipment_id
required
stringPX shipment ID.
reference
required
stringPX reference.
tracking_number
required
string | null
status
required
stringCurrent PX status.
events
required
array
events[].status
required
stringNormalized PX status.
events[].description
required
stringEvent description.
events[].timestamp
required
stringISO 8601 UTC timestamp. Database-backed responses may use +00:00; tracking events and signed webhook payloads use Z.
events[].location
required
stringDisplay location or empty string.
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 GET \
  --url "$PX_BASE_URL/shipments/$PX_SHIPMENT_ID/tracking" \
  --header "Authorization: Bearer $PX_API_KEY"

Response example

{
  "shipment_id": "shp_00000000-0000-4000-8000-000000000002",
  "reference": "PX-TEST-000001",
  "tracking_number": "TEST001",
  "status": "booked",
  "events": [
    {
      "status": "label_ready",
      "description": "Test label created. No carrier purchase.",
      "timestamp": "2026-10-04T10:25:00Z",
      "location": ""
    }
  ]
}

Find tracking by number

GET/v1/tracking/{tracking_number}

Available to approved test accounts in the external sandbox. Synthetic side effects only. Live shipping is disabled.

Required scope: tracking:read

Parameters

NameLocationMeaning
tracking_number
required
pathExact tracking number.
Response schema
FieldTypeDescription
shipment_id
required
stringPX shipment ID.
reference
required
stringPX reference.
tracking_number
required
string | null
status
required
stringCurrent PX status.
events
required
array
events[].status
required
stringNormalized PX status.
events[].description
required
stringEvent description.
events[].timestamp
required
stringISO 8601 UTC timestamp. Database-backed responses may use +00:00; tracking events and signed webhook payloads use Z.
events[].location
required
stringDisplay location or empty string.
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 GET \
  --url "$PX_BASE_URL/tracking/$PX_TRACKING_NUMBER" \
  --header "Authorization: Bearer $PX_API_KEY"

Response example

{
  "shipment_id": "shp_00000000-0000-4000-8000-000000000002",
  "reference": "PX-TEST-000001",
  "tracking_number": "TEST001",
  "status": "booked",
  "events": [
    {
      "status": "label_ready",
      "description": "Test label created. No carrier purchase.",
      "timestamp": "2026-10-04T10:25:00Z",
      "location": ""
    }
  ]
}

Advance sandbox Shipment

POST/v1/sandbox/shipments/{id}/events

Sandbox only. Organisation/application scoped, authenticated and rate limited. Idempotent management writes; signing secrets are never recoverable. Dispatch attempts one due delivery without bypassing its retry schedule. Live API disabled.

Required scope: shipments:write

Parameters

NameLocationMeaning
id
required
path
Idempotency-Key
required
header8–128 ASCII letters, digits, underscore, dot, colon or hyphen. Account/environment/operation scoped; never reuse for a different request. Sandbox retains keys until reset.

Request body

FieldTypeDescription
status
required
stringValues: collected, in_transit, out_for_delivery, delivered, exception, returned
Response schema
FieldTypeDescription
HTTP responses and errors
200Sandbox operation result.
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.
409Idempotency conflict, request in progress, expired/mismatched quote or cancellation unavailable.
422Schema or capability validation failure.
429Enforced sandbox rate limit reached.
500Unexpected PX failure.
503Provider unavailable or live API not released.

Request example

curl --request POST \
  --url "$PX_BASE_URL/sandbox/shipments/$PX_SHIPMENT_ID/events" \
  --header "Authorization: Bearer $PX_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: $PX_IDEMPOTENCY_KEY" \
  --data '{
  "status": "in_transit"
}'