Hot News: 8th June Xero has dropped all connections to it's API-see Support page for details of how to fix [email protected]

Reply To: Discount setting on WC before sent to Xero


hi Pete,

Thanks for the quick reply.
I saw on page:

There is a hook called “woocommerce_checkout_order_processed” that is called
when the order is created. I guess that is when order is created , not
when invoice is sent.

I tried have sale price on a variation item. But when invoice is sent to Xero.
the “Disc %” is empty. Only when I use coupon code from WC, this discount
value is sent with the invoice OK.

So, is it alright if i use the REST API to change the discount value (if needed) ?