POST Coupon/UploadCouponCode
给已经存在的自定义券号的微信券(仅支持商家券)批次上传券号
请求信息
请求URI参数
无
请求数据参数
券号列表信息
StockCouponCodeInfo名称 | 说明 | 类型 | 扩展说明 |
---|---|---|---|
creator |
批次创建商户号 |
字符串 |
无 |
merchant_brand |
商家券所在连锁商户号 |
字符串 |
无 |
stock_id |
商家券批次ID |
字符串 |
必填 |
coupon_code_list |
自定义券号列表 |
Collection of 字符串 |
必填 |
请求数据格式
application/json, text/json
例子:
{ "creator": "sample string 1", "merchant_brand": "sample string 2", "stock_id": "sample string 3", "coupon_code_list": [ "sample string 1", "sample string 2" ] }
响应数据
资源说明
ResultInfoOfMerchantCouponUploadCodeResultInfo名称 | 说明 | 类型 | 扩展说明 |
---|---|---|---|
code | ResultCode |
无 |
|
msg | 字符串 |
无 |
|
data | MerchantCouponUploadCodeResultInfo |
无 |
响应数据格式
application/json, text/json
例子:
{ "code": "SUCCESS", "msg": "sample string 1", "data": { "total_count": 1, "success_count": 2, "success_codes": [ "sample string 1", "sample string 2" ], "fail_count": "sample string 3", "exist_codes": [ "sample string 1", "sample string 2" ], "fail_codes": [ { "coupon_code": "sample string 1", "code": "sample string 2", "message": "sample string 3" }, { "coupon_code": "sample string 1", "code": "sample string 2", "message": "sample string 3" } ] } }