#mathankumar-price
1 messages · Page 1 of 1 (latest)
Hi, you can take a look at this Doc: https://stripe.com/docs/products-prices/pricing-models#tiered-pricing
thanks but if users not used that first 10 but amount would collected for that 10 in month end, after 10 that is usage based
?
in graduated and volume based there are totally usage based but how can set base amount for first 10 quantities?
Hey, sorry I am swinging around a few places. Will respond in this thread
okk no problem😅 , any suggestion? for thta scenerio?
I am trying to grasp your pricing model. So you want set fixed price for first 10 quantity but set usage based for 10 -> infinity?
What does that mean in example?
for example, my plan has 10 project limit and total price for that 10 project is 100$ if thay used 10 or 1,2,3....10. but after that 10 we charge for every project per 50$ or something this is actual scenerio...!
So you will still use usaged based model eventually, but need to somehow fix the price to $100 if report is even 1 or 2?
yes thats right only for first 10
after that 10 to any we need to do usage based !
How about using usage based as normal, 2 tier (<10 and >= 10) For first tier set the price = 0, and add a flat fee = 100$?
awsome...! for >=10 flat fees would be? empty?
'tiers' => [
['unit_amount' => 0, 'up_to' => 10, 'flat_amount' => 10000],
['unit_amount' => 100, 'up_to' => 'inf'],
],
is right...?
Yep I think so. Please test out in Test mode
Yes its working thanks...🥳
Awesome! Happy that helped!
Yes
can i do this in plan also?, i did this scenerio in price now
$stripe->prices->create(
[
'nickname' => 'test price',
'tiers' => [
['unit_amount' => 0, 'up_to' => 10, 'flat_amount' => 10000],
['unit_amount' => 100, 'up_to' => 'inf'],
],
'currency' => 'usd',
'recurring' => ['interval' => 'month', 'usage_type' => 'metered'],
'product' => 'prod_M3oMQZEqzr2Vkd',
'tiers_mode' => 'graduated',
'billing_scheme' => 'tiered',
'expand' => ['tiers'],
]
);
replacing a price to plan will work?? or any suggestion?
Should be supported according to API Reference: https://stripe.com/docs/api/plans/create#create_plan-tiers-flat_amount
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.