API Reference
Log in
API Reference

Errors

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

Common Status Code Ranges:​

  • ​​2xx​​: Indicates success.
  • 4xx​​: Indicates client-side errors (e.g., missing required parameters, payment decline, invalid request format).
  • ​​5xx​​: Indicates an error occurred on the Subotiz server during processing.

Error Format

When a request fails, error details are returned in a fixed structured format:

ParameterTypeDescription
codestringBusiness error code
messagestringReason for the error