laravel-woocommerce icon indicating copy to clipboard operation
laravel-woocommerce copied to clipboard

Coupon_lines

Open SepuWeb opened this issue 1 year ago • 1 comments

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 avatar Aug 20 '24 07:08 SepuWeb

Same error if I use fee_lines

SepuWeb avatar Aug 20 '24 08:08 SepuWeb