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

Collections

Synthetic collection scheduling/update for eligible Express shipments before processing. No carrier collection is ordered. Production initial scheduling uses PX booking rules; modifications return 422 collection_not_enabled.

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.

Confirm collection schedule

POST/v1/shipments/{id}/collection

Available to approved test accounts in the external sandbox. Synthetic side effects only. Live shipping is disabled. Production collection modification is unavailable; collection at initial booking follows the selected PX service.

Required scope: collections:write

Parameters

NameLocationMeaning
id
required
pathPX resource ID, scoped to account and environment.
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
date
required
stringCollection date in origin local calendar.
ready_time
required
stringOrigin local time HH:mm. Pattern: ^([01]\d|2[0-3]):[0-5]\d$
close_time
required
stringOrigin local closing time HH:mm, later than ready_time. Pattern: ^([01]\d|2[0-3]):[0-5]\d$
Response schema
FieldTypeDescription
shipment_id
required
stringPX shipment ID.
date
required
stringLocal date.
ready_time
required
stringHH:mm
close_time
required
stringHH:mm
status
required
stringSchedule state.
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/shipments/$PX_SHIPMENT_ID/collection" \
  --header "Authorization: Bearer $PX_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: $PX_IDEMPOTENCY_KEY" \
  --data '{
  "date": "2026-10-05",
  "ready_time": "09:00",
  "close_time": "17:00"
}'

Response example

{
  "shipment_id": "shp_00000000-0000-4000-8000-000000000002",
  "date": "2026-10-05",
  "ready_time": "09:00",
  "close_time": "17:00",
  "status": "scheduled"
}