API
7. Reward Redeem
Description : Reward Redeem API is used to get favorite member’s reward (change from point to reward).URL : https://sandbox.goodie.id/api-rest/point-transaction/redemption/reward/redeem
Method : POST
Header :
No | Key | Value | Requirement | Description |
---|---|---|---|---|
1 | Content-type | application/x-www-form-urlencoded | M | Security Header |
2 | authToken | String | M | authentication |
3 | deviceUniqueId | String | M | Device Id |
Body :
No | Parameter | Value | Requirement | Description |
---|---|---|---|---|
1 | memberId | String | M | Member’s id |
2 | merchantId | String | M | Id of the merchant |
3 | rewards | |||
4 | quantity | Integer | M | Reward’s quantity |
5 | rewardId | String | M | Reward’s id |
JSON Format :
Response :
No | Parameter | Value | Description |
---|---|---|---|
1 | rewardRedemption | ||
2 | detailResponse | ||
3 | detailResponseId | String | Reward detail response id |
4 | detailResponseMessage | string | Reward detail response message |
5 | rewardId | String/td> | Reward’s id |
6 | rewardCode | String | Reward’s code |
7 | rewardName | String | Reward’s name |
8 | pointUsed | Integer | Point’s reward |
9 | productType | Integer | Reward’s product type |
10 | productTypeDescription | String | Reward’s product type description |
11 | voucher | String | Reward’s voucher |
12 | voucherId | String | Reward’s voucher id |
13 | voucherCode | String | Reward’s voucher code |
14 | expiredDate | Date | Reward’s voucher expired date |
15 | totalPointUsed | Integer | Reward’s total point used |
16 | currentBalance | Integer | Reward’s current balance |
17 | transactionIdReference | String | Reward’s transaction id reference |
18 | abstractResponse | ||
19 | responseStatus | String | See details** |
20 | responseMessage | String/td> | See details** |
JSON Format :