#sokolriiwards
1 messages · Page 1 of 1 (latest)
100-200 = $4
I don't understand. Can you write a full sentence with a concrete example?
Basically, how do I pass number of customers when creating a subscription. I was able to do this but It creates a new Pricing every time someone subscribe.
I can't see your screenshot. Also can you share a specific request ID (req_xxx) or Subsciption ID (sub_xxx) with this issue?
how do I pass number of customers when creating a subscription
Do you mean the price quantity?
Yes
There is item.quantity to set the quantity: https://stripe.com/docs/api/subscriptions/create#create_subscription-items-quantity
Is items.quantity used for number of customers?
I thought it was used for number of (products) packages.
I'm still confused by your question. What do you mean by "number of customer"? What exactly are you trying to do? Can you share a specific Subscription ID (sub_xxx)?
There is a package "Premium" usage based.
0-500 units (included in the package)
For every additonal 100 units charge $2.
I set up the table on Stripe Dashboard.
I want to charge them every month based on how much units they have (number of customers).
If it's usage based, then you need to create usage record: https://stripe.com/docs/api/usage_records/create
It is usage based and we want to charge them for that number of customers every month. Not just for number of customers they got only that month
Then it's not a usage based subscription. It's maybe a tiered pricing, when you update the quantity as mentioned before: https://stripe.com/docs/products-prices/pricing-models#tiered-pricing
I see, i think our code is right, the pricing is not set correctly in Stripe dashboard.
We have set Graduated pricing, that is creating a problem.
Which problem? You still haven't shared any error message or issue on your end.
Will create a proper thread explaining everything. You can close this thread.
Than you very much.