The API uses standard HTTP status codes and returns JSON error bodies.
The API returns errors in the following format:
The message field is always present. The errors object is optional and contains field-level validation details.
Your API keys are invalid, missing, or don’t match the same account/environment.
The provided parameters don’t pass validation. Check the errors object for specific details.
You tried to modify a checkout that has already been paid.
The requested resource doesn’t exist or doesn’t belong to your account.
Always check the HTTP status code before processing the response: