Models
¶ WebhookMeta
The WebhookMeta object contains additional information that is specific to the webhook. It is included in every webhook request as webhook_meta.
| Name | Type | Description | Required |
|---|---|---|---|
| client_id | string | Client ID for the developer. | Y |
| webhook_config_id | string | Unique identifier of the webhook type. | Y |
| webhook_msg_timestamp | integer | Unix timestamp of the time the webhook event was pushed. | Y |
| webhook_msg_uuid | string | Unique identifier, which can be used to ensure that the webhooks are digested only once. | Y |
Example:
{
"client_id": "EXAMPLE_CLIENT_ID_0123456789abcdef",
"webhook_config_id": "rides-demand-gateway.ep-webhook-v1-state-change-notification",
"webhook_msg_timestamp": 1700000000,
"webhook_msg_uuid": "3f6c1a8e-7b2d-4e95-a1c3-8d5e9f0b2a47"
}
¶ WaypointLocation
The WaypointLocation object contains the geographic coordinates of a waypoint. It is sent as waypoint_location on each TransportProviderWaypoint.
When no coordinates are available for the waypoint, latitude and longitude fall back to 0.0 / 0.0.
| Name | Type | Description | Required |
|---|---|---|---|
| latitude | double | The latitude of the waypoint. | Y |
| longitude | double | The longitude of the waypoint. | Y |
Example:
{
"latitude": 37.785,
"longitude": -122.406
}
¶ TransportProviderWaypoint
The TransportProviderWaypoint object represents one upcoming waypoint on the transport provider’s (driver’s) route. It is sent in the transport_provider_waypoints array of the TransportProviderPositionUpdate webhook.
A field with no value is omitted from the JSON; it is not sent as null.
| Name | Type | Description | Required |
|---|---|---|---|
| waypoint_id | UUID | The id of the waypoint. | Y |
| waypoint_type | enum | The type of the waypoint. See WaypointType. Omitted when is_external_order is true. |
N |
| waypoint_location | WaypointLocation | The location of the waypoint. Falls back to 0.0 / 0.0 when no coordinates are available. |
Y |
| order_id | UUID | The id of the Order the waypoint belongs to. Omitted when is_external_order is true or when not available. |
N |
| requester_id | string | The id of the customer who requested the Order. Omitted when is_external_order is true or when not available. For alexa, alexa_headless, guest and business sources the value is encrypted and returned as a Base64 URL-encoded string instead of the plain id. |
N |
| is_external_order | boolean | true when the waypoint does not belong to an order created by your application. When true, waypoint_type, order_id and requester_id are omitted. |
Y |
| distance_in_meters | double | Distance in meters along the planned route from the driver’s current position to this waypoint, including any waypoints before it. | Y |
| eta_in_seconds | integer | Estimated seconds from the driver’s current position until arrival at this waypoint, including travel and stop time at any waypoints before it. | Y |
| encoded_polyline | string | The Base64-encoded polyline of the route line for this waypoint. Only included for partners with position data. | N |
¶ WaypointType
| Value | Description |
|---|---|
WAYPOINT_TYPE_PICKUP |
Something is picked up at the waypoint (for Rides, the rider). |
WAYPOINT_TYPE_DROPOFF |
Something is dropped off at the waypoint. |
WAYPOINT_TYPE_VIA |
A stop the route must go through that is not a pickup or dropoff, such as a stop the rider added. |
WAYPOINT_TYPE_ROUTE_GUIDE |
A hint to steer the route along a path. It can be skipped when the driver re-routes. |
WAYPOINT_TYPE_OFF_TRIP |
An off-trip session, for example a destination the driver picked while off trip. |
Example:
{
"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"
}
¶ Point
The Point object represents a geographic point. It is sent as point inside TransportProviderPosition and describes the transport provider’s current position.
A field with no value is omitted from the JSON; it is not sent as null.
| Name | Type | Description | Required |
|---|---|---|---|
| latitude | double | The latitude of the transport provider’s current position. Omitted when not available. | N |
| longitude | double | The longitude of the transport provider’s current position. Omitted when not available. | N |
| altitude | double | The altitude of the transport provider’s current position, in meters. Omitted when not available. | N |
Example:
{
"latitude": 37.7793,
"longitude": -122.4193,
"altitude": 12.5
}
¶ TransportProviderPosition
The TransportProviderPosition object represents the current position of the transport provider (driver). It is sent as transport_provider_position in the TransportProviderPositionUpdate webhook, and only for partners with position data.
A field with no value is omitted from the JSON; it is not sent as null.
| Name | Type | Description | Required |
|---|---|---|---|
| point | Point | The geographic point of the transport provider’s current position. Always present when transport_provider_position is present. |
Y |
| horizontal_accuracy | double | The horizontal accuracy of the position, in meters. Omitted when not available. | N |
| vertical_accuracy | double | The vertical accuracy of the position, in meters. Omitted when not available. | N |
| course | double | The course (direction of travel) of the transport provider, in degrees. Omitted when not available. | N |
| speed | double | The speed of the transport provider, in meters per second. Omitted when not available. | N |
| course_accuracy | double | The accuracy of the course, in degrees. Omitted when not available. | N |
| speed_accuracy | double | The accuracy of the speed, in meters per second. Omitted when not available. | N |
| measured_at | UnixTimeMillis | The device timestamp at which the position was measured. Omitted when not available. | N |
Example:
{
"point": {
"latitude": 37.7793,
"longitude": -122.4193,
"altitude": 12.5
},
"horizontal_accuracy": 5.0,
"vertical_accuracy": 3.0,
"course": 90.0,
"speed": 8.3,
"course_accuracy": 10.0,
"speed_accuracy": 0.5,
"measured_at": 1700000000000
}