Codexshaper / laravel-woocommerce

WooCommerce Rest API for Laravel
MIT License
198 stars 57 forks source link

Coupon_lines #115

Open SepuWeb opened 3 months ago

SepuWeb commented 3 months ago

Hi all, i tried to create a new order with coupon_lines but return me this error: coupon_lines [rest_invalid_param]

$coupon_lines = [ 'code' => 'existing_coupon_code ];

$data = [ 'customer_id' => $customer_id, 'payment_method' => $payment_method, 'payment_method_title' => $payment_method_title, 'status' => 'processing', 'set_paid' => true, 'currency' => 'EUR', 'billing' => $billing, 'shipping' => $shipping, 'shipping_lines' => $shipping_lines, 'line_items' => $line_items, 'coupon_lines' => $coupon_lines ];

SepuWeb commented 3 months ago

Same error if I use fee_lines