关于PayPal Sync API中start_date参数正确格式的咨询
Fixing the Invalid
start_date Format in PayPal Sync API Got it, let's break down why you're hitting that INVALID_REQUEST error with your start_date parameter.
PayPal's Reporting Transactions API requires ISO 8601-compliant date-time formats for both start_date and end_date—you can't just pass a plain YYYY-MM-DD string. The API needs a clear temporal boundary, which means including a time component, preferably in UTC (marked with a Z suffix).
Correct Format Examples:
- UTC start of the target day:
2018-01-02T00:00:00Z - Specific time with a timezone offset (e.g., GMT+8):
2018-01-02T09:30:00+08:00
Updated Request URL:
url = 'https://api.sandbox.paypal.com/v1/reporting/transactions?start_date=2018-01-02T00:00:00Z&end_date=2018-02-02T23:59:59Z'
A quick tip: For end_date, setting it to 23:59:59Z on the last day ensures you capture all transactions from that entire day, avoiding any gaps in your reporting.
内容的提问来源于stack exchange,提问作者Philipp Chapkovski
相关产品推荐
相关产品推荐

