Zoho Books Webhook JSON Bug with Recurring Invoices & Applied Payments
Hey everyone,
We’ve run into a pretty strange issue with Zoho Books webhooks and I’m wondering if anyone else has seen this or figured out a workaround.
Right now, we have a webhook that triggers any time a payment or invoice is created, edited, or deleted. The webhook sends the JSON data to Supabase where we use it to update our internal records. Everything works fine — except when it comes to recurring invoices that automatically apply excess payments.
Here’s what’s happening. If you have a customer with a recurring invoice, and you’ve set it up in Zoho Books so that excess payments or credit notes are automatically applied when the new invoice is generated, the webhook data that comes through doesn’t seem to include the full payment information.
For example, say there’s a payment of $5,000 that was previously applied across four invoices of $1,000 each. Then the recurring invoice runs again for another $1,000, and Zoho Books automatically applies that remaining balance. When that happens, the webhook JSON we get only shows the most recent $1,000 that was applied — and it reports that $4,000 is still unapplied. But if you actually check in Zoho Books, it correctly shows that all five invoices are applied and the balances are right.
What’s even more bizarre is that if you go into Zoho Books and either manually apply the payment yourself, or simply open the payment record and hit edit and save without changing anything, the webhook suddenly becomes accurate. It will then show all five invoices and the correct payment allocation in the JSON.
So it seems like when the auto-apply runs as part of the recurring invoice process, the webhook doesn’t send the full updated payment data — almost like it hasn’t refreshed properly before the webhook fires.
Has anyone else run into this? I’m curious if it’s a known bug, a timing issue, or if there’s a reliable workaround. We’re trying to make sure our Supabase data stays accurate without having to do manual refreshes or secondary API calls every time a recurring invoice runs.
Would really appreciate any insight or suggestions.