We identified a case where Killbill generated two invoices for the same account and same target date.
Both invoices have status = COMMITTED and were created at the exact same timestamp, but with different created_by values. This suggests that two different processes might have triggered invoice generation simultaneously.
Example:
Account: 00058ba4-b7ff-457c-9347-53335c1bae62
Target Date / Invoice Date: 2025-08-30
Invoices generated:
Impact:
Duplicate invoices created for the same account and date.
Double charging the customer.
Question to the Killbill team:
What is the recommended way to handle this case ?
How can we prevent this duplication from happening again ?
--
You received this message because you are subscribed to a topic in the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/killbilling-users/fnJAh0pLuFE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to killbilling-us...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/killbilling-users/68abc280-ac4a-4c53-972a-619520de6f1bn%40googlegroups.com.
Hi, do you have updates?Em seg., 1 de dez. de 2025 às 10:04, Julia Nunes <nune...@gmail.com> escreveu:Hello, here is the result of the two duplicated invoices attached
Em qua., 24 de set. de 2025 às 00:16, karan bansal <karanba...@gmail.com> escreveu:
--
Hi Karan,
Thanks for checking.
Based on the Kill Bill Core data, these invoices were automatically generated by Kill Bill, with no manual trigger involved.
For the same account and billing period, we identified two invoices created at the exact same timestamp, but with different system triggers.
This was confirmed using the query below:
Query result (same account and invoice date):
As shown above:
One invoice was created by Next Billing Date
The other was created by SubscriptionBaseTransition
Both were generated at 2025-08-31T01:35:28 UTC
This indicates that the next billing processing and a subscription phase transition occurred simultaneously, resulting in duplicate invoice generation for the same billing date.
At the moment, we are validating:
whether this behavior occurred again for this same account, and
whether there are similar cases affecting other accounts.
We are also checking the availability of Kill Bill logs around the invoice creation timestamp and will share them as soon as they are confirmed.
Best regards,