Search code examples
uber-api

Uber REST API request receipt sandbox currency


When I try to request a receipt for a ride in sandbox, the response seems to always come back as 9 USD. The amount I don't care too much about, but the currency is problematic. The request is made through the API (sandbox), and both estimate and actual ride request return the fare amounts in the local currency which might or might not be USD. Is there way to get the receipt also in local currency?

And is this just an omission in the sandbox implementation or will the receipt also be in USD in production API? The documentation does not mention any parameters for the receipt endpoint other than the request id (https://developer.uber.com/docs/riders/references/api/v1.2/requests-request_id-receipt-get)

I'm testing with API version v1.2


Solution

  • Well, definitely seems like the sandbox receipt is just not working properly. When I do a request live and then fetch the receipt for the request after ride has completed, I will get the excepted local currency also on the receipt.