New to the community? Welcome! Please read our Community Rules and Guidelines
If you want to report illegal content under the EU Digital Services Act, please do so here
I am attempting to record an invoice payment as per
https://developer.paypal.com/docs/api/invoicing/#invoices_record-payment
In the documentation, the "date" is mentioned as being ISO8601 format, as per
https://tools.ietf.org/html/rfc3339#section-5.6
However, no correctly formatted ISO8601 formatted date is accepted.
Any attempt to use an ISO8601 formatted date receives the following error message: only date-time value with 'yyyy-MM-dd HH:mm:ss z' format is allowed. Atleast that clues me in that spaces are preferred over a "T" between the date and time.
However, using "Z" to indicate UTC timezone is not accepted.
Basically, the only date format accepted is a PST/PDT timezone offsetted date. A UTC date is not accepted. Not only that, the time zone portion must be either "PST" or "PDT", not "-7", "-8", etc. This does not adhere to the ISO8601 format which does not support timezone names, only offset values, according to the very docs your documentation links to.
Please update your REST API to support ISO8601 dates.
OR
Properly document the format of your accepted dates.