#jacob_best-practices

1 messages ¡ Page 1 of 1 (latest)

neon terraceBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1328857211467858011

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

next whale
#

Hi there

wraith moss
#

These docs are referring to notifying users when they hit a certain spend or usage limit, right? Not sure how that applies to my credit burn requirements

#

I see the bit about billing thresholds, but I don't want to bill immediately upon hitting a threshold, I was planning to use the metering system

next whale
#

Gotcha

#

I think you can either use billing credits or do usage based pricing with tiers and a flat fee. The flat fee could be for the first 10GB, then you can record usage at anything above 10GB and have this line up with the tiers

wraith moss
#

How would I use billing credits to do this?

#

From the docs it seemed like billing credits are currently only $ based?

next whale
#

You're right, credit grants are currently only monetary amounts

wraith moss
#

Is there a timeline of when credits would apply to meters?

#

Seems like that is out of the running for now? So how might I setup the flat fee?

Or should I only meter past the included storage amount?

neon terraceBOT
next whale
#

You can still record usage under 10GB or only start to send usage to Stripe once the customer has gone past 10GB and have the first tier correspond to the pricing you have in mind for 10GB - 250GB

wraith moss
#

With the flat fee approach, how would I manage to not have the user get charged for the first 10gb? Would I switch prices for the additional storage product from the flat fee to the full volume tier?

#

If I setup the subcription with the volume tier, once they go past 0gb meter, they will be in the 1 - 250 range, and charged for the first volume unit

next whale
#

I recommend testing out graduated tiered pricing with flat fees. For example, you could set up the first tier with unit_amount_decimal of 0, up_to value of 10, and flat_amount_decimal of 2000 if you want to charge a flat amount of $20 for usage of up to 10GB

wraith moss
#

I want to include the first 10gb in the subscription plan

#

Hence the credit burndown model seems like the most 1:1 approach.

#

Ideally, I could credit the user for 10 units of the meter, included in their plan

glacial cairn
#

Hi there! Stepping in for my colleague here

wraith moss
#

Oh I see, Credit Burndowns leverage Billing Credits

#

This ties the credit to the customer, not even to the subscription?

glacial cairn
#

That's correct, they are applied at the Customer level

#

Is it that you want to make sure the customer has used at least 10 gb before Invoicing them, or that you want to give them 10 gb for free?

wraith moss
#

I want to give them 10gb for free as part of their flat fee subscription

glacial cairn
#

Have you considered creating a negative Invoice Item, added to the Invoice when its created, that represents the 10 gb?

wraith moss
#

No I had not. My intial approach was to use coupons, to achieve a similar goal

#

However, I price at volume tiers of 250. Which worked for other plans (when we offered 250gb free). But I don't think the coupon, nor a negative invoice would work in this situation

glacial cairn
#

I was suggesting a negative Invoice Line Item on an Invoice. Could you explain why that wouldn't work?

wraith moss
#

From my understanding that would reduce the cost of the storage to counter act the price invoiced via metering right?

You are suggesting, if my meter charges 10gb at say, $10. Then I would include a negative line item of -$10, to counter act.

However my storage meter charges at 250 unit volumes. So 0-250 gets charged the same amount. There is no way to counter act the price of the 10gb stored, since the meter and product would charge the same for the full 250gb as it does for 10gb

glacial cairn
#

If we're assuming $1 per GB, if a customer is charged for 250GB ($250 on the Invoice). In the Invoice for $250 you would add a line item for negative $10, which would reduce the invoice amount to $240 for the free 10 GB

wraith moss
#

250 gb is charged $15

#

150gb used would still be charged $15

#

1gb would still be charged the same $15

#

I am using Usage-Based per Package pricing

glacial cairn
#

Why don't you just report 10 fewer GB of usage for these customers?

wraith moss
#

Yeah that was my other idea that I mentioned to your colleague.

Seems like that might be the necessary approach? To meter internally and only report what is past the included limits of the plan

neon terraceBOT
glacial cairn
#

I think that sounds like the best approach based on what you've told us

wraith moss
#

I remember discussing this in the past and credit burndown seemed like a potential solution in the future. So I wasn't sure if that was fully released yet

#

But it seems Stripe has taken a different approach with the feature design?

median flax
#

Hi! I am stepping in for my colleague. Just catching up on the thread!

quasi pelican
#

Credit burndown is on monetary amount instead of the usage amount.

From what you shared earlier, credit burndown will not work since your requirement is to give 10GB for free.

#

I think the best approach will be sending the usage past 10GB of usage

wraith moss
#

Sounds good!

#

Thank you for helping talk through that and reviewing