Uber REST API 请求收据沙盒货币

Uber REST API request receipt sandbox currency

当我尝试索取沙盒行程收据时,回复似乎总是 9 美元。金额我不太在意,但货币是有问题的。该请求是通过 API(沙盒)提出的,估计和实际乘车请求都 return 以当地货币表示的车费金额,可能是也可能不是美元。有没有办法以当地货币获得收据?

这只是沙盒实施中的遗漏,还是收据在生产中也会以美元计价API?除了请求 ID (https://developer.uber.com/docs/riders/references/api/v1.2/requests-request_id-receipt-get)

之外,文档没有提及接收端点的任何参数

我正在使用 API 版本 v1.2

进行测试

好吧,显然从您提供的网站来看,货币会自动调整到位置:

Currency

Currency is returned as the local currency of a given latitude & longitude. A fare estimate in San Francisco will be given in USD, while a fare estimate in Paris will be displayed in EUR. We also provide the ISO 4217 currency code for your own conversions.

我指的是 https://developer.uber.com/docs/riders/guides/localization

好吧,沙盒收据似乎确实无法正常工作。当我实时发出请求并在乘车完成后获取请求的收据时,我也会在收据上获得例外的当地货币。