#obo-invoice-usagerecord
1 messages · Page 1 of 1 (latest)
obo-invoice-usagerecord
@robust fractal you need to use action: 'set' to override a previous UsageRecord. You would set the quantity to 0. You have to use the exact same timestamp you used last time: https://stripe.com/docs/api/usage_records/create#usage_record_create-action
I'm assuming this is only doable via the api? @proven quiver
yes
@proven quiver it seems that I have quite a few timestamps for this leading up to the actual billing moment (dozens). Is there a way to clear all usage records for a subscription?
no that doesn't exist unfortunately
okay, looks like I may need to do some programming. Thank you
actually one more question @proven quiver it looks like I can receive usage record summaries on the API, but not a list of the usage events like on the dashboard. Is there a way to list these out via the API?
no that is impossible 😦
that's usually something you list yourself
like in your own database
I see. I'm apparently in a bit of a pickle
Your best best is likely to swap them to a different metered Price and use https://stripe.com/docs/api/subscriptions/update#update_subscription-items-clear_usage and then swap them back
I can't think of an easier way
Could I just add a credit to their account to offset the bill?
or is there a delay on that
(they're going to be billed in about 2 hours)
or a coupon
you can do a 100% one-time Coupon I think which would solve the problem but it's a bit weird. You could also cancel the Subscription and recreate it
this is an enterprise customer, so we're able to talk with them
the cancellation would get weirder due to all of our automated stuff
I think this will solve the problem. Thanks for your help
sure thing!