Uber · Schema
Uber Ride Request
Schema for an Uber ride request object.
Ride-SharingRidesTaxisTransportationFood DeliveryDeliveryLogistics
Properties
| Name | Type | Description |
|---|---|---|
| product_id | string | The unique ID of the Uber product to request. |
| start_latitude | number | Pickup location latitude. |
| start_longitude | number | Pickup location longitude. |
| end_latitude | number | Dropoff location latitude. |
| end_longitude | number | Dropoff location longitude. |
| fare_id | string | Upfront fare ID from a prior estimate call. |
| surge_confirmation_id | string | Surge confirmation ID if user has confirmed surge pricing. |
| payment_method_id | string | Unique identifier of the selected payment method. |
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/api-evangelist/uber/blob/main/json-schema/uber-ride-request-schema.json",
"title": "Uber Ride Request",
"description": "Schema for an Uber ride request object.",
"type": "object",
"required": ["product_id", "start_latitude", "start_longitude"],
"properties": {
"product_id": {
"type": "string",
"description": "The unique ID of the Uber product to request."
},
"start_latitude": {
"type": "number",
"format": "double",
"description": "Pickup location latitude."
},
"start_longitude": {
"type": "number",
"format": "double",
"description": "Pickup location longitude."
},
"end_latitude": {
"type": "number",
"format": "double",
"description": "Dropoff location latitude."
},
"end_longitude": {
"type": "number",
"format": "double",
"description": "Dropoff location longitude."
},
"fare_id": {
"type": "string",
"description": "Upfront fare ID from a prior estimate call."
},
"surge_confirmation_id": {
"type": "string",
"description": "Surge confirmation ID if user has confirmed surge pricing."
},
"payment_method_id": {
"type": "string",
"description": "Unique identifier of the selected payment method."
}
},
"additionalProperties": false
}