Added below code to Public → Backend → Events.js
While generates the invoice manually from Wix orders, it does not call the API. Please help me if I done anything wrong here.
Added below code to Public → Backend → Events.js
What API are you calling? Is it an https URL? (http will not work). If this is a 3rd party service, you will need to find out from the service provider how to call the API.
@yisrael
Yes we are calling a third party API. and the the API URL has the https protocol. We would like to post the data on the third part API. And the API URL is associated with our server only.
It is not working while “onInvoicecreated”. but if we try the same API for “OnNewOrder” is working fine.
So please let me know if I done anything wrong here based on my above code?