Duplicate invoice generated at the same time

10 views
Skip to first unread message

Julia Nunes

unread,
Sep 22, 2025, 2:28:55 PM (7 days ago) Sep 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 PM (6 days ago) Sep 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

Reply all
Reply to author
Forward
0 new messages