#ajay

1 messages ยท Page 1 of 1 (latest)

pearl stirrupBOT
sharp wadi
#

Hello ๐Ÿ‘‹
What have you tried so far?

hidden escarp
#

const usageRecordSummaries = await stripe.subscriptionItems.listUsageRecordSummaries(
subscriptionId,
{ limit: 1 },
);

#

there is no option to provide start time and end time

sharp wadi
#

Ah I see. Hmm I don't think the endpoint supports that filter yet.
The list is sorted in reverse-chronological order (newest first) so you may be able to perform filters quickly by doing a binary search.

hidden escarp
#

Do we have any other alternative for it?

sharp wadi
#

Thinking..

#

Unfortunately, don't think there's a workaround for this at the moment.

hidden escarp
#

Is there a way to get last 30 days reported usage?

#

I want this data

#

i am getting per month summary

pearl stirrupBOT
hidden escarp
fallow token
#

Hi, stepping in and catching up here.

hidden escarp
#

Hi

#

Any assistance here, would be of great help..

fallow token
hidden escarp
fallow token
#

There is not, the Dashboard functionality and the API are different. Some overlap and some do not. You'd want to list, https://stripe.com/docs/api/usage_records/subscription_item_summary_list and look at the sated on your end for that usage. There is not a workaround via the API.

hidden escarp
#

So there is no way to get the following data?

fallow token
#

That is correct, not via the API unless you list it and look at the dates yourself.

hidden escarp
#

how to do that? look at the dates?

#

so you mean look at the dates via dashboard?