#elBR-proration-preview

1 messages · Page 1 of 1 (latest)

burnt ospreyBOT
tribal token
topaz tusk
#

thank you

#

I have another question

#

if I define proration_behaviour as always_invoice in an invoice preview it means that the upcoming invoice will be the invoice created by the prorations?

#

and not the new billing cycle invoice?

tribal token
#

What does 'not the new billing cycle invoice' mean?

#

Can you add more details to ensure that I'm providing the best answer?

topaz tusk
#

I want to get the upcoming invoice of a subscription

#

in case I provide proration_behaviour as always_invoice does it mean that the upcoming invoice that I will get will be the invoice immediately created by prorations

#

?

tribal token
#

Ah I see, I'll need to test this in my test environment.

topaz tusk
#

ok thanks

#

please let me know

#

Also I wanted to ask why every time I change the quantity I get two invoice items respectively:
Unused time on 5 × Custom Single Seats after 05 Oct 2022
Remaining time on 6 × Custom Single Seats after 05 Oct 2022.

In this case I changed the quantity from 5 to 6

#

Why not getting only one invoice item that says:
Remaining time on 1 × Custom Single Seats after 05 Oct 2022.

#

because we just incremented the quantity by 1

#

if we would increment for example by 3:
Remaining time on 3 × Custom Single Seats after 05 Oct 2022.

#

wouldn't it be more clear to the customer when he checks the invoice?

tribal token
#

I suspected this would be the case but I had to confirm... When you set proration_behavior: 'always_invoice' while updating a Subscription, the prorated amount would be invoiced and the upcoming invoice would be for the next billing cycle.

maiden oriole
#

I just tried and to me results the opposite

#

while using always_invoice I get the prorated amount as invoice total

tribal token
#

I'm happy to further investigate once I have the request_id here.

topaz tusk
#

sure

#

req_Ihvppf955IT3lG

#

as you can see the subtotal is equal to the subscription item price amount - unused amount

#

so it means that the upcoming invoice represents the prorated invoice amount and not the next billing invoice amount

tribal token
#

Comparing it to my request

maiden oriole
#

ok

tribal token
maiden oriole
#

you can do a test in general

#

to add a new subscription item

#

to a subscription

#

and check the upcoming invoice amount

#

Is it the total billing cycle subscription amount or just the prorated amount

#

would this be doable?

#

and please tell about this

lunar pawn
#

elBR-proration-preview

#

👋 taking over, I'm happy to help but I'm struggling a bit to understand your real question

#

But if you go from quantity 1 to quantity 2 and pass proration_behavior: 'always_invoice' then that Invoice would just contain the proration for the quantity change and be created/cut immediately yes

maiden oriole
#

Instead I get always two invoice items when I change the quantity from 1 to 2. I am referring to changing the subscription item’s quantity of an occurring subscription

#

one that says unused time and one remaining time as I wrote before

#

the amount is ok for the invoice

#

but I don’t understand why the calculation is made in that way

lunar pawn
#

I'm sorry I don't really follow

#

You have a $100 Price monthly. mid month you switch to a $450 Price. We owe the customer $50 in credit (what they overpaid for the first Price) and they owe you $225 (half the new Price)

#

that creates 2 separate items

maiden oriole
#

is not the case

#

as I told I am not switching

lunar pawn
#

you are

#

you are switching the quantity, it works the exact same way

maiden oriole
#

I am just adding a new subscription item

lunar pawn
#

so you have Price A and then you add Price B mid-month?

maiden oriole
#

if the quantity is 50 and the customer decides to go to 55 than we can tell in the invoice that the amount he has to pay is remaining time for 5 items

#

why we should tell:
this is for unused 50 itemes and this is for remaining 55

lunar pawn
#

so you do increase the quantity?

maiden oriole
#

we can just tell 5

lunar pawn
#

sure

#

we can

#

we don't though

#

Like your approach could work, it's just not how we built this

maiden oriole
#

ok

lunar pawn
#

So you have to always get 2 line items, it's always how we do this