API reference

ParcelHub API

145 endpoints for rates, labels, tracking, pickups, customs, the wallet and connected stores. Every page here is generated from the live API, so fields and examples always match what it accepts.

  • Base URL https://api.parcelhub.ca/v1
  • Authentication exchange an API key for a token at POST /v1/api-clients/token, then send Authorization: Bearer <token>. See Quickstart.
  • Money integer cents: 1299 is $12.99, in CAD unless a currency says otherwise.
  • Errors {"ok": false, "error": {"code", "message"}}. See Errors & retries.
  • OpenAPI 3.1 download openapi.json for code generators and API clients.
Authenticate
curl -X POST https://api.parcelhub.ca/v1/api-clients/token \
  -H "Content-Type: application/json" \
  -d '{"client_id": "ph_client_…", "client_secret": "your-client-secret"}'

# then, on every call
curl https://api.parcelhub.ca/v1/shipments \
  -H "Authorization: Bearer $TOKEN"
Every response
{
  "ok": true,
  "data": { … },
  "request_id": "01JBX7Q2…"
}

Groups