Home
Loyalty API

Status Codes

The HTTP status codes and error codes returned by the Loyalty API.

Loyalty API responses use the following HTTP status codes:

CodeTitleDescription
200OKThe request was processed. Check the error code, since many errors are returned with this status.
400Bad RequestThe request is invalid.
401UnauthorizedThe API credentials are invalid.
404Not FoundThe resource doesn't exist.
429Too Many RequestsA rate limit was exceeded.
500Internal Server ErrorAn error occurred on our side.
503Service UnavailableThe API is temporarily unavailable.

Error codes

When a request fails, the response includes an error code that identifies the problem. Many of these errors are returned with a 200 status, so don't rely on the status code alone.

StatusError codeMessage
200AUTO_REDEEMABLE_REWARDCannot redeem auto redeemable reward via API.
200DUPLICATE_ORDER_IDLoyalty Points already awarded for the Order ID.
200EXCLUDED_TRANSACTIONPoints could not be awarded because exclusion rule was applied.
200INACTIVE_REWARDThis reward is inactive and cannot be redeemed.
200INCORRECT_MEMBER_ID_PASSEDIncorrect Member ID passed.
200INSUFFICIENT_REDEEMABLE_POINTSUser points balance insufficient.
200INVALID_AMOUNT_TO_DEDUCTNot enough points to deduct.
200INVALID_MEMBERMember does not exist.
200INVALID_MEMBER_STATUSInvalid member status.
200INVALID_PHOTOInvalid file type or file size. Please make sure uploaded file type is JPG, JPEG, or PNG. and file size should be less than 10MB.
200INVALID_PRODUCT_IDIncorrect product id passed.
200INVALID_REWARD_FOR_TIERThis reward is not valid for user tier.
200INVALID_REWARD_FOR_USERThis reward is not valid for the user.
200MAX_AWARDS_EXCEEDEDMaximum award limit exceeded.
200MAX_REWARDS_EXCEEDEDMaximum redemption threshold for reward reached.
200MEMBER_BLOCKEDMember has been blocked.
200MEMBER_CREATION_UNSUCCESSFULMember creation unsuccessful.
200MEMBER_DELETEDMember record has been deleted.
200MEMBER_ID_ALREADY_IN_USEMember ID already in use.
200ORDER_NOT_EXISTOrder with this id does not exist.
200PAUSED_ACTIVITYActivity is in paused state.
200PRODUCT_ID_AND_RETURN_AMOUNT_PASSEDPlease pass either returned product id or returned amount.
200PRODUCT_QUANTITY_EXCEEDEDReturned product quantity exceeds order quantity.
200RETURN_VALUE_EXCEEDS_AVAILABLE_BALANCEReturned order value exceeds user's points balance.
200STORE_INACTIVEStore is not active.
200TRANSACTION_ATTRIBUTE_NOT_UNIQUEUnique transaction attribute for given activity is not unique.
200UNABLE_TO_UPLOAD_PHOTOUnable to upload the photo. Please try again later.
400ATTRIBUTE_NOT_UNIQUEIdParams name passed is not a unique attribute.
400ID_PARAM_NAME_NOT_FOUNDIdParams name passed does not exist.
400INVALID_CURSORInvalid start cursor provided.
400INVALID_JSONInvalid JSON format.
400INVALID_REQUESTInvalid request: unsupported Content-Type [content-type].
400INVALID_REQUEST_PARAMETER_VALUESInvalid request parameter value.
400MERCHANT_DOES_NOT_EXISTMerchant does not exist.
401ERROR_UNAUTHORIZEDSome error occurred while authenticating your account at TrueLoyal. Please verify your API credentials.
404TRANSACTION_DOES_NOT_EXISTTransaction does not exist.
429RATE_LIMIT_EXCEEDEDRate limit exceeded.
500INTERNAL_SERVER_ERRORInternal server error.
503SERVICE_UNAVAILABLEAPI Service is unavailable. Please contact TrueLoyal support.