Duplicate invoice generated at the same time

24 views
Skip to first unread message

Julia Nunes

unread,
Sep 22, 2025, 2:28:55 PMSep 22
to Kill Bill users mailing-list

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:

"id" : "33494534-876e-4a8d-a57e-c92e0e2f3a5e", "created_by" : "Next Billing Date", "created_date" : "2025-08-31T01:35:28.000Z"
"id" : "a12ce4e7-e440-41aa-bcf1-26ae671a413b", "created_by" : "SubscriptionBaseTransition", "created_date" : "2025-08-31T01:35:28.000Z"

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 ?

karan bansal

unread,
Sep 23, 2025, 11:16:44 PMSep 23
to Kill Bill users mailing-list
Hi Julia,

Could you please query both the above invoices with this endpoint and share the results. It would also be helpful if you can list down the steps to reproduce this issue as well as sample catalog used. Please also share Kill Bill logs if possible.  

Regards
Karan

Julia Nunes

unread,
Sep 30, 2025, 10:21:47 AMSep 30
to karan bansal, Kill Bill users mailing-list
  Please find attached the query result with the duplicated invoices

--
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.
invoices_202509221203_invoice_duplicated_created_by_different_sources (1).json

karan bansal

unread,
Oct 1, 2025, 1:43:13 AMOct 1
to Kill Bill users mailing-list
Hi Julia,

Could you please share the data that I have originally requested. I need to see the invoice items. It would also be helpful if you can share the other data as well like the steps to reproduce this issue and sample catalog used. 

Regards
Karan

Reply all
Reply to author
Forward
0 new messages