POST Coupon/ModifyCouponStock
修改一个商家券批次
请求信息
请求URI参数
无
请求数据参数
微信券修改信息
MerchantCouponStockModifyInfo| 名称 | 说明 | 类型 | 扩展说明 |
|---|---|---|---|
| merchant_brand |
归属微信券编码(连锁商户号) |
字符串 |
无 |
| coupon_name |
微信券名称 |
字符串 |
无 |
| stock_id |
微信券批次号 |
字符串 |
无 |
| comment |
微信券备注 |
字符串 |
无 |
| item_names |
适用商品 |
字符串 |
无 |
| start_datetime |
可用开始时间 |
字符串 |
无 |
| end_datetime |
可用结束时间 |
字符串 |
无 |
| sale_start_datetime |
可售开始时间 |
字符串 |
无 |
| sale_end_datetime |
可售结束时间 |
字符串 |
无 |
| sale_time_info |
销售时间段,用于区间循环上下架 |
字符串 |
无 |
| goods_list |
适用商品清单列表 |
Collection of Goods |
无 |
| store_names |
适用门店中文 |
字符串 |
无 |
| store_list |
适用门店ID |
Collection of 字符串 |
无 |
| description |
礼券使用信息 |
字符串 |
无 |
| logo_img_url |
礼券logo的图片 |
字符串 |
无 |
| sell_price |
领用价格 整数,单位为分 |
整数 |
无 |
| total_num |
总的张数 |
整数 |
无 |
| day_num |
当日最大领用张数 0 表示没有限制 |
整数 |
无 |
| person_day_num |
用户单日最大领用张数 0 表示没有限制 |
整数 |
无 |
| coupon_img_url |
礼券对应的图片 |
字符串 |
无 |
| auto_app_show |
是否自动上架 |
布尔 |
无 |
| auto_app_show_pretime |
提早多少分钟自动上架 |
整数 |
无 |
请求数据格式
application/json, text/json
例子:
{
"merchant_brand": "sample string 1",
"coupon_name": "sample string 2",
"stock_id": "sample string 3",
"comment": "sample string 4",
"item_names": "sample string 5",
"start_datetime": "sample string 6",
"end_datetime": "sample string 7",
"sale_start_datetime": "sample string 8",
"sale_end_datetime": "sample string 9",
"sale_time_info": "sample string 10",
"goods_list": [
{
"goods_no": "sample string 1",
"goods_name": "sample string 2",
"quantity": 3,
"expandlist": [
{
"expand_name": "sample string 1",
"expand_value": "sample string 2"
},
{
"expand_name": "sample string 1",
"expand_value": "sample string 2"
}
]
},
{
"goods_no": "sample string 1",
"goods_name": "sample string 2",
"quantity": 3,
"expandlist": [
{
"expand_name": "sample string 1",
"expand_value": "sample string 2"
},
{
"expand_name": "sample string 1",
"expand_value": "sample string 2"
}
]
}
],
"store_names": "sample string 11",
"store_list": [
"sample string 1",
"sample string 2"
],
"description": "sample string 12",
"logo_img_url": "sample string 13",
"sell_price": 14,
"total_num": 15,
"day_num": 16,
"person_day_num": 17,
"coupon_img_url": "sample string 18",
"auto_app_show": true,
"auto_app_show_pretime": 20
}
响应数据
资源说明
ResultInfoOfMerchantCouponStockModifyResultInfo| 名称 | 说明 | 类型 | 扩展说明 |
|---|---|---|---|
| code | ResultCode |
无 |
|
| msg | 字符串 |
无 |
|
| data | MerchantCouponStockModifyResultInfo |
无 |
响应数据格式
application/json, text/json
例子:
{
"code": "SUCCESS",
"msg": "sample string 1",
"data": {
"base_info_result": "sample string 1",
"total_num_result": "sample string 2",
"day_num_result": "sample string 3"
}
}