优惠券创建
开发中
POST
https://saas-open.vhall.com/v3/goods/coupon/create
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://saas-open.vhall.com/v3/goods/coupon/create' \
--header 'platform: 15' \
--header 'Content-Type: application/json' \
--data-raw '{
"coupon_name": "string",
"coupon_type": 0,
"threshold_amount": 0,
"deduction_amount": 0,
"validity_type": 0,
"validity_day": 0,
"validity_start_time": "string",
"validity_end_time": "string",
"use_desc": "string",
"applicable_product_type": 0,
"good_ids": [
0
]
}'
响应示例响应示例
{
"code": 0,
"msg": "string",
"trace_id": "string",
"data": null
}
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
platform
integer
可选
默认值:
15
Body 参数application/json
返回响应
修改于 2025-06-09 23:43:58