Skip to main content
OwnPay API returns consistent error responses across all endpoints.

Error response format

HTTP status codes

Common error codes

Authentication errors

Payment errors

Resource errors

Webhook errors

Handling errors

Best practices

  1. Check the success field first
  2. Use the error.code for programmatic handling
  3. Display error.message to users (it’s human-readable)
  4. Implement retry logic for 5xx errors
  5. Log all errors for debugging

Example error handling

Last modified on July 15, 2026