Skip to content

Real Time Tracking API (2.0.0)

Real Time Tracking API - Managed by Tracking Team

Download OpenAPI description
Languages
Servers
PROD

https://tracking.bettermile.com/

Parcel

Endpoints related to parcel information and tracking

Operations

Request

The Parcel endpoint returns information regarding a given parcel. This broadly includes shipper and consignee address, delivery information, ETA timestamps and much more.

Security
bearerToken
Path
parcelIdentifierstringrequired

Parcel number or tracking id

Example: 10362781851
curl -i -X GET \
  https://tracking.bettermile.com/api/v2/external/parcel/10362781851 \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Parcel response

Bodyapplication/json
parcelNumberstringrequired
Example: "10362781851"
trackingIdstringrequired
Example: "YUTKBBTN"
statusobject(ParcelStatus)required
One of:
status.​typestringrequired
Value"DELIVERED"
status.​detailstring(ParcelStatusDetailTypeDelivered)required
Enum"NORMAL""NEIGHBOR""PARCEL_SHOP""DEPOSIT""OTHER"
status.​deliveredAtstring(date-time)
Example: "2022-01-15T14:33:25Z"
status.​addressobject(Address)
status.​nameany(string)

Neighbour name, present only for detail = 'TO_NEIGHBOR'

jobTypestring(JobType)required
Enum"DELIVERY""PICKUP""COLLECTION""UNKNOWN"
supportedCustomizedDeliveryTypesArray of strings(CustomizedDeliveryType)required
Items Enum"DEPOSIT_PERMISSION""DELIVER_TO_NEIGHBOR""DELIVER_TO_PARCELSHOP""HINT"
shipperIdstring(ShipperId)
customizedDeliveryobject(CustomizedDelivery)
One of:
fromAddressobject(AddressName)
toAddressobject(Address)
Response
application/json
{ "trackingId": "YUTKBBTN", "parcelNumber": "10362781851", "status": { "type": "DELIVERED", "detail": "NORMAL", "deliveredAt": "2022-01-15T14:33:25Z", "address": {}, "name": null }, "shipperId": "bmw", "jobType": "DELIVERY", "supportedCustomizedDeliveryTypes": [ "DEPOSIT_PERMISSION" ], "customizedDelivery": { "type": "DEPOSIT_PERMISSION", "createdAt": "2022-01-15T14:33:25Z", "location": "Carport", "description": "Hinter der Tonne" }, "fromAddress": { "name": "Max Mustermann" }, "toAddress": { "name": "Max Mustermann", "street": "GLS Germany-Straße", "number": "1-7", "postcode": 36286, "city": "Neuenstein", "country": "DE", "coordinates": {} } }

Availability

Endpoints related to parcel availability

Operations

Customization

Endpoints related to parcel customizations

Operations