Invoice issue in advance

88 views
Skip to first unread message

Tak San Wong

unread,
Nov 5, 2023, 10:55:33 PM11/5/23
to Kill Bill users mailing-list
Hello,

I have a question about the invoice, I have checked the documentation and I haven't found the solution to my problem. I would like to know if KB generates the invoice in advance?

Here is the example, the first invoice and payment will be made at the same time and the future invoice will be generated in advance for 7 days before the payment.

Thank you.

Kind regards, 
Sam

karan bansal

unread,
Nov 6, 2023, 11:12:04 AM11/6/23
to Kill Bill users mailing-list
Hi Sam,

What is the recurring billing mode specified in your catalog? Usually the invoice should be generated based on the billing cycle defined in your plan. I would suggest referring to the examples shown here https://docs.killbill.io/latest/catalog-examples which explains the invoice generation with dates.

Regards
Karan

Tak San Wong

unread,
Nov 8, 2023, 6:06:17 PM11/8/23
to Kill Bill users mailing-list
Hello Karan,

I have IN_ADVANCE for recurring billing mode for all. I should be more specific for the example.

For example, if a customer subscribes to a plan from the 7th of September, the first invoice will be issued on the 7th of September and payment will be made by the 7th of September. The second invoice was issued on 1 October and payment was made by 7 October.

Would this sensoria happen from KB?

Kind regards, 
Sam

karan bansal

unread,
Nov 9, 2023, 7:34:34 AM11/9/23
to Kill Bill users mailing-list
Hi Sam,

Yes, so the in_advance mode represents the mode for each recurring monthly invoice. 

Also, the 2nd invoice would really depend on the BCD that was set at the time of account creation, so effectively if you see the 1st invoice it would be from 7th Sep till 30th Sep. In absence of BCD, the invoice would have been generated on  7th October. Though the payment triggering on the 7th of Oct for the invoice generated on 1st October is a bit odd. What is the payment method that you are using?

Regards
Karan

Tak San Wong

unread,
Nov 12, 2023, 6:39:40 PM11/12/23
to Kill Bill users mailing-list
Hello Karan,

I am using the default payment method in the KB. So does it mean payment and invoice cannot be separate?  I was thinking of issuing the invoice a few days early to let the customer know their payment will be due soon. Would that be possible?

Kind regards, 
Sam

karan bansal

unread,
Nov 13, 2023, 1:27:32 PM11/13/23
to Kill Bill users mailing-list
Hi Sam,

The usual invoicing cycle would have the payment triggered after the invoice generation. Though there are ways to achieve what you have mentioned. You can look into configuring the property org.killbill.invoice.dryRunNotificationSchedule ( details here ) to get the invoice value, so that you can update your customer about it. 

You could also look into writing payment control plugin https://docs.killbill.io/latest/payment_control_plugin, this can help you abort the default payment try, schedule retry attempts and so on. 

Regards
Karan

Tak San Wong

unread,
Nov 13, 2023, 10:51:55 PM11/13/23
to Kill Bill users mailing-list
Hello Karan,

Thank you for the information. I will check the configuration to see if any luck.

Kind regards, 
Sam
Reply all
Reply to author
Forward
Message has been deleted
0 new messages