#Tassaduq Hussain
1 messages ยท Page 1 of 1 (latest)
The quantity will roll over to the higher tier once it hits the threshold you set. What specifically do you want to update there?
And are you trying to update via the Dashboard or API?
node js lib
i want to charge a customer based on it's quantity of items, which is being changed on weekly basis
To clarify, you want to update the quantity on an existing Subscription, correct?
If so, you would get the Subscription Item ID with the quantity you want to update and then update its quantity: https://stripe.com/docs/api/subscription_items/update#update_subscription_item-quantity
current subscription qty is one but it's still showing zero on incoming invoice
Can you give me the Invoice ID?
I'm afraid it's confidential
The Stripe Invoice ID I mean, which isn't sensitive.
Alternatively can you provide the request ID showing an attempt to update the quanity? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
That's the response from a list API call, yeah, but that information isn't relevant to the situation you're asking about.
and i can't see any quantity here in case of graduated pricing
Can you find that request ID? Or share the code you're using to update the quantity?
Lurk: Are you mixing up quantity top-level on Subscription and the quantity on a given SubscriptionItem?
I'm not updating the quantity from api, i am developing that module, before this we use the Dashboard UI
are you asking about this?
yes but you seem to be looking for a quantity that isn't here. Can you share your exact code?
no, but confused about what quantity graduated pricing pick?
Okay so you are solely asking about what the Dashboard shows and nothing else?
If so, can you share a real subscription id for us to look at?
@supple robin
Sorry I read this, I'm just as confused as Rubeus about what you're asking/looking at and what is blocking you right now
We are already using UI, but we need to develop system to handle everything
let me ask my employer
okay I think we're still unsure what you are asking. You share a little screenshot of a List subscription API with nothing else and we don't yet grasp what you are doing
Sharing exact code and information would be really helpful
you gave me 2 minutes ๐
๐ Sorry, take your time
So what is your issue/confusion? This is a price that has a flat amount of $0 and a unit amount of $200 per unit (on top of having tiers that don't make sense since they are identical)
what exactly is confusing/blocking you here?
in current invoice the quantity item is 0
@supple robin see the first screenshot
i need to update that quantity
That is a metered price though did you notice that? metered comes with you reporting usage via the Usage Record API. https://stripe.com/docs/billing/subscriptions/metered-billing
in that case there's no "quantity"
An example of metered would be to charge per number of emails sent in a month, and reporting email creation hourly or daily with usage records
each month you start at 0 until you report usage
then how come it was 15 before?
ok so how can i report usage?
Either because the subscription had a different price before (it's not the original price for example) or because you reported usage (or your code did)
โ
I'm sorry, I;'m struggling to follow you right now
Do you understand metered billing? Does your company use metered billing right now?
not sure, the previous dev developed it
our sole requirement is to charge a customer per item whose quantity can be changed on weekly basis
Looks like that person might have set the usage record by hand in the Dashboard back in June
so seems like a complete misunderstanding somewhere in your company right now
my guess is that you never wanted to do metered billing and the Price on that Subscription is mis-configured and so it doesn't charge the quantity as it should
(that's a pure guess though, I don't know your business model)
But if you want that person to have a quantity of 15 and then be charged each week for 15, then the Price is wrong
using standard billing with subscription items with quantity cannot do the job either as it has a limit of 20
absolutely not
the limit of 20 is for the number of separate prices on a subscription
quantity has no limit (beyond the fact that the invoice can't be for more than $999999.99 USD)
I'm worried you're mixing up a lot of concepts here because you're new to the Stripe API and inheriting someone else's code
Sure thing, do you think you're unblocked?
yes