#.juchom

1 messages · Page 1 of 1 (latest)

lethal zodiacBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

trail sorrel
#

👋 happy to help

static vector
#

Hi !

trail sorrel
#

you can do that in schedules

#

but you can also use update subscriptions but you have to use 2 params:
1- billing_cycle_anchor: "unchanged"
2- proration_behavior: "none"

static vector
#

doing like this will leave the subscription seats to 5 for february ?

trail sorrel
#

yes

#

actually

#

no it doesn't it would change to 3 but there won't be an invoice generated

static vector
#

ok

trail sorrel
#

and if you're using the invoice.paid webhook event to provide your services

#

then it becomes easy

#

since you're looking at the billing_reason

#

if the billing_reason is subscription_update

#

you change the subscription

#

if it's billing_cycle you keep it as is

static vector
#

So schedule is the way to go if I want to know the current number of seats and the futur number of seats ?

#

I need to know what the customer has paid for the current month

trail sorrel
#

and in all cases you will get a customer.subscription.update event which has the previous_attribute that lets you know what changed exactly

static vector
#

Thanks for the information, I'm going to dig a bit more the invoice path

trail sorrel
#

sure

#

let me know if you need any more help

static vector
#

Sure

#

thanks a lot

#

one last question

#

If I add a seat to my subscription during february, the invoice will have two lines.

Is there a way to safely find the quantity of seats for my subscription ?

trail sorrel
#

the seats won't add line_items

#

it's the same line item with different quantity

static vector
#

In case of proration

#

we have two lines, case of going from 5 to 6

It will remove 5 seats and add 6 seats

trail sorrel
#

correct

#

but that's in the invoice not the subscription

#

in the subscription you only have one item

#

and that item has 1 price

#

and 1 quantity

static vector
#

yes

trail sorrel
#

which is the one you're looking for

static vector
#

I have to do some tests, I'm pretty new with Stripe, but I think I understand your strategy

#

And I think it will solve my case

#

thanks