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…
Token verified with ParceLabs ID RFC 7662 Permission required easyparcel:tracking:read200 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:read Tracking lookup and detail. easyparcel:shipments:read Shipment list and detail. easyparcel:shipments:create Creating a shipment. easyparcel:shipments:delete Deleting, with the second factor. GET /easyparcel/tracking/lookup?tracking_number=…
One address, api.parcelabs.com, and one path per group and resource.
GET /easyparcel/tracking/lookupFinds a shipment by tracking number, custom ID or offer code.
GET /easyparcel/shipmentsShipment list and detail, with their tracking.
POST /easyparcel/shipmentsCreates a shipment; PUT updates it.
DELETE /easyparcel/shipments/{id}Deletes a shipment: needs a second factor no older than 5 minutes.
GET /internal/countersPublic, no token: shipments and customers, cached for 300 s.