Skip to main content
Kyren Pay uses conventional HTTP status codes to indicate the success or failure of an API request.

HTTP Status Codes

Error Response Format

When an error occurs, the response body contains a JSON object with the following structure:
The error object is only present for validation errors (400). Other error types only include code and message.

Common Errors

400 Bad Request

Returned when the request body or parameters are invalid.

401 Unauthorized

Returned when the API key is missing or invalid.

404 Not Found

Returned when the requested resource does not exist.

429 Too Many Requests

Returned when you exceed the API rate limit (100 requests per minute).
Implement exponential backoff in your integration to handle rate limiting gracefully.

Success Response Format

Successful responses always include code: 0 and message: "success":
For paginated endpoints, the data field contains items and pagination: