Vouchers of a Customer
This API will return all vouchers assigned to a customer.
GET
/accounts/vouchers/get
Request elements
Parameter | Type | Required | Description |
---|---|---|---|
phone | String | Yes | Phone number of the customer |
String | Yes | Email ID of the customer |
Error messages
Error Code | Error Message |
---|---|
1004 | The following field is not unique |
1010 | At least one of the following fields is required |
EXAMPLE REQUEST:
GET http://[subdomain].datanuum.com/accounts/vouchers/get?phone=971520000000
SAMPLE RESPONSE
[
{
"redeemedBranch": null,
"redeemed": null,
"title": "XMAS Voucher",
"icon": "https://newcem.urbanbuz.com/upload/images/voucher Icon_1503491174_1513520397.png",
"code": "po8owqr3",
"value": 20,
"valueType": "fixed",
"expires": "2020-09-25",
"enabled": true,
"status": "active"
}
]