Parcels
The Tracking Parcels endpoint lets you fetch the current status, carrier events, and line items of any parcel owned by your shop, using the tracking number you already have (e.g. from the carrier label or the Baback dashboard).
Base URL: https://api2.baback.co. The Bearer token is the same as for the Shipping Labels API.
Authentication
Every request uses a Bearer token: the bb1_… key described in Authentication, the same one you use for the Returns and Shipping Labels APIs.
To push orders and parcels to Baback, use the Tracking API v2, which takes a different token (bb2_…).
Authorization: Bearer
The token automatically identifies your shop. A missing or invalid token returns 403 Forbidden.
Rate limiting
| Limit | Window |
|---|---|
| 100 requests | 60 seconds |
Going over the limit returns 429 Too Many Requests.
Get a parcel by tracking number
Returns a parcel from its tracking number: carrier status, events, delivery address and line items. You only see your own shop's parcels. A tracking number from another shop returns 404, as if it didn't exist.
The :trackingNumber parameter is matched against two fields:
trackingId: the main tracking number of the parceltrackingNumbers[]: all the tracking numbers of a shipment split into several packages
If multiple parcels of the same shop match, the most recently created one is returned (orderBy: createdAt desc).
Path parameters
- Name
trackingNumber- Type
- string
- Description
The tracking number to look up. Matched against
trackingIdandtrackingNumbers[].
Response attributes
- Name
id- Type
- string
- Description
Unique identifier of the parcel (primary key in database).
- Name
shopId- Type
- string
- Description
Identifier of the shop that owns this parcel.
- Name
orderId- Type
- string
- Description
Identifier of the order this parcel belongs to.
- Name
orderNumber- Type
- string
- Description
Human-readable order number (e.g.
1042).
- Name
trackingId- Type
- string
- Description
Primary tracking number of the parcel. It is not unique: use
idto identify a parcel.
- Name
trackingNumbers- Type
- string[]
- Description
All tracking numbers associated with this parcel (multi-package shipments may have more than one).
- Name
carrierCode- Type
- string
- Description
Carrier code (e.g.
colissimo,chronopost).
- Name
carrierProduct- Type
- string | null
- Description
Carrier product code, if available (e.g.
DOM).
- Name
carrierDisplayName- Type
- string | null
- Description
Human-readable carrier name (e.g.
Colissimo Domicile).
- Name
lastStatus- Type
- TrackingStatus | null
- Description
Current Baback tracking status. See the status list below.
- Name
lastStatusUpdatedAt- Type
- number | null
- Description
Unix timestamp (ms) of the last status update.
- Name
deliveryDate- Type
- number | null
- Description
Unix timestamp (ms) when the parcel was actually delivered.
nulluntil delivery is confirmed.
- Name
collectedAt- Type
- number | null
- Description
Unix timestamp (ms) when the customer collected the parcel at the pickup point.
- Name
endDepositDate- Type
- number | null
- Description
Unix timestamp (ms) after which the parcel is returned to sender if unclaimed.
- Name
createdAt- Type
- number
- Description
Unix timestamp (ms) when the parcel was created in Baback.
- Name
updatedAt- Type
- number
- Description
Unix timestamp (ms) of the last update.
Request
curl https://api2.baback.co/public/v1/tracking/parcels/8C12345678901 \
-H "Authorization: Bearer {token}"
Response: 200 OK
{
"id": "parcel_abc123",
"shopId": "shop_1",
"orderId": "shopify_4567890123",
"orderNumber": "1042",
"trackingId": "8C12345678901",
"trackingNumbers": ["8C12345678901"],
"carrierCode": "colissimo",
"carrierProduct": "DOM",
"carrierDisplayName": "Colissimo Domicile",
"lastStatus": "IN_TRANSIT",
"lastStatusUpdatedAt": 1714377600000,
"carrierLastStatus": {
"code": "PCH",
"description": "Pris en charge par le transporteur",
"date": 1714377600000
},
"estimatedDeliveryDateWindow": {
"exactDeliveryDay": 1714723200000,
"minimumDeliveryDate": 1714636800000,
"maximumDeliveryDate": 1714809600000
},
"deliveryDate": null,
"collectedAt": null,
"endDepositDate": 1715241600000,
"destination": {
"firstName": "Jane",
"lastName": "Doe",
"name": "Jane Doe",
"company": "",
"address1": "5 avenue des Champs-Élysées",
"address2": null,
"city": "Paris",
"zip": "75008",
"province": "Île-de-France",
"provinceCode": "IDF",
"country": "France",
"countryCode": "FR",
"phone": "+33698765432",
"latitude": null,
"longitude": null,
"isPickupPoint": false
},
"lineItems": [
{
"lineItemId": "li_001",
"name": "T-shirt Acme, taille M",
"imageUrl": "https://cdn.shopify.com/.../tshirt.jpg",
"sku": "TSHIRT-M-001",
"quantity": 2,
"price": 29.9,
"productId": "prod_42",
"metadata": null
}
],
"events": [
{
"status": "IN_TRANSIT",
"createdAt": 1714377600000,
"label": "Pris en charge par le transporteur",
"carrierStatusCode": "PCH",
"isNotificationSkipped": false,
"notifications": []
},
{
"status": "PRE_TRANSIT",
"createdAt": 1714291200000,
"label": "Colis prêt à être expédié",
"carrierStatusCode": null,
"isNotificationSkipped": false,
"notifications": []
}
],
"createdAt": 1714291200000,
"updatedAt": 1714377600000
}
Search parcels by order number and/or email
Finds parcels when you don't have the tracking number, by order number (orderName), customer email (email), or both. You only see your own shop's parcels.
At least one of orderName or email is required. When both are provided, the filters are combined (logical AND). Because a single order can span several parcels, the response is an array of parcels, ordered from most recently created to oldest and capped at 50 results.
Both filters must match exactly. Pass the order number alone, e.g. 1042, without #. The email is case-sensitive: pass it exactly as it is on the order.
Query parameters
- Name
orderName- Type
- string
- Description
Order number, exact match (e.g.
1042).
- Name
email- Type
- string
- Description
Customer email, exact match.
Response attributes
Returns an array of parcel objects, each with the exact same shape as GET /public/v1/tracking/parcels/:trackingNumber (see the response attributes above). The same PII fields are stripped. An empty array [] is returned when nothing matches.
Request
# By order number
curl "https://api2.baback.co/public/v1/tracking/search?orderName=1042" \
-H "Authorization: Bearer {token}"
# By customer email
curl "https://api2.baback.co/public/v1/tracking/search?email=jane@example.com" \
-H "Authorization: Bearer {token}"
Response: 200 OK
[
{
"id": "parcel_abc123",
"shopId": "shop_1",
"orderId": "shopify_4567890123",
"orderNumber": "1042",
"trackingId": "8C12345678901",
"trackingNumbers": ["8C12345678901"],
"carrierCode": "colissimo",
"carrierProduct": "DOM",
"carrierDisplayName": "Colissimo Domicile",
"lastStatus": "IN_TRANSIT",
"lastStatusUpdatedAt": 1714377600000,
"carrierLastStatus": {
"code": "PCH",
"description": "Pris en charge par le transporteur",
"date": 1714377600000
},
"estimatedDeliveryDateWindow": null,
"deliveryDate": null,
"collectedAt": null,
"endDepositDate": null,
"destination": {
"firstName": "Jane",
"lastName": "Doe",
"name": "Jane Doe",
"company": "",
"address1": "5 avenue des Champs-Élysées",
"address2": null,
"city": "Paris",
"zip": "75008",
"province": "Île-de-France",
"provinceCode": "IDF",
"country": "France",
"countryCode": "FR",
"phone": "+33698765432",
"latitude": null,
"longitude": null,
"isPickupPoint": false
},
"lineItems": [],
"events": [
{
"status": "IN_TRANSIT",
"createdAt": 1714377600000,
"label": "Pris en charge par le transporteur",
"carrierStatusCode": "PCH",
"isNotificationSkipped": false,
"notifications": []
}
],
"createdAt": 1714291200000,
"updatedAt": 1714377600000
}
]
Response: 400 Bad Request
{
"message": "At least one of `orderName` or `email` must be provided",
"statusCode": 400,
"timestamp": "2026-04-29T12:00:00.000Z"
}
Tracking statuses
lastStatus and events[].status take one of these values.
| Status | Description |
|---|---|
NONE | No tracking information yet: the parcel has just been created |
ORDER_NOT_FULFILLED | The order has been awaiting logistics processing for several days |
PARCEL_NOT_SHIPPED | No carrier event for several days since the label was created |
PRE_TRANSIT | Label created, the parcel is still with the sender |
IN_TRANSIT | Picked up by the carrier, in transit |
CUSTOMS_CLEARANCE_START | Held at customs |
CUSTOMS_CLEARANCE_COMPLETE | Customs cleared, transit resumes |
OUT_FOR_DELIVERY | Out for delivery today |
DELIVERY_ATTEMPTED | Delivery attempted but not completed, a new attempt is planned |
WAITING_INFORMATION_FROM_ADDRESS | The carrier needs information from the customer to deliver |
REDIRECT_TO_PICKUP | Customer absent, the parcel was dropped at a nearby pickup point |
DISPATCHED_TO_OTHER_PICKUP_POINT | Redirected to a pickup point other than the one planned |
AVAILABLE_FOR_PICKUP | Available at the pickup point |
WAITING_AT_PICKUP_POINT | Waiting at the pickup point for several days |
WAITING_AT_PICKUP_POINT_SEVERE | Last days to collect it before it is sent back |
COLLECTED_AT_PICKUP | Collected by the customer at the pickup point |
DELIVERED | Delivered to the recipient |
DELIVERED_TO_NEIGHBOUR | Delivered to an authorized third party |
CARRIER_DELAYED_PACKAGE | Delay reported by the carrier, without a cause |
DELAYED_PACKAGE | Moderate delay detected by Baback |
DELAYED_PACKAGE_SEVERE | Significant delay detected by Baback |
EXCEPTION | Carrier incident compromising the delivery (lost, damaged, wrong address…) |
RETURNED_TO_SENDER | Neither delivered nor collected, returned to the sender |
STALE | No carrier update for a long time: tracking has stopped |
Privacy
The following fields are present internally on a parcel but are never exposed through this endpoint:
customerEmail,customerLocale,previousEmails: the customer's personal data (the email or phone number still appears as the recipient of a notification, inevents[].notifications[].to)giftConfig,crossSellRecommendations,webTemplate: only used by the customer tracking page
Error handling
| HTTP code | Cause |
|---|---|
400 Bad Request | Search request with neither orderName nor email |
403 Forbidden | Missing or invalid Bearer token |
404 Not Found | No parcel found with this tracking number for your shop |
429 Too Many Requests | Rate limit exceeded (100 req / 60 s) |
500 Internal Server Error | Baback-side error |
Error payloads use the following shape:
{
"message": "Parcel not found with trackingId: 8C12345678901",
"statusCode": 404,
"timestamp": "2026-04-29T12:00:00.000Z"
}