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).

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.

Authorization: Bearer 

The token automatically identifies your shop. A missing or invalid token returns 403 Forbidden.

Rate limiting

LimitWindow
100 requests60 seconds

Going over the limit returns 429 Too Many Requests.


GET/public/v1/tracking/parcels/:trackingNumber

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 parcel
  • trackingNumbers[]: 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 trackingId and trackingNumbers[].

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 id to 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. null until 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

GET
/public/v1/tracking/parcels/:trackingNumber
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
}

GET/public/v1/tracking/search

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.

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

GET
/public/v1/tracking/search
# 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.

StatusDescription
NONENo tracking information yet: the parcel has just been created
ORDER_NOT_FULFILLEDThe order has been awaiting logistics processing for several days
PARCEL_NOT_SHIPPEDNo carrier event for several days since the label was created
PRE_TRANSITLabel created, the parcel is still with the sender
IN_TRANSITPicked up by the carrier, in transit
CUSTOMS_CLEARANCE_STARTHeld at customs
CUSTOMS_CLEARANCE_COMPLETECustoms cleared, transit resumes
OUT_FOR_DELIVERYOut for delivery today
DELIVERY_ATTEMPTEDDelivery attempted but not completed, a new attempt is planned
WAITING_INFORMATION_FROM_ADDRESSThe carrier needs information from the customer to deliver
REDIRECT_TO_PICKUPCustomer absent, the parcel was dropped at a nearby pickup point
DISPATCHED_TO_OTHER_PICKUP_POINTRedirected to a pickup point other than the one planned
AVAILABLE_FOR_PICKUPAvailable at the pickup point
WAITING_AT_PICKUP_POINTWaiting at the pickup point for several days
WAITING_AT_PICKUP_POINT_SEVERELast days to collect it before it is sent back
COLLECTED_AT_PICKUPCollected by the customer at the pickup point
DELIVEREDDelivered to the recipient
DELIVERED_TO_NEIGHBOURDelivered to an authorized third party
CARRIER_DELAYED_PACKAGEDelay reported by the carrier, without a cause
DELAYED_PACKAGEModerate delay detected by Baback
DELAYED_PACKAGE_SEVERESignificant delay detected by Baback
EXCEPTIONCarrier incident compromising the delivery (lost, damaged, wrong address…)
RETURNED_TO_SENDERNeither delivered nor collected, returned to the sender
STALENo 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, in events[].notifications[].to)
  • giftConfig, crossSellRecommendations, webTemplate: only used by the customer tracking page

Error handling

HTTP codeCause
400 Bad RequestSearch request with neither orderName nor email
403 ForbiddenMissing or invalid Bearer token
404 Not FoundNo parcel found with this tracking number for your shop
429 Too Many RequestsRate limit exceeded (100 req / 60 s)
500 Internal Server ErrorBaback-side error

Error payloads use the following shape:

{
  "message": "Parcel not found with trackingId: 8C12345678901",
  "statusCode": 404,
  "timestamp": "2026-04-29T12:00:00.000Z"
}