Error codes
Every error returned by the AKIN Travel partner API carries an extensions.code value. Use the code for programmatic handling; the message field is a human-readable fallback and may change. The list below is generated from ApiErrorCode in the API source.
Authentication & Authorization
| Code | Description |
|---|---|
AUTH_REQUIRED | Auth required |
ACCESS_DENIED | Access denied |
PERMISSION_DENIED | Permission denied |
INVALID_TOKEN | Invalid token |
TOKEN_EXPIRED | Token expired |
Not Found
| Code | Description |
|---|---|
NOT_FOUND | Not found |
MEMBER_NOT_FOUND | Member not found |
BOOKING_NOT_FOUND | Booking not found |
PROPERTY_NOT_FOUND | Property not found |
PARTNER_NOT_FOUND | Partner not found |
REWARD_NOT_FOUND | Reward not found |
USER_NOT_FOUND | User not found |
PERK_NOT_FOUND | Perk not found |
Validation
| Code | Description |
|---|---|
VALIDATION_ERROR | Validation error |
INVALID_INPUT | Invalid input |
DUPLICATE_ENTRY | Duplicate entry |
INVALID_STATUS | Invalid status |
INVALID_DATE | Invalid date |
CAPTCHA_FAILED | Captcha failed |
Business Logic
| Code | Description |
|---|---|
OPERATION_FAILED | Operation failed |
ALREADY_EXISTS | Already exists |
NOT_ALLOWED | Not allowed |
LIMIT_EXCEEDED | Limit exceeded |
message substring instead would break the moment the copy is reworded.
| Code | Description |
|---|---|
REWARD_NOT_ELIGIBLE_FOR_TIER | Reward not eligible for tier |
REWARD_LIMIT_REACHED | Reward limit reached |
Internal
| Code | Description |
|---|---|
INTERNAL_ERROR | Internal error |
SERVICE_UNAVAILABLE | Service unavailable |
EXTERNAL_SERVICE_ERROR | External service error |
Last updated on