#cbayford-subscription-metered

1 messages · Page 1 of 1 (latest)

opal craterBOT
chrome citrus
#

Hi 👋 we do not prorate for metered Prices, because they are billed at the end of a billing period rather than at the beginning, so when an update is made there is no proration to be made as that Price hasn't been paid for yet.

What is your desired proration behavior for the flow you're working on building?

fierce copper
#

If upgrading, I want the total usage to fall into the new price, however, if downgrading I want the usage to fall under the current price (not the new price downgrading to)

chrome citrus
#

Gotcha, so when upgrading you'll want to edit the existing Subscription Item and provide a new Price for it, the usage will remain on the Subscription Item and will be billed against the new Price at the end of the billing period.

When downgrading, you'll want to add a new item to the Subscription for the new Price. The usage already reported for the original price will remain on the associated Subscription Item, and will be billed for the original price at the end of the billing period.

fierce copper
#

ok, so I can have two metered prices in the same subscription? When i report usage I guess I would just have to specify the price I want the usage to be applied to?

chrome citrus
#

Yes, you can have multiple items in a Subscription that use a metered Price. Rather than specifying the Price when creating the Usage Record, you will need to provide the ID of the associated Subscription Item.

fierce copper
#

ok, I am using laravel cashier for integration, so I would assume that would be the stripe_id column in the subscription_items table? (si_somevalue)

chrome citrus
#

I'm not exactly sure, but our Subscription Items do have an si_ prefix, so that seems like it may be right.

fierce copper
#

ok great, I will give that a shot! Thank you so much for the quick response!

chrome citrus
#

Any time!