Quantcast
Channel: e-conomic Global API Forum
Viewing all articles
Browse latest Browse all 2527

Answered: Web hook on "Order updated": How to determine if order was converted to Invoice

$
0
0
Hi Morten

An order being converted to an invoice will trigger two web hooks (providing you've set these up):
First: An OrderUpdated web hook with OldNumber:OrderNumber and NewNumber:blank
Secondly: An InvoiceUpdated web hook with OldNumber:blank and NewNumber:CurrentInvoiceNumber

All this tells you is that an order stopped existing and an invoice started to exist.

To have a cross-reference all the way from Quotation to Order to CurrentInvoice to Invoice you should set "OtherReference" and use this for reference to the object.

There is no separate "OrderUpgradedToInvoice" web hook.

Viewing all articles
Browse latest Browse all 2527

Trending Articles