Errors
The Afterpay API uses conventional HTTP response codes to indicate success or failure of an API request.
In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that resulted from the provided information (e.g. a required parameter was missing), and codes in the 5xx range indicate an error with the Afterpay servers.
Response
Returns a JSON response and appropriate HTTP status code. The JSON body object will contain the following four properties.