#rzzz | Real Deal

1 messages ยท Page 1 of 1 (latest)

late wolfBOT
slender stump
radiant scarab
#

Yes, Already referred to the docs. But i still can't achieve the behavior that i want

slender stump
#

Can you elaborate on the behavior you're looking for?

radiant scarab
#

for the metered subscription I want it to be like this. but this is for the standard pricing subscription

#

here's the metered based subscription

slender stump
#

What have you tried so far?

radiant scarab
#

same as the standard pricing i tried the setting the proration_behavior: 'always_invoice',

slender stump
#

I think metered usage prorations work differently than standard pricing.. You can't show a whole amount as prorated amount as the total is calculated at the end of the billing period.

radiant scarab
#

I see "Prorations are created only for licensed (per-seat) subscriptions because theyโ€™re billed at the start of each billing period."

slender stump
#

yup

If you did want to differentiate and charge different rates depending on when the usage was added, you could do something this:

  • Add a new subscription item for the new metered price (do not update the existing subscription item)
  • Stop reporting usage for the original subscription item, and report all new usage for the new subscription item
  • After the period is over and the invoice has been generated, delete the original subscription item
#

We won't calculate it automatically though

radiant scarab
#

I'll try this one. Thanks

slender stump
#

๐Ÿ‘

radiant scarab
slender stump
#

no, for the prorations. The total should be automatically calculated with reported usages.

#

sorry, I should've been more clearer ๐Ÿ˜…

radiant scarab
#

No worries. Thanks for the idea

radiant scarab
#

Hi again

#

@slender stump sorry for the ping.

#

for the flat fee should it be prorated?

slender stump
#

It should be yes but since we don't calculate prorations on metered sub at all, you'd likely need to add a negative invoice item to offset the flat fee

radiant scarab
#

what i did on this scenario is the customers subscription is premium and he had 20 usage for example. then he downgrade his subscription from premium to starter

radiant scarab
slender stump
late wolfBOT