#Mohana-Subscription

1 messages ยท Page 1 of 1 (latest)

tiny salmon
#

Hi there, can you elaborate more on the percent pricing model?

amber jackal
#

I have a product that has metered billing. I would like to have a line item in the subscription that will be charged as per the usage in the metered product. Let's say I have consumed 1000 units (1 unit = 1$), i would like to add a line item that is 10% of the usage or 50$ whichever is lower.

tiny salmon
#

OK, so basically you want to add additional item to the monthly invoice, am I right?

amber jackal
#

yup

#

on a subscription

tiny salmon
#

Got it, you can listen to the invoice.created webhook event, and add the invoice item to the newly generated invoice.

amber jackal
#

cool ! is there any way to show this item during subscription creation ?

#

in a stripe checkout page

tiny salmon
#

If you add the item during checkout, then this item will be included as a monthly recurring subscription item instead of an ad-hoc item.

amber jackal
#

okay ๐Ÿ™‚ thanks Jack

#

@tiny salmon I think we missed the percentage part

#

So if i have to add the line item, then i would have to create a new price right ?

#

like 1 customer can have usage of 900 units for whom the additional line item would be 90$ and another customer can have usage of 100 units for whom the additional line item would be of 50$

tiny salmon
amber jackal
#

hmmm, got it

#

it essentially creates new prices for every customer

tiny salmon
#

Actually for every invoice.

amber jackal
#

oh yes

#

okay ๐Ÿ™‚