API


6. Reward List

Description : Reward list is used to show a list few rewards in mobile app/website.
URL : https://sandbox.goodie.id/api-rest/point-transaction/redemption/reward
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

Body :
No Parameter Value Requirement Description
1 keyword String O User’s Id
2 rewardId String O Merchant’s Id
3 memberId String M Member’s Id
4 merchantId String M Id of the merchant
5 orderBy Int M Reward’s Order by
6 nRecords Int M Reward’s record
7 page Int M Reward’s page

Response :
No Parameter Value Description
1 Rewards
2 rewardId String Merchant’s reward id
3 rewardName String Merchant’s reward name
4 Description string Merchant’s reward description
5 termAndCondition String/td> Merchant’s term and condition
6 requiredPoint Integer Reward’s required point
7 expiredDate Date Reward’s expired date
8 productName String Merchant’s product name
9 productImage String Merchant’s product image
10 productType String Merchant’s product type
11 amountValue Integer Merchant’s amount value
12 PercentageValue Integer
13 Stock Integer Merchant’s reward stock
14 RecordsInfo
15 totalRecords Integer Reward’s total record
16 Page Integer Reward’s page
17 nRecords Integer Record’s reward page
18 abstractResponse
19 responseStatus String See details**
20 responseMessage String/td> See details**

JSON Format :

{
    "rewards": [
        {
            "rewardId": "6C7475C2-ECC1-4C0F-BE43-A648F3E9BB6D",
            "rewardName": "Alfamart Bahagia Voucher Lebaran Rp 50.000",
            "description": "<p>Ini alpha testing product UV</p>\n",
            "termAndCondition": "T&C",
            "requiredPoint": 1,
            "expiredDate": "30/06/2019",
            "productName": "Voucher Digital Alfamart Rp 50.000",
            "productImage": "https://service.goodie.id/ViewImage?fileName=Alfamart_Logo.png",
            "productType": "Voucher",
            "amountValue": 50000,
            "percentageValue": null,
            "stock": null
        },
        {
            "rewardId": "BFC60EF6-00D4-4799-9E51-6FD48A77A0AA",
            "rewardName": "Product UV",
            "description": "<p></p>\n",
            "termAndCondition": "untuk pengguna baru ",
            "requiredPoint": 20,
            "expiredDate": "31/07/2019",
            "productName": "Voucher Digital Bakmi Gm Rp. 50.000",
            "productImage": "https://service.goodie.id/ViewImage?fileName=Bakmi_GM.jpg",
            "productType": "Voucher",
            "amountValue": 50000,
            "percentageValue": null,
            "stock": null
        },
        {
            "rewardId": "FFB3DED4-7937-4C85-A84C-A10C11BE1BF6",
            "rewardName": "Reward BNI",
            "description": "<p>&lt;p&gt;Program BNI&lt;/p&gt;</p>\n<p></p>\n",
            "termAndCondition": "Berlaku hanya untuk member baru ",
            "requiredPoint": 10,
            "expiredDate": "31/12/2019",
            "productName": "Voucher BNI Iqbal Rp 50.000",
            "productImage": "https://service.goodie.id/ViewImage?fileName=vt3FgpkR7ASFq6WUq0FFLYPYu%24K2Jqys.png",
            "productType": "Voucher",
            "amountValue": 5000,
            "percentageValue": null,
            "stock": 0
        },
        {
            "rewardId": "250C1A72-564D-4777-82F6-740B5B7490D6",
            "rewardName": "TestCollabProduct",
            "description": "<p>&lt;p&gt;&amp;lt;p&amp;gt;TestCollabProduct&amp;lt;/p&amp;gt;&lt;/p&gt;</p>\n<p>&lt;p&gt;&lt;/p&gt;</p>\n<p></p>\n",
            "termAndCondition": "TestCollabProduct",
            "requiredPoint": 1,
            "expiredDate": "29/04/2022",
            "productName": "Voucher Mentimun Rp 50.000",
            "productImage": "https://service.goodie.id/ViewImage?fileName=Y7ZME1%24C0%2327zJ8u1WJK%40C3WvuusVlUK.png",
            "productType": "Item",
            "amountValue": 45000,
            "percentageValue": null,
            "stock": 95
        }
    ],
    "recordInfo": {
        "totalRecords": 4,
        "page": 0,
        "nrecords": 100
    },
    "abstractResponse": {
        "responseStatus": "INQ000",
        "responseMessage": "Inquiry success"
    }
}