Search code examples
uber-api

UBER - Deleting or Cancelling Booking


I am Searching for finding a "curl" request for cancelling the current booking in UBER,

I have Gone through the following Official link but still i can't get it done.

The following is the code snippet given

I don't know what that -X means.

curl -H 'Authorization: Bearer <TOKEN>' \
     -H 'Accept-Language: en_US' \
     -H 'Content-Type: application/json' \
     -X DELETE \
     'https://api.uber.com/v1.2/requests/<REQUEST_ID>'

If any one can help me that would be great.


Solution

  • For deletion of submitted requests, please apply following endpoint

    DELETE https://sandbox-api.uber.com/v1.2/requests/{request_id}
    

    Using this call, you will delete specific request identified by {request_id}. Check the documentation for more info here.