Dear Team,
In the following scenario, Killbill logs indicate that an invoice is generated but the invoice does not show up in Kaui.
Step 1: Call Create Subscription API for plan A
Step 2: Observe Invoice in Kaui for plan A.
Observe INVOICE_CREATION event
Observe log indicating Payment method is not set
Step 3: Call Cancel Subscription API (immediate cancel - partial credit)
Step 4: Call Create Subscription API for plan A
Step 5: Observe Killbill logs a message indicating invoice was generated, "Generated invoiceId='c2a3437b-298e-4c15-8915-366c46670e45', numberOfItems='2', accountId='..."
Step 6: Observe invoice with id c2a3437b-298e-4c15-8915-366c46670e45 is not visible in Kaui nor is it retrievable via API which returns a Not Found error.
Step 7: Observe, no INVOICE_CREATION event.
It appears that if the account has a partial credit, no new invoice is generated when new subscriptions are created.
Thank you,
Vivek