未应用优惠券输入是
"coupon_lines": [{ "code":"new50","amount":"50","discount_tax":"0",meta_data":[{ "key":"coupon_data",value" : [{ "id": "691",code": "new50","amount" :"50"}] }]
答案是
{
"code": "woocommerce_rest_invalid_coupon",
"message": "Coupon usage limit has been reached.",
"data": {
"status": 400
}
}
但是订单已创建。
答案 0 :(得分:0)
我认为这个小技巧会对您有所帮助。我记得前段时间我也遇到过同样的问题,所以也许这会为您提供帮助。你必须改变一些
`
“ coupon_lines”:[{
“代码”:“ flash30”, “ meta_data”:[{ “ key”:“ coupon_data”, “值”:[ { “ code”:“ flash30” }] } ] }]`。
然后就是工作代码。