You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

关于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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 09:08:16