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

Labels

Authenticated, owned-shipment A4 or 4×6 inch thermal PDF. TEST / VOID — NOT VALID FOR POSTAGE. One artifact per consignment.

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.

Download label

GET/v1/shipments/{id}/label

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

Required scope: labels:read

Parameters

NameLocationMeaning
id
required
pathPX resource ID, scoped to account and environment.
format
optional
queryRequested label format. Default a4.
Response schema

Binary application/pdf. Requires labels:read and shipment ownership.

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/label" \
  --header "Authorization: Bearer $PX_API_KEY" \
  --output VOID-test-label.pdf