POST Coupon/UseCouponCode

核销单张微信券(仅支持商家券)

请求信息

请求URI参数

请求数据参数

微信券信息

MerchantCouponCodeInputInfo
名称说明类型扩展说明
store_no

门店编码,核销商家券的时候需要传入,其余场景不需要传入

字符串

字符长度: 必须在 1 和 32 之间

coupon_code

商家券券号

字符串

order_no

商户单据号,此商家券关联的单据,如果未指定,系统将自动匹配该用户核销前后2分钟的订单

字符串

channel

是否渠道间联支付订单号,默认为否 (盛付通接口需要传入true)

布尔

associate_mode

关联订单模式: 1:根据商家券优惠类型智能关联 (如果没有指定关联订单,换购券关联领用时的订单,其他类型的优惠券由微信官方关联核销前后2分钟内的订单) (默认)2:自动关联该用户核销前后2分钟的订单(微信官方自动匹配)3:关联指定商户订单号,必须传入商户单据号4:关联领用此券的订单号

整数

merchant_brand

商家券所在连锁商户号,可为空,为空则取创建券时的连锁商户号

字符串

stock_id

商家券的批次ID,可为空,为空则取创建券时的批次号

字符串

appid

领用商家券的公共号或者小程序的APPID,可为空,为空则取领用券时的APPID

字符串

openid

领用商家券的公共号或者小程序的用户对应的OPENID,可为空,为空则取领用券时的OPENID

字符串

use_all

是否自动连带核销该用户所有未核销的商家券(用于批量核销,一次最多可以再连带核销三张),默认为否

布尔

receive_time

领取时间

字符串

expired_time

过期时间

字符串

请求数据格式

application/json, text/json

例子:
{
  "store_no": "sample string 1",
  "coupon_code": "sample string 3",
  "order_no": "sample string 4",
  "channel": true,
  "associate_mode": 6,
  "merchant_brand": "sample string 7",
  "stock_id": "sample string 8",
  "appid": "sample string 9",
  "openid": "sample string 10",
  "use_all": true,
  "receive_time": "sample string 12",
  "expired_time": "sample string 13"
}

响应数据

资源说明

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

ResultCode

msg

字符串

data

布尔

响应数据格式

application/json, text/json

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