Skip to main content

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

FieldRequiredTypeRemarkSample
vip_accountnoYesstringvip_accountno04xxxxxx
channelYesstring渠道: app_gc、app_rewardsapp_rewards
coupon_idYesstring券編號DP003149

Response Body - Success

{
"code": 0,
"msg": "success",
"data": {
"list": [
{
"coupon_certno": "XXX",
"coupon_id": "DP003149"
}
]
}
}

Response Parameters

FieldTypeRemarkSample
list . coupon_idstring券編號XXXXXXXX
list . coupon_certnostring券码,唯一XXXXXXXX