Android
10. Redeem MyReward
This function Goodie.voucherUsage() is used to redeem your reward (You can get reward from redeeming your points).
Here is example:
Goodie.setVoucherRedeem(authToken, deviceUniqueId, memberId, 
    merchantId, storeId, voucherBalanceId)
    .voucherRedeemGoodie(this, new SetVoucherUsageListener() {
        
        @Override
        public void onSuccess(VoucherUsageResponse resp) {
        if (resp.getAbstractResponse().getResponseStatus().equals("INQ001")) {
  
        // On Success
        }
        @Override
        public void onError(Throwable throwable) {
        // On Failure
        }
});
                    
                                    Where :
| Param | Type | Description | 
|---|---|---|
| authToken | String | authToken is used as for header authentication purpose | 
| deviceUniqueId | String | deviceUniqueId is identify android device | 
| memberId | String | memberId is identifier that will be used to identity a member | 
| merchantId | String | merchantId is identifier that will be used to identity a merchant | 
| voucherBalanceId | String | It is used for identified voucher (Voucher Unique Id) | 
| storeId | String | storeId is an unique id to identify specific store | 
Response Redeem MyReward :
{
        "memberId": "7E711A24-B85D-4106-B283-47F057D1B300",
        "merchantId": "5F773EA1-1E66-4F9E-B9C8-E1FA8156AD20",
        "abstractResponse": {
        "responseStatus": "INQ001",
        "responseMessage": "Posting success"
    }
}