StateChangeNotification
POSThttps://<3P_WEBHOOK_URI>¶ Description
This webhook notifies 3P of any state change in an active order (an order in a non-terminal state). Upon receiving this webhook, 3P is expected to make a GetOrder call to fetch the latest order state data.
¶ Webhook Developer UUID
v1-rides-state-changes
¶ Request Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| order_id | UUID | The id of the Order. | Y |
| requester_id | string | The id of the customer who requested the Order. For alexa, alexa_headless, perplexity, guest and business sources the value is encrypted and returned as a Base64 URL-encoded string instead of the plain id. |
Y |
| state_changed_at | string | The timestamp at which the state change was committed in Uber. This is an ever-increasing number; you can safely discard this event if this timestamp is less than what you have seen previously. | Y |
| source_type | enum | The type of third-party source the trip was requested from. Valid values: careem, alexa, alexa_headless, guest, business, perplexity. |
Y |
| webhook_meta | WebhookMeta | The object containing additional information that is specific to the webhook. | Y |
¶ Example Request
{
"order_id": "550e8400-e29b-41d4-a716-446655440000",
"requester_id": "8OIs2b_3TPWcDjYG4RlXfwiUyk4T_cvMWioitg5zTtzlNtkty7tnxRvqVkY3tGaEztn8qoEjdtE5Obm3Dzcvn90CDPZkWWAnoFrckYFHaSYip8tKj0IbKgyj1TD3Y_KBeQ==",
"state_changed_at": "1700000000000",
"source_type": "business",
"webhook_meta": {
"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"
}
}