Webhooks
agent_eta_updated
This event is triggered every time a driver's ETA is recalculated.
Specific Data for this message
JSON Field | Type | Description |
---|---|---|
account_uuid | string | Unique Store UUID. |
agent_uuid | string | The UUID of the driver |
agent_account_business_partners_external_identifier | string | The business's unique identifier (this can be customized via the Partner Portal) |
agent_account_partners_external_identifier | string | The store's unique identifier (this can be customized via the Partner Portal) |
agent_partner_data | hash | The driver's data on your system. |
eta_till_available | integer, unix timestamp | The ETA for when the driver is expected to become available. |
eta_arrive_at_home_hub | integer, unix timestamp | The ETA for when the driver is expected to return to hub (the store) |
calculated_at | integer, unix timestamp | The time the ETA was calculated |
published_at | integer, unix timestamp | The time the event occurred |
Example Webhook Payload
{
"data": {
"account_uuid": "73f5c9af9f75",
"agent_account_business_partners_external_identifier": "captain.test1.org",
"agent_account_partners_external_identifier": "webhook-driver-1-partners-external-identifier",
"agent_uuid": "7183cb9f1a63",
"agent_partners_external_identifier": "",
"agent_partner_data": {
"example": 456
},
"calculated_at": 1651154580,
"eta_till_available": 1651145338,
"eta_arrive_at_home_hub": 1651154580,
"published_at": 1651154580.747739
},
"environment": "production",
"event_name": "agent_eta_updated",
"created_at": "2022-03-31T02:47:08.935+00:00",
"event_uuid": "4e95d5af-5f3b-41e1-8b6f-624331c15a4e",
"metadata": {
"sent_at": "2022-03-31T02:47:08.957+00:00",
"delivery_attempt": 1
}
}