nilz Posted May 27, 2015 Share Posted May 27, 2015 Dear all, For my internship I am implementing WHMCS. At the creation of an invoice in WHMCS I would like to make a call to an external API to save the invoice (customer info, invoice info, ordered product info). I would like to implement this action by using the WHMCS supported webhooks, however I am not sure which webhook to use. It's essential that I can use the hook for the information mentioned earlier within the brackets. WHMCS support advised me to use the hook: http://docs.whmcs.com/Hooks:InvoiceCreation However within this hook there are no order-rules available. I would like to send this info together with the price to the external API. Do you guys have any tutorials, hints or tips for me on where to start or find more information about the specific hook and variables im looking for? Thanks in advance! Link to comment Share on other sites More sharing options...
sentq Posted May 28, 2015 Share Posted May 28, 2015 you would use the Action Hook to trigger the handle of your call (save information to external API), use WHMCS API to get the information you need: http://docs.whmcs.com/API Customer info: http://docs.whmcs.com/API:Get_Clients_Details Invoice info: http://docs.whmcs.com/API:Get_Invoices (also this info will be available in the Action Hook you mentioned) Product info: http://docs.whmcs.com/API:Get_Clients_Products or http://docs.whmcs.com/API:Get_Products (each do different job) Link to comment Share on other sites More sharing options...
Retr0 Posted March 19, 2018 Share Posted March 19, 2018 There is a plugin for that: https://combinedminds.nl/koppeling-whmcs-en-moneybird/ Please note that Moneybird has extreme rules about the use of their API. Link to comment Share on other sites More sharing options...
Recommended Posts