PayPal API中日期的正确格式

时间:2018-02-19 18:49:05

标签: paypal paypal-sandbox paypal-rest-sdk

我称之为Sync API:

url = 'https://api.sandbox.paypal.com/v1/reporting/transactions?start_date=2018-01-02&end_date=2018-02-02' 并返回以下错误: {"name":"INVALID_REQUEST","debug_id":"f1274e478292e","message":"Invalid request - see details.","details":[{"field":"start_date","value":"2018-01-02","location":"query","issue":"Invalid date passed"}]} start_date的正确格式是什么?

1 个答案:

答案 0 :(得分:0)

它应采用以下格式:

2018-02-01T00:00:00Z

然后就可以了。