#mac_man

1 messages · Page 1 of 1 (latest)

analog islandBOT
late stag
#

hello! can you share the request id where you set total usage to 0?

tough basalt
#

Hello! Yes, my colleague will join this thread momentarily and give the id

thick zealot
#

Hey all! The request id is: req_cO0eOcg8V6dKJh

#

This request should have set the usage on subscription item si_NrGCwiAq4LuJEU to 0, but did not.

late stag
#

it'll take a while for me to test this out, i'll get back to you shortly

tough basalt
#

Sounds good, thanks so much for your help

late stag
#

okay, i think in order to achieve what you're trying to do - you need to "reset" each of the existing usage records. When you make the request with action=sum, you need to input the exact timestamp of the old usage record which you want to overwrite, does that make sense?

#

so for example, if you have usage_record : 1 at 1 am, and usage_record : 2 at 2 am, you need to make a request to set usage_record : 0 and 1 am, and usage_record : 0 at 2 am

analog islandBOT
thick zealot
#

I did as you suggested, and yet the usage remains. I used the stripe console to do it this time.

mellow summit
#

Hi @thick zealot can you share with me the request ID?

thick zealot
#

req_unHAXeiFiHhILD

mellow summit
#

Did you use the exact same timestamp?

thick zealot
#

I selected the exact same time as what is shown in the stripe console

#

to use the exact same timestamp I would need to use the API

#

I can do that and share the results

#

There should, however, be a way to do this from the stripe dashboard right?

mellow summit
#

I don't think there's way to create Create a usage record through Dashboard, you'll need to call the API to create a usage record.

thick zealot
#

there is a way to create a usage record, using the button in the top right hand corner of this screenshot. This page can be reached by navigating to any subscription that uses metered billing, and then clicking the ellipsis located on the subscriptionitem under the Pricing header, and finally selecting view usage history

#

I think it would make sense to me that the API would be capable of more than the dashboard, and maybe even more reliable. I will test out executing the set action via the API and see if that works.

#

the API worked