Learn how to handle errors and troubleshoot issues with the Loyalty.lt API
Code | Status | Description |
---|---|---|
200 | OK | Request succeeded |
201 | Created | Resource was successfully created |
202 | Accepted | Request accepted for processing |
204 | No Content | Request succeeded with no response body |
Code | Status | Description |
---|---|---|
500 | Internal Server Error | Something went wrong on our end |
502 | Bad Gateway | Invalid response from upstream server |
503 | Service Unavailable | Service temporarily overloaded or down |
504 | Gateway Timeout | Request timed out |
INVALID_CREDENTIALS
- API key or secret is invalidEXPIRED_TOKEN
- JWT token has expiredMISSING_AUTHENTICATION
- No authentication providedINVALID_TOKEN_FORMAT
- Malformed JWT tokenINSUFFICIENT_PERMISSIONS
- Lacking required permissionsACCESS_DENIED
- Resource access deniedIP_NOT_WHITELISTED
- IP address not allowedSCOPE_INSUFFICIENT
- API key scope limitationsREQUIRED_FIELD
- Required field is missingINVALID_VALUE
- Field value is invalidDUPLICATE_VALUE
- Value already existsINVALID_FORMAT
- Field format is incorrectOUT_OF_RANGE
- Value outside allowed rangeINSUFFICIENT_BALANCE
- Not enough points/creditsRESOURCE_NOT_FOUND
- Requested resource doesn’t existINVALID_STATE
- Operation not allowed in current stateQUOTA_EXCEEDED
- Usage quota exceededEXPIRED_OFFER
- Offer or coupon has expiredRATE_LIMIT_EXCEEDED
- Too many requestsDAILY_QUOTA_EXCEEDED
- Daily API quota reachedCONCURRENT_LIMIT_EXCEEDED
- Too many concurrent requestsrequest_id
when contacting support for faster resolution.