TransportProviderPositionUpdate
POSThttps://<3P_WEBHOOK_URI>¶ Description
This webhook delivers updates for the transport provider (driver) assigned to an order, including the driver’s upcoming waypoints and, for partners with position data, the driver’s current position. Sent whenever the driver’s route plan is updated.
¶ Webhook Developer UUID
v1-rides-tp-position-updates
¶ Request Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| transport_provider_id | UUID | Obfuscated unique identifier of the transport provider (driver). | Y |
| transport_provider_waypoints | array<TransportProviderWaypoint> | The upcoming waypoints of the transport provider’s route, up to and including the last waypoint that belongs to your application. | Y |
| transport_provider_position | TransportProviderPosition | The current position of the transport provider. Only included for partners with position data. | N |
| source_type | enum | The type of third-party source the trip was requested from. Valid values: careem, alexa, alexa_headless, guest, business. |
Y |
| webhook_meta | WebhookMeta | The object containing additional information that is specific to the webhook. | Y |
A field with no value is omitted from the JSON; it is not sent as null.
¶ Example Request
The first waypoint does not belong to an order created by the partner, so waypoint_type, order_id and requester_id are omitted from it.
{
"source_type": "business",
"transport_provider_id": "5d3c1b2a-8e4f-4a6b-9c7d-0e1f2a3b4c5d",
"transport_provider_waypoints": [
{
"distance_in_meters": 480.2,
"eta_in_seconds": 95,
"is_external_order": true,
"waypoint_id": "0f8fad5b-d9cb-469f-a165-70867728950e",
"waypoint_location": {
"latitude": 37.7793,
"longitude": -122.4193
}
},
{
"distance_in_meters": 1620.7,
"eta_in_seconds": 310,
"is_external_order": false,
"order_id": "550e8400-e29b-41d4-a716-446655440000",
"requester_id": "8OIs2b_3TPWcDjYG4RlXfwiUyk4T_cvMWioitg5zTtzlNtkty7tnxRvqVkY3tGaEztn8qoEjdtE5Obm3Dzcvn90CDPZkWWAnoFrckYFHaSYip8tKj0IbKgyj1TD3Y_KBeQ==",
"waypoint_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"waypoint_location": {
"latitude": 37.785,
"longitude": -122.406
},
"waypoint_type": "WAYPOINT_TYPE_PICKUP"
},
{
"distance_in_meters": 4210.9,
"eta_in_seconds": 905,
"is_external_order": false,
"order_id": "550e8400-e29b-41d4-a716-446655440000",
"requester_id": "8OIs2b_3TPWcDjYG4RlXfwiUyk4T_cvMWioitg5zTtzlNtkty7tnxRvqVkY3tGaEztn8qoEjdtE5Obm3Dzcvn90CDPZkWWAnoFrckYFHaSYip8tKj0IbKgyj1TD3Y_KBeQ==",
"waypoint_id": "9b2e7f4c-3a1d-4c8e-b5a6-2d4f6a8c0e1b",
"waypoint_location": {
"latitude": 37.791,
"longitude": -122.394
},
"waypoint_type": "WAYPOINT_TYPE_DROPOFF"
}
],
"webhook_meta": {
"client_id": "EXAMPLE_CLIENT_ID_0123456789abcdef",
"webhook_config_id": "rides-demand-gateway.ep-webhook-v2-transport-provider-position-update",
"webhook_msg_timestamp": 1700000000,
"webhook_msg_uuid": "3f6c1a8e-7b2d-4e95-a1c3-8d5e9f0b2a47"
}
}