In addition to the GET Errors applicable to all GET endpoints, the following errors are specific to List Payments:
|HTTP Status Code||errorCode||Description|
|An invalid query param was provided.|
For example, a value for
Internal Server Error
|This is usually caused by sending a |
Also, for the array parameters (
The request that is automatically generated by Readme appears as though it URL-encodes the Query Params. However, the request that is actually delivered to Clearpay when clicking the "Try It" button does not include any URL-encoding.
Please specifically replace "+" characters with "%2b" when testing a
toCreatedDatewith a timezone ahead of UTC.
curl https://global-api.afterpay.com/v2/payments?fromCreatedDate=2019-01-01T09:00:00.000%2b01:00&toCreatedDate=2019-01-01T17:00:00.000%2b01:00 \ -H 'Authorization: Basic <Base64EncodedCredentials>' \ -H 'User-Agent: <MyUserAgent>' \ -H 'Accept: application/json'
curl https://api.eu-sandbox.afterpay.com/v2/payments?tokens=abcdefgh&tokens=ijklmnop \ -H 'Authorization: Basic <Base64EncodedCredentials>' \ -H 'User-Agent: <MyUserAgent>' \ -H 'Accept: application/json'