版本:202201
领取优惠券
POST/openapi/2022-01/coupons/receive
将指定优惠券分配给顾客。
请求
- application/json
- 请求体
- 示例
请求体
customer_idstring必填
Customer's ID to receive coupons
coupon_idsstring[]必填
Coupons' IDs
{
"customer_id": "string",
"coupon_ids": [
"string"
]
}
响应
- 200
200
- application/json
- 数据结构
- 示例
- Result
数据结构
- Array [
- ]
statusinteger
默认值:
0示例:
0items object[]
idstring
示例:
202314454241654711statusinteger
默认值:
0示例:
0valuestring
示例:
0stockinteger
默认值:
0示例:
20coupon_statusinteger
默认值:
0示例:
1received_countinteger
默认值:
0示例:
1discount_textstring
示例:
prerequisite_textstring
示例:
is_first_orderboolean
默认值:
true示例:
falselimitinteger
默认值:
0示例:
0has_moreboolean
默认值:
true示例:
falsecursorstring
示例:
0{
"status": 0,
"items": [
{
"id": "202314454241654711",
"status": 0,
"value": "0",
"stock": 20,
"coupon_status": 1,
"received_count": 1,
"discount_text": "",
"prerequisite_text": "",
"is_first_order": false
}
],
"limit": 0,
"has_more": false,
"cursor": "0"
}
{
"status": 0,
"items": [
{
"id": "202314454241654711",
"status": 0,
"value": "0",
"stock": 20,
"coupon_status": 1,
"received_count": 1,
"discount_text": "",
"prerequisite_text": "",
"is_first_order": false
}
],
"limit": 0,
"has_more": false,
"cursor": "0"
}