Vendor API Error Codes Guide Added
An Error Codes page has been added to the Vendor API development guide.
When a vendor receives an API request from ONDA (ONDA Hub) and fails to process it, the vendor must respond using the standard error format defined on this page.
Key Contents
Error Response Format
{
"code": "4000",
"error": "No rooms available for booking"
}
Both code and error are required, and error must use the defined English message exactly as written.
Error Code List
Twelve error codes are defined, grouped by category.
| Category | Code Range |
|---|---|
| SYSTEM_ERROR | 1000 |
| AUTH_ERROR | 2000 |
| VALIDATION_ERROR | 3000 |
| BUSINESS_ERROR | 4000 – 4007 |
| UNKNOWN_ERROR | 9999 |
BUSINESS_ERROR codes are documented together with their related endpoints (Create Reservation, Check Reservation, Cancel Reservation, Confirm Reservation), so it is clear which code to return in each situation.
For details, see the Error Codes guide.
Contact
If you have any questions about API integration, please feel free to contact us:
- Technical Support: techsupport@onda.me