POST Coupon/ReceiveCouponStock

用户H5/小程序领用微信券(代金券)

请求信息

请求URI参数

请求数据参数

微信券领用信息

MerchantReceiveCouponStockInfo
名称说明类型扩展说明
merchant_id

创建该批次的商户号,默认为联科的商户号

字符串

必填

send_merchant_id

发放该批次的商户号

字符串

必填

appid

公共号/小程序 APPID

字符串

必填

openid

公共号/小程序下用户唯一标记OpenID

字符串

必填

stock_id

微信券的批次ID

字符串

必填

channel

微信券领用渠道

字符串

order_no

微信券领用订单号,如果是拼购领用则必须传递

字符串

item_code

单品微信券的适用商品编码,如果批次为空,则从此商品编码找到对应的批次,如果传入了批次,则此参数无效

字符串

请求数据格式

application/json, text/json

例子:
{
  "merchant_id": "sample string 1",
  "send_merchant_id": "sample string 2",
  "appid": "sample string 3",
  "openid": "sample string 4",
  "stock_id": "sample string 5",
  "channel": "sample string 6",
  "order_no": "sample string 7",
  "item_code": "sample string 8"
}

响应数据

资源说明

ResultInfoOfBoolean
名称说明类型扩展说明
code

ResultCode

msg

字符串

data

布尔

响应数据格式

application/json, text/json

例子:
{
  "code": "SUCCESS",
  "msg": "sample string 1",
  "data": true
}