#Tassaduq Hussain

1 messages ยท Page 1 of 1 (latest)

magic kite
unique bronze
#

now it is

#

and i can't seem to update the quantity

magic kite
#

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?

unique bronze
#

node js lib

#

i want to charge a customer based on it's quantity of items, which is being changed on weekly basis

magic kite
#

To clarify, you want to update the quantity on an existing Subscription, correct?

unique bronze
#

current subscription qty is one but it's still showing zero on incoming invoice

magic kite
#

Can you give me the Invoice ID?

unique bronze
#

I'm afraid it's confidential

magic kite
#

The Stripe Invoice ID I mean, which isn't sensitive.

unique bronze
#

this is that subscription items array

magic kite
#

That's the response from a list API call, yeah, but that information isn't relevant to the situation you're asking about.

unique bronze
#

and i can't see any quantity here in case of graduated pricing

magic kite
#

Can you find that request ID? Or share the code you're using to update the quantity?

supple robin
#

Lurk: Are you mixing up quantity top-level on Subscription and the quantity on a given SubscriptionItem?

unique bronze
#

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?

supple robin
#

yes but you seem to be looking for a quantity that isn't here. Can you share your exact code?

unique bronze
supple robin
#

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

unique bronze
#

We are already using UI, but we need to develop system to handle everything

unique bronze
supple robin
#

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

unique bronze
#

ok

#

@supple robin any luck?

supple robin
#

you gave me 2 minutes ๐Ÿ˜…

unique bronze
#

๐Ÿ˜‹ Sorry, take your time

supple robin
#

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?

unique bronze
#

in current invoice the quantity item is 0

#

@supple robin see the first screenshot

#

i need to update that quantity

supple robin
#

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

unique bronze
#

then how come it was 15 before?

unique bronze
supple robin
#

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)

unique bronze
supple robin
#

I'm sorry, I;'m struggling to follow you right now

#

Do you understand metered billing? Does your company use metered billing right now?

unique bronze
#

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

supple robin
#

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

unique bronze
#

using standard billing with subscription items with quantity cannot do the job either as it has a limit of 20

supple robin
#

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

unique bronze
#

ooh

#

thanks

#

got it

supple robin
#

Sure thing, do you think you're unblocked?

unique bronze
#

yes