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 |
the SET it would produce was not, and the remediation is a different click.
| Code | Description |
|---|---|
RATE_PAIR_INVARIANT | Rate pair invariant |
properties so the ladder editor can say which.
| Code | Description |
|---|---|
TIER_RUNG_LIVE | Tier rung live |
named neither the reason nor the line.
| Code | Description |
|---|---|
CHECKOUT_LINE_REJECTED | Checkout line rejected |
to remove (the notice #5821 already renders for this code).
| Code | Description |
|---|---|
CHECKOUT_MODEL_UNAVAILABLE | Checkout model unavailable |
field in extensions.context.failures.
| Code | Description |
|---|---|
STORY_CHECKLIST_VIOLATION | Story checklist violation |
REQUIRED means a version is missing. The English message is unchanged.
| Code | Description |
|---|---|
LEGAL_ACCEPTANCE_REQUIRED | Legal acceptance required |
LEGAL_VERSION_STALE | Legal version stale |
Internal
| Code | Description |
|---|---|
INTERNAL_ERROR | Internal error |
SERVICE_UNAVAILABLE | Service unavailable |
EXTERNAL_SERVICE_ERROR | External service error |