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 :

{
    "memberId": "CE38F7D7-23C4-4F81-B7B6-AA4B97567F20",
    "merchantId": "5F773EA1-1E66-4F9E-B9C8-E1FA8156AD20",
    "rewards": [
        {
            "quantity": 1,
            "rewardId": "6C7475C2-ECC1-4C0F-BE43-A648F3E9BB6D"
        }
    ]
}
                        

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 :

{
    "rewardRedemptionResponse": {
        "detailResponses": [
            {
                "detailResponseId": "RRDTL000",
                "detailResponseMessage": "Reward has been successfully redeemed",
                "rewardId": "6C7475C2-ECC1-4C0F-BE43-A648F3E9BB6D",
                "rewardCode": "INKALFA50",
                "rewardName": "Alfamart Bahagia Voucher Lebaran Rp 50.000",
                "pointUsed": 1,
                "productType": "1",
                "producTypeDescription": "Voucher",
                "voucher": [
                    {
                        "voucherId": "ALD50-20190528-0025",
                        "voucherCode": "cTEyMzQ2OQ==",
                        "expiredDate": "2020-01-01",
                        "url": "https://dev.uvcr.me/cdb57fa9e48652debb2d4adc75d3711c/1561628470"
                    }
                ]
            }
        ],
        "totalPointUsed": 1,
        "currentBalance": 89,
        "transactionIdReference": "1C99B071-C0E9-4D30-8336-48931F29D2F8"
    },
    "abstractResponse": {
        "responseStatus": "RWRED000",
        "responseMessage": "Reward Redemption Successful"
    }
}
                        

© Copyright 2019 Goodie.id. All Rights Reserved