#Osiris
1 messages · Page 1 of 1 (latest)
I missed specifying subscription has a monetary threshold of 500$
The above is just a simpler example, I can send the test mode subscription on which I verified this behaviour.
sub_1MqXGVLJhqt57ntneuLhfijZ In this most recent 2 invoices are due to successive threshold
first invoice was due to 51 users. Then I removed a user which led to 50 users but the usage jumped from 0 to 50 and threshold was charged again. So customer was charged 50 units for removing a user. Ideally without threshold, they would have paid for51 users at period end as its max.
Could you please share how are you reporting usage?
For example share a Request ID? req_xxx
simple
await stripe.subscriptionItems.createUsageRecord(subLi.vendorLinteItemId, {
action:QuotaType.Increment,
timestamp,
quantity: usage
});
sorry for the delay @latent hatch had a call
yeah sure
K looking at your example
Okay so that example Subscription has many many Prices on it
I assume you only mean to have a single Price, correct?
in file-storage example ? yes
sub_1MqXGVLJhqt57ntneuLhfijZ is what I'm talking about
Can you create a fresh example Subscription that just has the single Price
And then add usage as you described above