Cancel Guest Trip
DELETEhttps://api.uber.com/v1/guests/trips/{request_id}¶ Use case
Use this endpoint to cancel a trip.
If the request is from a third party (3P) app, please add x-uber-organizationuuid header and the Organization UUID as the value or the request will be denied.
¶ Authorization
OAuth 2.0 Bearer token with the guests.trips scope.
¶ Request
¶ Example request
curl -X DELETE \
  -H "authorization: Bearer <access_token>" \
  'https://api.uber.com/v1/guests/trips/<request_id>'
¶ Request URL parameters
| URL parameter | Type | Description | 
|---|---|---|
| request_id | string | The unique ID of the trip request. | 
¶ Response
¶ Example response
Status-code: 204 No Content
¶ Endpoint Possible Errors
| HTTP Status | Code | Description | 
|---|---|---|
| 400 | validation_failed | This error occurs when an incorrect or invalid request_id is provided in the request path. Please use a valid request_id to avoid this error. | 
| 401 | unauthorized | Authorization failed. The client lacks valid auth credentials for the requested resource. | 
| 403 | forbidden | The client does not have permission to access the requested resource. | 
| 404 | not_found | The requested resource or entity could not be found on the server. | 
| 500 | internal_server_error | An unexpected error occurred on the server while processing the request. |