Get Vouchers
/v3/loyalty/me/vouchers- Using Query String to Get Vouchers by input the country code and phone number
- Using Query String to set a limit: ~/?limit=< limit >
- To implement a pagination cursor, you may use query string: ~/?cursor= < cursor >
- Example :
https://open.revenuemonster.my/v3/loyalty/me/vouchers?countryCode=60&phoneNumber=187824152&limit=100&cursor=asdas
Request Parameters
Response Parameters
Vouchers object
Example: (Refer to explanation below)
Successfully call this endpoint. If fail, will return error code object (Refer Appendix 1: Error Codes)
Example: "SUCCESS"
Inside meta have count key example "count": 2
Example: 2
Vouchers object (item):
Voucher Key (Internal Usage)
Example: "EhIKBk1lbWJlchDOuOKz24XWkg4SGQoNTWVtYmVyUHJvZmlsZRDl-MTxiPOPjzY"
Voucher Label
Example: "asdasd"
Voucher Batch Key
Example: "EhQKCE1lcmNoYW50EJXVzd3wraqTORIYCgxWb3VjaGVyQmF0Y2gQs4n7iuzioaQW"
Voucher Type ("CASH", "DISCOUNT", "GIFT")
Example: "CASH"
Amount of the voucher
Example: 100
Voucher Discount Rate
Example: 0
Set a Minimum Spend Amount
Example: 0
Origin is for determine voucher source ("SYSTEM", "SELF", "MARKETPLACE")
Example: "SYSTEM"
Voucher Image
Example: ""
Member Profile (refer to profile page)
Example: null
Voucher Assign
Example: "0001-01-01T00:00:00Z"
Refer to explanation below
Example: (Refer to explanation below)
Voucher QRcode URL
Example: ""
Voucher Code
Example: "xR43u4bRhUU"
Voucher Shipping
Example: false
Refer to explanation below
Example: (Refer to explanation below)
Refer to explanation below
Example: (Refer to explanation below)
Voucher Use
Example: "2020-11-25T13:58:55+08:00"
Voucher Redeem
Example: "2020-11-25T04:33:04Z"
Voucher Redeem Device
Example: true
Voucher Status ("VALID", "ISSUE", "REDEEMED", "VOID", "EXPIRED", "MARKET_PLACE")
Example: "VOID"
Voucher Combo Key
Example: null
Voucher is in Market Place ?
Example: false
Create date time
Example: "2020-11-18T06:43:19Z"
Last update date time
Example: "2020-11-25T05:58:56Z"
Payload object:
Example: ["T&C"]
Refer to explanation below
Example: (Refer to explanation below)
Expiry object:
Voucher Type ("DYNAMIC" , "STATIC")
Example: "DYNAMIC"
Expired Day
Example: 1
Voucher Expired
Example: "2020-11-26T04:33:04Z"
Address object:
Address 1
Example: ""
Address 2
Example: ""
Postcode
Example: ""
City
Example: ""
State
Example: ""
Country
Example: ""