Quickstart
This guide walks you through creating your first shipping label, retrieving the label document, and tracking the shipment.Prerequisites
- An API token (see Authentication for how to obtain one)
curlor any HTTP client- The development base URL:
https://sandbox.flexforward.com
Use the development environment for testing. It connects to courier sandbox services and does not create live shipments.
Step 1: Authenticate
Include your Bearer token in theAuthorization header of every request:
Step 2: Create a label
Send aPOST /labels request with your shipment details. The idempotencyKey ensures that retrying the same request does not create a duplicate label.
Minimum required fields:
idempotencyKey, courier, service.shipperAccountId, service.productCode, shipment.shipTo (contact with firstName, address with countryCode, city, postalCode, streetLines), and at least one parcel with weight and one item (descriptionEn, quantity, unitPrice, unitWeight). The shipment.shipFrom field is required for certain couriers and shipping lanes — confirm requirements with the Flex Forward team during onboarding.201 Created
| Field | Description |
|---|---|
id | The label UUID. Use this to retrieve documents and tracking. |
status | created on success, failed if the courier rejected the request. |
courierOrderNumber | The order number assigned by the courier. |
courierTrackingNumber | The tracking number assigned by the courier. |
error | null on success. Contains code and message on failure. |
Step 3: Retrieve the label document
Use the labelid from the previous response to retrieve the airway bill document:
200 OK
url to print the shipping label.
Step 4: Track the shipment
Use the same labelid to retrieve tracking information:
200 OK
tag field provides the high-level shipment status. See Core Concepts for the full list of tracking statuses.
What success looks like
After completing this quickstart, verify you can:- Authenticate successfully with your Bearer token
- Create a test label in the development environment
- Retrieve a printable label document (PDF or PNG)
- Fetch normalized tracking updates for your test label