#kosherslayer
1 messages · Page 1 of 1 (latest)
Can you elaborate? What's your question?
I saw your thread from earlier, but it's quite long so I might be missing something
const subscriptionUsageUpdated = await stripe.subscriptions.update(
subscription_usage.id,
{
cancel_at_period_end: false,
proration_behavior: "create_prorations", // prorate charge at EOM
items: [
{
id: subscription_usage.items.data[0].id,
price: subscriptionItems.report_id,
},
{
id: subscription_usage.items.data[1].id,
price: subscriptionItems.white_label_id,
},
{
id: subscription_usage.items.data[2].id,
price: subscriptionItems.invoicing_id,
},
],
}
);
Unrelated to my previous thread
hold this thought actually. Let me double check some things and get back to you haha
Sure thing!
Alright so this is what's happening:
Ie. t1 charges are 2$ / item, t2 charges are 1$ / item.
What happens is when they upgrade, they aren't billed and their usages are just transferred over to the new subscription where they'll now pay the lower rate for all their past usages. I don't want to charge them for their usages on the old subscription immediately, but want the new invoice to be 2$ / [# of items on old usage] and 1$ for all future usages. Is that possible?
I may be misunderstanding, but does this give you the answer you're looking for: https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#metered-billing
Ah, I suppose not
That just clears the usage for the t1. What are you setting proration_behavior to right now?