Dante Miranda
Dante Miranda

Reputation: 1

Get forbidden when try query request receipt

I have a app on uber with request_receipt scope avaiable

But when i trying to get a request receipt with a token created in my app i got Forbidden error.

Others endpoints (map, product, history...) are ok.

My authentication request is fine too and return:

{
  "expires_in"=>2592000, 
  "token_type"=>"Bearer", 
  "refresh_token"=>"[...]", 
  "last_authenticated"=>0, 
  "scope"=>"history profile history_lite places ride_widgets all_trips request_receipt", 
  "user_id"=>"[...]"
}

I made this requests on app and get same error.

Upvotes: 0

Views: 60

Answers (1)

Alexander Graebe
Alexander Graebe

Reputation: 797

You can only access trips that were initiated through your own Uber integration. For instance, if you book a ride through the Uber app and take that request id, you won't be able to access the details of that ride. Here's what the docs state:

The receipt endpoint will only provide receipts for ride requests originating from your application. It is not currently possibly to receive receipt data for all trips.

Upvotes: 1

Related Questions