Jump to content

Invoice hook question (moneybird)


nilz

Recommended Posts

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

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

  • 2 years later...
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated