- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've been using the PHP REST API to make billing agreements for a couple years now and today attempts at creating new billing agreements throws a 400 error claiming there is an issue with the start date. The start date is being set to the first of next month ('2020-09-01T0:00:00Z'), so I'm not sure why I'd be receiving this error especially since this code has been in working order for a while now.
PayPal\Core\PayPalHttpConnection : ERROR: Got Http response code 400 when accessing https://api.paypal.com/v1/payments/billing-agreements/.
{
"name":"VALIDATION_ERROR",
"debug_id":"fc5953876ac84",
"message":"Invalid request. See details.",
"information_link":"https://developer.paypal.com/docs/api/payments.billing-agreements#errors",
"details":[
{
"field":"start_date",
"issue":"Agreement start date is required, should be valid and greater than the current date. Should be consistent with ISO 8601 Format"
}
]}
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fixed. I had to add an extra 0 which I've never needed the past two years.
2020-09-01T0:00:00Z -> 2020-09-01T00:00:00Z
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fixed. I had to add an extra 0 which I've never needed the past two years.
2020-09-01T0:00:00Z -> 2020-09-01T00:00:00Z

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- How to integrate PayPal during user signup to avoid re-entering credentials for future payments? in REST APIs
- subscription_id has disappeared in REST APIs
- Why does PayPal redirect to different pages (login vs credit card form) depending on browser mode? in Braintree Server-side Integration (PHP, Java, .NET, Ruby, Python, NodeJS SDKs)
- Getting an error when calling API endpoint for Create Billing Agreement Token V1 in Sandbox Environment
- This merchant account is not permitted to create Merchant Initiated Billing Agreement in PayPal Payments Standard