Webhook, (recuring) invoice created or sent?

Which would be best.

1 a webhook for “invoice sent”
2 or a webhook for “invoice create”?

I need to store in my own system, data about invoices, mainly for recurring invoices
(so my own system can inform users about invoices, etc. + if paid?, etc).

Additionally:
If i am also allowing “single invoices” (i.e. non recurring).
Would i be better to use the webhook for this, or the response data from creating the invoice?
(or probably both, but check if i already have the date stored first?)

Sorry if this sounds silly questions, but as i need to store the data ASAP, i am not sure what the recommended method is. (FIY, i deliver “digital adverts” before the invoice is paid. i trust my clients to pay. i do not require payment conformation. this will be dont manually for bank transfers, and instant for 3rd party merchant services)

Best Regards
Jon

PS, if any use, i am only using invoiceNinja purely for invoicing (no gateways, but still 3rd party merchant gateway payments, that the clients still need an invoice for).
Once i work it all out, i will write it into php classes (atm: i am just using procedural code for testing)
If this is of any use to invoiceNinja, you are welcome to the code (you may need to improve it…)

Hi,

I’m not sure I can answer that for you. Either approach will work, it just depends when you want the invoice created in your system.

1 Like

sorry, it was a silly question…
i had drank a few wines… and was “wondering” + also if i should use the webhook or the return data

now it is clear, i use the webhook on “create invoice” to enter all required date to my system
(for the first recurring invoice, i manually trigger the “send now” and just check for success, but enter no data).
This should keep things consistent

Thank you again for all your help and time!

1 Like