NO_BILLING_PERIOD billing period not setting charge through date correct

75 views
Skip to first unread message

Rajan Sharma

unread,
Jul 6, 2022, 5:06:03 AM7/6/22
to Kill Bill users mailing-list
Hi folks,

We are facing an issue that Charged Through Date is not set correctly on creating a FIXEDTERM subscription. Following is our catalog object: 

[{"name":"CATALOG-448b0156-4920-4fbc-bd4c-ab58bf3fd311","effectiveDate":"2022-07-04T00:00:00.000+00:00","currencies":["USD"],"units":[],"products":[{"type":"BASE","name":"DUES-19779","prettyName":"DUES-19779","plans":[{"name":"PLAN-27775-2022-07-04","prettyName":"PLAN-27775-2022-07-04","billingPeriod":"NO_BILLING_PERIOD","phases":[{"type":"FIXEDTERM","prices":[],"fixedPrices":[{"currency":"USD","value":1000}],"duration":{"unit":"DAYS","number":365},"usages":[]}]}],"included":[],"available":[]}],"priceLists":[{"name":"DEFAULT","plans":["PLAN-27775-2022-07-04"]}]}]

If you see the above catalog, a subscription is set for 365 days duration and $1000 is paid upfront for the whole year subscription, but when we see the Charged Through Date in the KB admin panel, it is set to the same as start date, and we were wondering that it must be set to next year.

end-date.png

Can anyone please look into this scenario and share the solution?

Please let me know if you need more information.

Thanks,
RJay

Reshma Bidikar

unread,
Jul 6, 2022, 6:30:18 AM7/6/22
to Kill Bill users mailing-list
Hello Ranjan,

I see that your catalog contains a FIXEDTERM phase with a fixedPrice of $1000. The chardedThroughDate is applicable only for recurring subscriptions and represents the last day of the recurring period associated with a given subscription that has been charged for.

If you would like to see the  chardedThroughDate   updated with the last day the user is billed for,  you can create a plan with a RECURRING price as shown below:

  <plan name="p1-annual">
            <product>p1</product>
            <initialPhases>
            </initialPhases>
            <finalPhase type="FIXEDTERM">
                <duration>
                    <unit>DAYS</unit>
                    <number>365</number>
                </duration>
                <recurring>
                    <billingPeriod>ANNUAL</billingPeriod>
                    <recurringPrice>
                        <price>
                            <currency>USD</currency>
                            <value>1000</value>
                        </price>
                    </recurringPrice>
                </recurring>                
            </finalPhase>
        </plan>


I hope this helps!

Regards,
Reshma

Rajan Sharma

unread,
Jul 6, 2022, 7:08:14 AM7/6/22
to Kill Bill users mailing-list
Hi  Reshma,

Thanks for your prompt response.

I got your point that we have to use recurring subscriptions to get chargedThroughDate set in the subscriptions. But if you see the screenshot, that I shared earlier, it's showing chargedThroughDate same as Start Date. Don't you think either it must be showing empty or calculate it from the duration (which is specified in the catalog)?

Cheers,
Rajan Sharma

Rajan Sharma

unread,
Jul 6, 2022, 7:10:13 AM7/6/22
to Kill Bill users mailing-list
Also, If we used a recurring subscription, the user will be charged after 1 year again, but we don't want to renew the subscription in this particular case.

karan bansal

unread,
Jul 6, 2022, 1:06:59 PM7/6/22
to Kill Bill users mailing-list
Hi Rajan,

Currently the ChargedThroughDate is defined in context of recurring subscriptions only. However, it should also be updated in case of fixed term one with fixed one time charge.  We have raised a feature for the Devs to look into it and include in upcoming releases. 

Regards
Karan

Rajan Sharma

unread,
Jul 7, 2022, 1:51:20 AM7/7/22
to Kill Bill users mailing-list
Hello Karan,

Thanks for your response. Much appreciated!!.

Also, can you please look into this ticket?

Regards,
Rajan Sharma

karan bansal

unread,
Jul 7, 2022, 8:20:16 AM7/7/22
to Kill Bill users mailing-list
Hi Rajan,

Just for reference, this is the ticket logged to track this issue : https://github.com/killbill/killbill/issues/1739

For the question related to generating invoices for the follow up subscription, we are looking into it, will update you as soon as we find further information.

Regards
Karan

Rajan Sharma

unread,
Jul 8, 2022, 12:51:49 AM7/8/22
to Kill Bill users mailing-list
Thanks, Karan!
Reply all
Reply to author
Forward
0 new messages