The Payment API uses the conventional HTTP status codes to indicate success or failure of an API request.

HTTP STATUS CODESDESCRIPTION
200-299The request was processed successfully.
400-499The request was not valid (e.g. a required parameter was missing).
500-599The request could not be processed for an unexpected reason.

The endpoints can return the following errors

HTTP STATUS CODESDESCRIPTION
200 OKThe request succeeded.
201 CreatedA POST request successfully created an object.
400 Bad RequestThe request is invalid.
401 UnauthorizedInvalid client credentials were passed in the Authorization header.
404 Not FoundThe resource with given identifier could not be found.
500 Internal Server ErrorWe had a problem with our server. Try again later.
503 Service UnavailableWe're temporarily offline for maintenance. Please try again later.