Generally, campaigns are divided into two categories: "Earn Points" and "Redeem Points". "Earn Points" campaigns require users to complete tasks or missions according to the conditions of each campaign in order to receive points. "Redeem Points" campaigns require users to use their accumulated points to exchange for rewards. Typically, most campaigns are of the "Redeem Points" category, with different campaigns having different points values for rewards, or based on individual seller programs.
To redeem campaign rewards, users must first check the various campaign conditions and their rights regarding such rewards before redeeming them. If the isConditionPass value is false, check the conditionAlertID value to lock the redeem button or handle the message on the button, with each ID having a specific meaning as shown in the table below. If no prior check is performed, then the API will return the APIError value.
conditionAlertID | Description |
---|---|
1 | The number of users already has full privileges. |
2 | You have redeemed this campaign. |
3 | You have redeemed this campaign. |
1409 | This campaign has expired. |
1403 | Conditions do not match with what is specified. |
Example of a campaign detail: After receiving the campaign information, if the user wants to redeem a special reward for this campaign, they can do so by clicking on the "Redeem" button. A pop-up window will appear as shown in the UI image below for user verification before calling the API Redeem campaign.