小程序
小游戏
企业微信
微信支付
扫描小程序码分享
非必填未开发的字段,报错返回 映射到字段“当天开始时间”必填性规则校验失败,此字段为必填项,哪位可以帮忙解答
3 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
参考一下示例去创建
长示例: { "stock_name": "耗子尾汁", "comment": "零售批次", "belong_merchant": "2480255141", "available_begin_time": "2020-12-1T15:40:35.120+08:00", "available_end_time": "2020-12-30T15:40:36.120+08:00", "stock_use_rule": { "max_coupons": 10, "max_amount": 5000, "max_amount_by_day": 500, "max_coupons_per_user": 1, "natural_person_limit": true, "prevent_api_abuse": true }, "pattern_info": { "description": "微信支付营销代金券", "merchant_logo": "https://wx.gtimg.com/mmpay_pub/KQwOuXiby6RR2Da2oGPMe4ZGjiaC8wdwZUNf9SageS77G8ibicGCdD6S9WIpEBbaibIbq/0", "merchant_name": "耗子尾汁", "background_color": "COLOR060", "coupon_image": "https://wx.gtimg.com/mmpay_pub/KQwOuXiby6RR2Da2oGPMe4ZGjiaC8wdwZUNf9SageS77G8ibicGCdD6S9WIpEBbaibIbq/0" }, "coupon_use_rule": { "fixed_normal_coupon": { "coupon_amount": 500, "transaction_minimum": 1000 }, "goods_tag": [ "my-test" ], "combine_use": true, "available_merchants": [ "2480255141" ], "limit_pay" :["CBHB_DEBIT"] }, "no_cash": false, "stock_type": "NORMAL", "out_request_no": "123333333-111100" } 短示例: { "stock_name": "GD测批次4", "comment": "验证活动", "belong_merchant": "xxxxxx", "available_begin_time": "2020-02-13T18:00:00.120+08:00", "available_end_time": "2020-02-20T23:59:59.120+08:00", "stock_use_rule": { "max_coupons": 10, "max_amount": 100, "max_coupons_per_user": 10, "natural_person_limit": false, "prevent_api_abuse": false }, "coupon_use_rule": { "fixed_normal_coupon": { "coupon_amount": 10, "transaction_minimum": 10 }, "available_merchants": [ "209784532", "221003827" ] }, "no_cash": false, "stock_type": "NORMAL", "out_request_no": "207662xxxxxx" }
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
整个请求body发出来看看
代金券创建,
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
参考一下示例去创建
长示例: { "stock_name": "耗子尾汁", "comment": "零售批次", "belong_merchant": "2480255141", "available_begin_time": "2020-12-1T15:40:35.120+08:00", "available_end_time": "2020-12-30T15:40:36.120+08:00", "stock_use_rule": { "max_coupons": 10, "max_amount": 5000, "max_amount_by_day": 500, "max_coupons_per_user": 1, "natural_person_limit": true, "prevent_api_abuse": true }, "pattern_info": { "description": "微信支付营销代金券", "merchant_logo": "https://wx.gtimg.com/mmpay_pub/KQwOuXiby6RR2Da2oGPMe4ZGjiaC8wdwZUNf9SageS77G8ibicGCdD6S9WIpEBbaibIbq/0", "merchant_name": "耗子尾汁", "background_color": "COLOR060", "coupon_image": "https://wx.gtimg.com/mmpay_pub/KQwOuXiby6RR2Da2oGPMe4ZGjiaC8wdwZUNf9SageS77G8ibicGCdD6S9WIpEBbaibIbq/0" }, "coupon_use_rule": { "fixed_normal_coupon": { "coupon_amount": 500, "transaction_minimum": 1000 }, "goods_tag": [ "my-test" ], "combine_use": true, "available_merchants": [ "2480255141" ], "limit_pay" :["CBHB_DEBIT"] }, "no_cash": false, "stock_type": "NORMAL", "out_request_no": "123333333-111100" } 短示例: { "stock_name": "GD测批次4", "comment": "验证活动", "belong_merchant": "xxxxxx", "available_begin_time": "2020-02-13T18:00:00.120+08:00", "available_end_time": "2020-02-20T23:59:59.120+08:00", "stock_use_rule": { "max_coupons": 10, "max_amount": 100, "max_coupons_per_user": 10, "natural_person_limit": false, "prevent_api_abuse": false }, "coupon_use_rule": { "fixed_normal_coupon": { "coupon_amount": 10, "transaction_minimum": 10 }, "available_merchants": [ "209784532", "221003827" ] }, "no_cash": false, "stock_type": "NORMAL", "out_request_no": "207662xxxxxx" }
整个请求body发出来看看
代金券创建,