收藏
回答

微信支付商户平台创建代金券批次接口报错?

想使用预充值代金券产品创建代金券
{
  "stock_name": "测试代金券",
  "comment": "测试代金券",
  "belong_merchant": "1713209102",
  "available_begin_time": "2025-04-29T00:00:00+08:00",
  "available_end_time": "2025-04-30T00:00:00+08:00",
  "stock_use_rule": {
    "max_coupons": 5,
    "max_amount": 100,
    "max_amount_by_day": 100,
    "max_coupons_per_user": 2,
    "natural_person_limit": true,
    "prevent_api_abuse": true
  },
  "coupon_use_rule": {
    "available_merchants": [
      "1713209102"
    ]
  },
  "no_cash": false,
  "stock_type": "NORMAL",
  "out_request_no": "123456789"
}
使用的是maven版本
<dependency>
    <groupId>com.github.wechatpay-apiv3</groupId>
    <artifactId>wechatpay-java</artifactId>
    <version>0.2.16</version>
</dependency>

回答关注问题邀请回答
收藏

1 个回答

  • Memory (私信不回复)
    Memory (私信不回复)
    1天前

    请求参数缺少必要字段,请认真比对文档按照文档要求进行传参数

    1天前
    有用
    回复
登录 后发表内容