api.parcelabs.com/{group}/{resource}

Every call, checked first.

Authorization: Bearer <ParceLabs ID token>

ParceLabs' API serves shipments and tracking to the group's platforms. Every shipment and tracking request goes through ParceLabs ID before it touches any data: token, permission and, to delete, a second factor too.

POST /oauth/introspect RFC 7662

Three checks, then the answer.

The token is verified with ParceLabs ID, then the route needs the right permission. Only then does the data come back.

Tracking and shipments

A tracking number lookup, checked step by step.

api.parcelabs.com
GET /easyparcel/tracking/lookup?tracking_number=…
Authorization: Bearer eyJ0eXAi…
  1. Token verified with ParceLabs ID RFC 7662
  2. Permission required easyparcel:tracking:read
  3. 200 OK

Deleting a shipment also needs amr=["mfa"].

Permissions

Every route states the permission it needs, as group:resource:action.

{group}:{resource}:{action}
  • easyparcel:tracking:readTracking lookup and detail.
  • easyparcel:shipments:readShipment list and detail.
  • easyparcel:shipments:createCreating a shipment.
  • easyparcel:shipments:deleteDeleting, with the second factor.

GET /easyparcel/tracking/lookup?tracking_number=…

The calls.

One address, api.parcelabs.com, and one path per group and resource.

GET /easyparcel/tracking/lookup
Finds a shipment by tracking number, custom ID or offer code.
GET /easyparcel/shipments
Shipment list and detail, with their tracking.
POST /easyparcel/shipments
Creates a shipment; PUT updates it.
DELETE /easyparcel/shipments/{id}
Deletes a shipment: needs a second factor no older than 5 minutes.
GET /internal/counters
Public, no token: shipments and customers, cached for 300 s.
esc