# 外部微信商家券
# 券状态同步
请求地址 -/v1/coupon/callback/outmc/coupon/status
请求参数
| 参数名称 | 类型 | 说明 | 必须 | |
|---|---|---|---|---|
| mch_id | string | 商户号 | 是 | |
| stock_id | string | 批次 id | 是 | |
| coupon_code | string | 券唯⼀标识 | 是 | |
| coupon_state | int | 优惠券状态 | (1:可⽤ 2:已使用 3:已过期 4: 失效) | 是 |
| update_time | string | 更新时间 | yyyy-MM-dd HH:mm:ss | 是 |
请求示例
{
"mch_id": "01234567890",
"stock_id": "123456",
"coupon_code": "ou82325w232356456",
"coupon_state": 1,
"update_time": "2023-08-24 00:00:00" }
响应数据
| 参数名称 | 类型 | 说明 | 必须 |
|---|---|---|---|
| - | - | - | - |
响应示例
{
"code": 0,
"message" : "成功",
"data": {}
}
# 批次更新
请求地址 -/v1/coupon/callback/outmc/stock/info
请求参数
| 参数名称 | 类型 | 说明 | 必须 | |
|---|---|---|---|---|
| stock_id | string | 批次id | 是 | |
| couponName | string | 优惠券名称 | couponName长度必须小于等于21 | 否 |
| couponDesc | string | 优惠券描述 | couponDesc长度必须小于等于50 | 否 |
| couponsWarningThreshold | Integer | 优惠券预警阈值 | couponsWarningThreshold必须大于等于0 0代表不预警 | 是 |
| instructions | string | 优惠券描述 | 使用须知(最大长度1000) | 否 |
| maxCoupons | Integer | 批次最大发放总量 | 是 | |
| pathExtInfo.miniProgramsAppid | string | 路径扩展信息 | 小程序的appid | 否 |
| pathExtInfo.miniProgramsPath | string | 路径扩展信息 | 小程序路径 | 否 |
请求示例
{
stockId: "xxx",
couponName: "xxxx",
couponDesc: "xxx",
couponsWarningThreshold: 0,
instructions: "文案",
maxCoupons: 111,
pathExtInfo: {
miniProgramsAppid: "1111",
miniProgramsPath: "/path"
}
}
响应数据
| 参数名称 | 类型 | 说明 | 必须 |
|---|---|---|---|
| - | - | - | - |
响应示例
{
"code": 0,
"message" : "成功",
"data": {}
}