Added below code to Public -> Backend -> Events.js
![](https://static.wixstatic.com/media/a27d24_eefc7739de764c01b48375a5952d042c~mv2.png/v1/fill/w_800,h_600,al_c,q_90,enc_auto/a27d24_eefc7739de764c01b48375a5952d042c~mv2.png)
While generates the invoice manually from Wix orders, it does not call the API. Please help me if I done anything wrong here.
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
@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?
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.