priceOverrides on Subscription will autogenerate Invoice with wrong amount

63 views
Skip to first unread message

Luis Bragagnolo

unread,
Jul 1, 2021, 8:53:55 AM7/1/21
to Kill Bill users mailing-list
I am making this call:
POST
http://localhost:8080/1.0/kb/subscriptions
{
    "accountId":"5027479c-3137-4f67-b9fa-81170756226a",
    "planName":"For_Men_Monthly",
    "priceOverrides":[
                    { 
                      "planName":"For_Men_Monthly",
                      "phaseType":"EVERGREEN",
                      "recurringPrice":100
                    }
                   ]
}

The original price is $280

This is the Subscription with the right amount to charge:
ThisOne0.png

But the autogenerate invoice has a different Amount to charge:
ThisOne1.png


Logs:
ThisOne2.png
ThisOne3.png

Am I doing something wrong here?

Thanks.

stephane brossier

unread,
Jul 2, 2021, 6:54:59 PM7/2/21
to Luis Bragagnolo, Kill Bill users mailing-list
It looks like a pro-ration issue - the override price you pass is for the Plan, but the subscription logic to decide whether to pro-rate based on various alignment is still in place. It looks like your subscription (or Account) is aligned on the 1st but your (billing) end date is the 29, hence the pro-ration.


--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/a1abbbdf-81c8-466e-aa36-262ae57f0917n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages