#JonnyDenGro

1 messages · Page 1 of 1 (latest)

jolly troutBOT
plain river
#

Good question, let me check

#

Hmm doesn't look like there's a way to do this in one go, you can limit the results to say 5 summaries in the first API call and then use the results in there to set ending_before or starting_after filter

#

There's no way to retrieve the usage for a specific period via the endpoints that exist today

fallen badge
#

Thanks for clarifying.
Do you happen to know how these results are ordered? I.e if I set the limit to 1, would this be the very first billing period, or the latest?

plain river
#

My understanding is that they are but only 99% sure, I'd recommend giving it a go in testmode to be 100% certain

fallen badge
#

No problem, thanks for you help!

plain river
#

The list is sorted in reverse-chronological order (newest first). The first list item represents the most current usage period that hasn’t ended yet.