How can one get a bill paid notification by webhook? Although webhooks have been configured and work correctly, there seems no resources available to explain how a paid bill can be processed with own third party integration.
Asked
Active
Viewed 241 times
0
-
The documentation suggests that the closest you might pick up on is monitoring when an invoice is updated - would that trigger your webhook on a payment? – droopsnoot Feb 01 '21 at 09:37
1 Answers
1
The Invoices webhooks will trigger on an update. Payment being added counts as an update.
You would need to add some additional logic as not all updates will be the result of a payment being added. The specifics of this will depend on if the Bill should be fully paid, or if a part-payment is of interest.
The simplified logic would be something like:
- Receive a webhook for an update on an invoice.
- Check to see if any payments have been added.

wobinb
- 61
- 1