Second Subscription not generated invoice

59 views
Skip to first unread message

Rajan Sharma

unread,
Jul 1, 2022, 5:12:36 AM7/1/22
to Kill Bill users mailing-list
Hi folks,

We have a scenario where 2nd subscription is not generating an invoice even though the start date is set to today's date.

Here is the scenario, we create a subscription with the start date set to today's date and it's generating an invoice correctly. But if we cancel the first subscription after 1 hour and create a second subscription having a new cost and plan name and the start date set to today's date, the invoice is not created in this case.

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

Please let me know if you need more information.

Thanks,
RJay

karan bansal

unread,
Jul 1, 2022, 8:13:09 AM7/1/22
to Kill Bill users mailing-list
Hi Ranjan,

Thanks for writing in!

I tried this at my end and used immediate cancellation/creation terms and the invoices were created just fine. 

invoices.PNG

The invoices 30/31 are from the creation/cancellation for the first subscription and #33 is for the new subscription with a new plan/new cost. 

It would depend on the cancellation terms/plan terms as well as trial periods ( if any ) for the different plans in question. 

Regards
Karan

Christopher Conner

unread,
Jul 5, 2022, 2:35:39 PM7/5/22
to Kill Bill users mailing-list

Our use case is a little different.  I expect this is a billingRules issue.

We don't want to do an immediate cancel (as we don't want a refund)

We are trying to use the entitlementPolicy to IMMEDIATE but the billingPolicy to END_OF_TERM so that the user doesn't get a refund.

curl -X DELETE -v -u admin:tWpgNuv801qiVizE -H "X-Killbill-ApiKey: ASF3" -H "X-Killbill-ApiSecret: ASF1234" -H "Accept: application/json" -H "X-Killbill-CreatedBy: demo" -H "X-Killbill-Reason: demo" -H "X-Killbill-Comment: demo" "http://127.0.0.1:8080/1.0/kb/subscriptions/(subscriptionId)?entitlementPolicy=IMMEDIATE&billingPolicy=END_OF_TERM"

Then we start a new subscription (which could be the same day as the old one started).  We want the old canceled subscription to be ignored as it never happened.  We want the new subscription to fire an invoice on the start date as normal (as if the old subscription never existed).

What do we need to setup (and/or turn off) to get this behavior to work.

Right now we are.
1) Canceling the old subscription (as shown above)  With entitlement to immediate but billingPolicy to END_OF_TERM
2) We are creating a new catalog with a new effective date.
3) We are creating a new subscription with the new plan from the new catalog (which may be the same plan name as the old catalog).

Cheers,
Christopher
Reply all
Reply to author
Forward
0 new messages