Uber REST API Request to Get Sandbox Currency

When I try to request a check for a sandbox ride, the response seems to always return as $ 9. Amount I'm not too worried about, but currency is problematic. The request is made through an API (sandbox) and both the estimate and the actual ride request return local currency fare amounts that may or may not be USD. Is there a way to get a receipt also in local currency?

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

I am testing API version v1.2

+3


source to share


2 answers


Well, it definitely seems like the sandbox receipt just isn't working as expected. When I make a request live and then receive a receipt for the request after completing the trip, I will also receive free local currency on the receipt.



0


source


Well, obviously, from the site you listed, the currency is automatically adjusted in place:

Currency

The currency is returned as the local currency for the given latitude and longitude. The fare in San Francisco will be displayed in US dollars and the fare in Paris will be displayed in euros. We also provide ISO 4217 currency code for your own conversions.



I mean https://developer.uber.com/docs/riders/guides/localization .

+2


source







All Articles