API


9. Voucher Redeem

Description : Voucher Redeem API is used to redeem member’s voucher at its store.
URL : https://sandbox.goodie.id/api-rest/point-transaction/redemption/voucher/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 voucherBalanceId String M Voucher balance id
4 storeId String O Store’s id

JSON Format :

{
    "memberId": "CE38F7D7-23C4-4F81-B7B6-AA4B97567F20",
    "merchantId": "5F773EA1-1E66-4F9E-B9C8-E1FA8156AD20",
    "voucherBalanceId": "3586F95E-7BF8-4A5E-9C04-4F59D71FEA4D",
    "storeId" : ""
}
                        

Response :
No Parameter Value Description
1 memberId String Member’s id
2 merchantId String Id of the merchant
3 abstractResponse
4 responseStatus String See details**
5 responseMessage String See details**

JSON Format :

{
    "memberId": "CE38F7D7-23C4-4F81-B7B6-AA4B97567F20",
    "merchantId": "5F773EA1-1E66-4F9E-B9C8-E1FA8156AD20",
    "abstractResponse": {
        "responseStatus": "INQ001",
        "responseMessage": "Redeem success"
    }
}