#j_r_e
1 messages · Page 1 of 1 (latest)
Hi Jack
Hi there, proration is the default behaviour, have you tried it out?
yes I tried it, no bill are generated. while initiating updateSubscription I had to set clearUsage to true otherwhise I was not able to initate the update
for the items deleted I set:
.setClearUsage(true)
.setDeleted(true)
.build();```
for the new items:
```.setPrice(price.getId())
.build();```
and to initiate the update:
SubscriptionUpdateParams params = SubscriptionUpdateParams.builder()
.setProrationBehavior(ProrationBehavior.ALWAYS_INVOICE)
.addAllItem(items)
.build();
return stripeSubscription.update(params);```
What's the subscription ID?
sub_1O4dfuCgWuplQEGZFRCvoi6w
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
All invoices generated for this subscription is $0
yes, the 0$ invoice is generated while creating the subscription
Did you ever report usage?
but when I change from one product to another there is no invoice generated
Which request? can you share with me the ID?
evt_1O6oadCgWuplQEGZ34fghNSs
for this event there is no usage, but I assume that monthly fee will be also prorated ?
https://dashboard.stripe.com/test/logs/req_QrzIADdR93lENR All these prices have metered as their usage_type. You need to report the usage so that Stripe can generate an invoice with appropriate amount.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I also tried to include usage but same thing, no invoice generated while changing subscription
Request ID?
Also please note that Prorations are created only for licensed (per-seat) subscriptions because they’re billed at the start of each billing period.
ok, I'll try one more time to generate a usage on this subscription (I swiched it to a PAID Subscription), then I'll send report usage to Stripe and try to switch back to a FREE subscription.
Normally Stripe is generating automatically an invoice in that case correct ?
I included a usage for this subscrription, for the subscription item si_OueP3R7BND9qIW
and I switched to a FREE subscription but no invoice generated
What's the subscription ID?
And did you use licensed usage type or still metered usage type?
metered usage
You need to use licensed usage type if you want Stripe to generate a proration.
prod_Oq9DrSX0O5TTbt
but there is a fixed amount on my metered usage
proration is not calculated with this fixed amount ?
and how can I make sure that customer will pay for this usage before switching to a new subscription ?
No, Prorations are created only for licensed (per-seat) subscriptions because they’re billed at the start of each billing period.
yes but in that case, if I create two products (one metered, and another one licensed, Stripe will generate two invoices per month)
Again for sub_1O4dfuCgWuplQEGZFRCvoi6w, all invoices are $0, there's no invice to pay even after changing the price.
No, just one invoice, if both prices are in the same subscriptiong.
yes I know, Stripe is generating this 0$ subscription when creating it, and at the end of the month period, Stripe is generating an invoice based on the usage
ok, so for me it will be better to add another licensed product for my monthly fee and another one metered based on usage
and you are sure that prorate invoice will include a protate of the monthly licensed fee + the reported usage ?
No, as I said multiple time, prorations are created only for licensed (per-seat) subscriptions
yes I understood, but if my customer change subscription after 10 days, proration is calculated only on the licensed product, that's ok. but if he used my service 50 times and there is a 0,5€ price per usage, I would need an invoice including the prorate of the monthly fee + 50*0,5€ reported usage
You can do that, as long as you report the usage. So far you haven't reported any in the subscriptions that you shared earlier.