我调用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 的正确格式是什么?
它应该采用以下格式:
2018-02-01T00:00:00Z
然后就可以了。
对于想要使用 UTC 以外的其他时区的人(特别是具有正偏移量):
+ sign
在查询字符串中具有语义含义。它用来表示一个空间。如果您想在路线中使用实际的加号,则必须使用 %2B
之类的
2023-10-01T00:00:00%2B01:00
六级考试。