#Ioanna
1 messages · Page 1 of 1 (latest)
Hi
there is no substract action, you can either set or increment an usage_record
https://stripe.com/docs/api/usage_records/create#usage_record_create-action
I think in your case you can simply do a set with the new substracted value
I tried setting the usage and it increased even more
Can you share the ID (req_xxx) of the API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
I tried setting it through the stripe ui
But the problematic subscription id is: sub_1MW8y6K9qmDpbyxADXWpfuJB
Yeah I mean what is the requestId you did in order to set/increase the usage record?
Not sure how to get that tbh
in the response header of the Stripe API call, you have the requestId, can you share it please?
req_sffY4fODsEgR2N
Thanks! Give me a few minutes to look into this.
In the request you shared you set the quantity to 28 and it seem to have worked. So what is the issue?
That the current usage for that person is not 28 but 72
You are correct, let me check this.
thank you very much
yeah, that's weird, I don't know why it appears that way, since you use action:set. I'd suggest writing to https://support.stripe.com/?contact=true to dig into this in more detail, we spent 10 minutes looking here and don't know why