Errors
The Afterpay API uses the conventional HTTP status codes to indicate success or failure of an API request.
Response
Returns a JSON object and an appropriate HTTP status code.
Please note that the human-readable textual messages included within the error object are improved over time. For validation and mapping purposes, please use the error code or HTTP status code values.
Attribute
If you intend to contact Afterpay about an unexpected API response, please make sure you record the raw headers & body from your request, along with the raw headers & body received in response.