Error Format
All API responses for errors adhere to the following JSON format:Error Codes
The following sections categorize error codes by their type.1. Authentication & Authorization Errors
These errors occur when authentication or authorization fails.2. Request Errors
These errors are related to malformed or invalid API requests.3. Resource Errors
These errors occur when accessing resources that do not exist or are unavailable.4. Payment Errors
These errors occur during payment operations.5. Server Errors
These errors indicate issues on the Kiotapay platform.HTTP Status Codes Overview
The following table summarizes the HTTP status codes used by the Kiotapay API:Handling Errors
When an error occurs, follow these steps to diagnose and resolve it:- Check the error code and message: Refer to the error tables above for guidance.
- Review the request: Ensure the request payload, headers, and parameters are correct.
- Consult the API documentation: Verify that you are using the correct endpoints and request formats.
- Retry if applicable: For temporary errors (e.g.,
SERVICE_UNAVAILABLE), retry the request after a short delay. - Contact support: If the issue persists, reach out to Kiotapay support with the error details.
Contact Support
For further assistance, please contact Kiotapay Support or visit our Developer Portal.This documentation is designed to help you effectively integrate with the Kiotapay API. By following these guidelines, you can handle errors efficiently and minimize downtime for your application.
