Skip to main content
PayNext Billing APIs use standard HTTP status codes to indicate the outcome of each request:
  • 2xx — Success
  • 4xx — Client errors (missing parameters, invalid input, authentication issues)
  • 5xx — Server errors (rare)

HTTP Status Codes

Always check the HTTP status code and handle errors gracefully in your application.

Error Response Format

All error responses share a consistent structure:
Fields may expand in the future (for example, error codes or subfields for validation errors).
Your integration should always parse the error.message field at a minimum.