Errors
The Clearpay API uses conventional HTTP status codes and returns error responses in JSON format.
HTTP status codes
Error fields
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.
Example errors
GET requests
With the exception of Ping, which doesn’t require authentication, all GET endpoints can return the following errors:
POST / PUT requests
All PUT and POST endpoints can return any of the following errors: