["stock_name"] => string(6) "你好"
["comment"] => string(6) "你好"
["belong_merchant"] => string(10) "*******"
["available_begin_time"] => string(29) "2021-03-16T14:08:48.120+08:00"
["available_end_time"] => string(29) "2021-04-15T14:07:48.120+08:00"
["stock_use_rule"] => array(6) {
["max_coupons_per_user"] => int(10)
["max_coupons"] => int(10)
["max_amount"] => int(10)
["max_amount_by_day"] => int(1000)
["natural_person_limit"] => bool(true)
["prevent_api_abuse"] => bool(true)
}
["coupon_use_rule"] => array(2) {
["fixed_normal_coupon"] => array(2) {
["coupon_amount"] => int(1)
["transaction_minimum"] => int(1)
}
["available_merchants"] => array(1) {
[0] => string(10) "*******"
}
}
["no_cash"] => bool(false)
["stock_type"] => string(6) "NORMAL"
["out_request_no"] => string(24) "161587486816158748686725"
以下是官方示例:
{ "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" }
按照这个示列传值,并注意:
1.stock_name:最多可填写9个字
2.max_coupons_per_user:单天发放个数上限不能为0
3. coupon_amount:10<=coupon_amount<=100000
4.available_time_after_receive:可用时间:相对时间,按分钟设置,是否1min<=分钟范围<=1440min
5.transaction_minimum校验规则:
a、使用门槛-券面额>=0.01(门槛要大于面额)
b、0.1元<=门槛<=100000
6.stock_type:目前只支持NORMAL
7.out_request_no:校验规则:不可以重复
8.开始时间结束时间控制在90天内
请按照示列跟注意事项进行参考一下
注意此处时间校验规则