Loyalty Fuel CPL: Validation Rules
If any of the below validations fail, the API will return an HTTP-400 error.
error_code | Condition |
---|---|
SITE_CODE_NOT_FOUND | There is no site that matches the specified site_code. |
PRODUCT_CODE_NOT_FOUND | There is no product that matches the specified product_code. |
ACCOUNT_CODE_NOT_FOUND | There is no Loyalty Account that matches the specified loyalty_account_code. |
TRANSACTION_ID_NOT_FOUND | When a cpl_transaction_id passed to a reversal endpoint does not exist. |
TRANSACTION_TYPE_NOT_VALID | When a cpl_transaction_id passed to a reversal endpoint is not valid for this endpoint, i.e. a request to /spend/reversal where the given cpl_transaction_id is a save transaction. |
TRANSACTION_STATUS_NOT_VALID | When a cpl_transaction_id passed to a reversal endpoint is not valid to be reversed. |
CPL_EARNED_INVALID_ VALUE | The supplied CPL discount earned is non-zero and negative. Applicable to save endpoint only. |
INVALID_ORDER_BY | When the value supplied in the order_by property is not one in the acceptable enumeration list. |
INVALID_NUMBER_RANGE | If max_records or offset contain a value not within the acceptable range. |