Member Get Coupon
Function
領取券
Endpoint
- /v1/coupon-member/add
HTTP Method
- POST
Request Body
get one coupon from app_gc
{
"vip_accountno": "04xxxxxx",
"channel": "app_gc",
"coupon_id": "DP003149"
}
get multi coupon from app_gc
{
"vip_accountno": "04xxxxxx",
"channel": "app_gc",
"coupon_id": "DP003149,DP003150,DP003151"
}
get coupon from app_rewards
{
"vip_accountno": "04xxxxxx",
"channel": "app_rewards",
"coupon_id": "DP003149"
}
Request Parameters
| Field | Required | Type | Remark | Sample |
|---|---|---|---|---|
| vip_accountno | Yes | string | vip_accountno | 04xxxxxx |
| channel | Yes | string | 渠道: app_gc、app_rewards | app_rewards |
| coupon_id | Yes | string | 券編號 | DP003149 |
Response Body - Success
{
"code": 0,
"msg": "success",
"data": {
"list": [
{
"coupon_certno": "XXX",
"coupon_id": "DP003149"
}
]
}
}
Response Parameters
| Field | Type | Remark | Sample |
|---|---|---|---|
| list . coupon_id | string | 券編號 | XXXXXXXX |
| list . coupon_certno | string | 券码,唯一 | XXXXXXXX |