API


8. Voucher Balance

Description : Voucher balance API is used to get the list of member’s reward or voucher.
URL : https://sandbox.goodie.id/api-rest/point-transaction/redemption/voucher
Method : GET
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

Request Params :
No Parameter Value Requirement Description
1 voucherBalanceId String O User’s Id
2 memberId String M Member’s Id
3 merchantId String M Id of the merchant
4 orderBy Int M Voucher’s order by
5 orderType Int M Voucher’s order type
6 nRecords Int M Voucher’s record
7 page Int M Voucher’s page

Response :
No Parameter Value Description
1 listVoucherBalance
2 voucherBalanceId String Voucher balance id
3 productName String Product name
4 productImage String Product Image
5 voucherId String Voucher id
6 voucherCode String Voucher code
7 amountValue Integer Voucher’s amount value
8 percentageValue Integer Voucher percentage value
9 expiredDate Date Voucher expired date Format : YYYY-MM-DD
10 redeemDate Date Voucher redeem date
11 redeemStore String Voucher redeem store
12 Status String Voucher status
13 voucherBalanceId String Voucher balance id
14 productName String Voucher’s product name
15 productImage String Voucher’s product image
16 voucherId String Voucher Id
17 voucherCode String Voucher code
18 amountValue Integer Value transaction ( fix amount)
19 percentageValue Integer Value transaction ( percentage )
20 expireDate Date Voucher’s expired date
21 redeemDate Date Voucher’s redeem date
22 Status String Voucher status
23 recordInfo
24 totalRecords Integer Voucher’s total record
25 Page Integer Voucher’s page
26 nRecords Integer Voucher’s record in page
27 abstractResponse
28 responseStatus String See details**
29 responseMessage String See details**

JSON Format :

{
    "listVoucherBalance": [
        {
            "voucherBalanceId": "28B5477F-4DF0-4C1C-A001-3C6E56B0681E",
            "productName": "Voucher BNI Iqbal Rp 50.000",
            "productImage": "https://service.goodie.id/ViewImage?fileName=vt3FgpkR7ASFq6WUq0FFLYPYu%24K2Jqys.png",
            "voucherId": "W9Z5SI6LLH",
            "voucherCode": "Qk5JX1kyWTE2UUQ5RlRJSw==",
            "amountValue": 5000,
            "percentageValue": null,
            "expiredDate": "2019-07-25",
            "redeemDate": "-",
            "redeemStore": "",
            "status": "Active",
            "url": null
        },
        {
            "voucherBalanceId": "1F9BD031-DA9C-46F6-A7D0-EFC9694F797B",
            "productName": "Voucher BNI Iqbal Rp 50.000",
            "productImage": "https://service.goodie.id/ViewImage?fileName=vt3FgpkR7ASFq6WUq0FFLYPYu%24K2Jqys.png",
            "voucherId": "RNW3tBQxTu5SRZMe",
            "voucherCode": "gjzHUo691neEwPNj",
            "amountValue": 5000,
            "percentageValue": null,
            "expiredDate": "2020-05-08",
            "redeemDate": "-",
            "redeemStore": "",
            "status": "Active",
            "url": null
        },
        {
            "voucherBalanceId": "3586F95E-7BF8-4A5E-9C04-4F59D71FEA4D",
            "productName": "Voucher Digital Alfamart Rp 50.000",
            "productImage": "https://service.goodie.id/ViewImage?fileName=Alfamart_Logo.png",
            "voucherId": "ALD50-20190528-0025",
            "voucherCode": "cTEyMzQ2OQ==",
            "amountValue": 50000,
            "percentageValue": null,
            "expiredDate": "2020-01-01",
            "redeemDate": "-",
            "redeemStore": "",
            "status": "Active",
            "url": "https://dev.uvcr.me/cdb57fa9e48652debb2d4adc75d3711c/1561628470"
        }
    ],
    "recordInfo": {
        "totalRecords": 3,
        "page": 0,
        "nrecords": 100
    },
    "abstractResponse": {
        "responseStatus": "INQ000",
        "responseMessage": "Inquiry success"
    }
}