Tracking

Get the same tracking information you see in your panel. Fetch it to show customers in your app or to update your order management system.

Tracking Numbers

Every order is assigned a unique tracking number when created. The tracking number format is:

4NXXXXXXXXXXXX

Where XXXXXXXXXXXX is a 12-digit unique identifier (e.g., 4N000000012345). Tracking numbers always start with 4N or SH.

Timeline events

You get the same timeline you see when clicking an order in your panel. Each event shows:

FieldTypeDescription
statestringThe delivery state at this point
timestampdatetimeWhen the event occurred
typestringEvent type (e.g., state_change)
failure_infoobject|nullDetails about failure (if applicable)

Example Timeline

{
  "timeline": [
    {
      "state": "pending",
      "timestamp": "2025-02-03T10:00:00.000000Z",
      "type": "state_change",
      "failure_info": null
    },
    {
      "state": "picked_up",
      "timestamp": "2025-02-03T14:30:00.000000Z",
      "type": "state_change",
      "failure_info": null
    },
    {
      "state": "in_transit",
      "timestamp": "2025-02-03T18:00:00.000000Z",
      "type": "state_change",
      "failure_info": null
    },
    {
      "state": "out_for_delivery",
      "timestamp": "2025-02-04T08:00:00.000000Z",
      "type": "state_change",
      "failure_info": null
    },
    {
      "state": "delivered",
      "timestamp": "2025-02-04T11:30:00.000000Z",
      "type": "state_change",
      "failure_info": null
    }
  ]
}

Proof of delivery

Once an order is delivered, you can fetch the same proof you see in your panel - who received it, where, and photos.

What's included

FieldTypeDescription
recipient_namestringName of person who received the package
recipient_rutstringChilean ID number (optional)
recipient_rolestringRole of the person who received (e.g., recipient)
notesstring|nullAdditional delivery notes
locationobjectGPS coordinates of delivery
photosarrayDelivery photos
delivered_atdatetimeExact delivery timestamp

Location Object

{
  "location": {
    "latitude": -33.4489,
    "longitude": -70.6693
  }
}

Photos Array

{
  "photos": [
    {
      "url": "https://storage.example.com/photos/full/abc123.jpg",
      "preview_url": "https://storage.example.com/photos/thumb/abc123.jpg"
    }
  ]
}

Get updates automatically

Instead of checking your panel or calling the API repeatedly, set up webhooks to get notified when orders move.

When to use what

ApproachBest for
WebhooksUpdating your system automatically when status changes
Tracking APIShowing customers their order status on demand

See the Webhooks documentation for setup.

Was this page helpful?