Skip to content
On this page

Events

Status Update

This resource allows customers to get shipment status updates through TMS Events. We currently support HTTPS URLs to ensure security. We only send JSON data to your webhook URL via HTTP POST and expect a 200 HTTP status code in the response. Anything other than a 200 status code will be treated as failure and the request will be retried at a later time. To register your endpoints for our webhook notifications, please click here.

Format

Every JSON payload send to your api endpoint will have the following attributes:

NameTypeDescriptionRequired?
CheckInTypeIdintEvent type Idyes
CheckInTypeNamestringEvent type nameyes
CheckInDatedateEvent dateyes
CheckInTimetimeEvent timeyes
CheckInBusinessUnitIdintCheckin businessunit idyes
LongitudedecimalLocation longitudeyes
LatitudedecimalLocation latitudeyes
RemarksstringEvent remarksoptional
ReceivedBystringReceiver upon deliveryoptional
DexTypeIdintDelivery exception type idoptional
DexTypeNamestringDelivery exception type nameoptional
CustomerIdintCustomer Idyes
ShipmentReferencesarrayArray of shipment customer document objectsyes
CheckInPhotosURLarrayarray of checkin photos urloptional
Shipment References Object Data
NameTypeDescriptionRequired?
ShipmentIdintShipment Idyes
WaybillNostringShipment waybill numberoptional
CustomerDocumentsarrayArray of customer documents numbersyes

Sample Payload

javascript
POST /your-webhook-endpoint
  Content-Type: application/json
javascript
{
  "CheckInTypeId": 17,
  "CheckInTypeName": "Vehicle Arrived At Site\r\n",
  "CheckInDate": "2021-06-14T09:49:08",
  "CheckInTime": "09:49:08",
  "CheckInBusinessUnitId": 12,
  "Longitude": 122.5364557,
  "Latitude": 10.7168544,
  "Remarks": null,
  "ReceivedBy": null,
  "DexTypeId": null,
  "DexTypeName": null,
  "CustomerId": 410,
  "ShipmentReferences": [{
    "ShipmentId": 741534,
    "WaybillNo": null,
    "CustomerDocuments": ["CEBS0501966"]
  }, {
    "ShipmentId": 741536,
    "WaybillNo": null,
    "CustomerDocuments": ["CEBS0501975"]
  }, {
    "ShipmentId": 741538,
    "WaybillNo": null,
    "CustomerDocuments": ["CEBS0502205"]
  }, {
    "ShipmentId": 741543,
    "WaybillNo": null,
    "CustomerDocuments": ["CEBS0502041"]
  }],
  "CheckInPhotosURL": null
}

Retries

Our system has a retry protocol whenever we get an error response from the client (i.e. a non-200 HTTP status code). Our retry phases are as follows:

  1. Retry failed message after 15 minutes for 96 times (24 hours).
  2. If the status update still fails after the 96th retry, its contents go to our dead letter queue (DLQ) for manual investigation.
  3. We (Fast) report the failure to the client.