#bbqcokefan
1 messages · Page 1 of 1 (latest)
Can you share a request id where this happened?
That's not what happened there
You set quantity for that subscription item to "1"
And now it's 1
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You can see for yourself in the dashboard there
And here was the request where you set it to 1 https://dashboard.stripe.com/logs/req_mJMFQwefmm0bCY
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
But my dashboard shows the "QTY" for the upcoming invoice to be at 229, not at 1.
You shared the wrong request id then
Oh wait
This might just be an issue with the dashboard
Okay, that would explain things. How would I know though if a created invoice will contain the right amount? I am not sure what to trust right now.
Still looking
I see what you're talking about now
I'll need to get a colleague to look at this with me. Bear with me. Unless I'm missing something, this looks worrisome
Yeah, I hope this is a problem on my end. Is there any way I can correct the amount quickly? The invoice willl be generated in a couple of hours in the right amount should be 37, not 229.
We're looking right now
Okay, thank you!
Ok so the issue here is that you have aggregate_usage set to sum on your Price object: https://stripe.com/docs/api/prices/create#create_price-recurring-aggregate_usage
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Because of that, usage is always summed
When you pass "Set" on a usage record with aggregate_usage=sum, then you just set usage at that specific timestamp
You'd need aggregate_usage set to last_ever for you to be able to override usage for the entire period by creating a usage record with set with a more recent timestamp to override everything
So can I update my price to behave this way? Or would I need to create a new one?
You'd need a new one