#kasvith-billing-usagerecord

1 messages · Page 1 of 1 (latest)

distant runeBOT
digital helm
#

kasvith-billing-usagerecord

#

@exotic maple No there isn't really a way to "list UsageRecords". Usually those are more tied to like an API request or an email sent or something where you don't really need a break down, more a total quantity/number

#

So I think in this case you'll have to track this on your end

exotic maple
#

how can we track usage records if stripe is not telling us which were failed to charge

#

isnt there any way we can know this?

#

we are charging like 0.01GPB for a ticket, thats why we used metered billing

digital helm
#

what do you call "a ticket"?

#

I'm sorry I don't really follow. Usually you have a period, like monthly, you accumulate UsageRecords during that period and at the end of the period we sum them all up and create an Invoice to invoice the customer for it. And that Invoice has all the UsageRecords for that period

earnest pagoda
#

Hi! I opened the thread.

exotic maple
#

hi @digital helm sorry for late reply

#

in our business we are issuing tickets for users and adding usage records(accumulating)
at the end of billing period we are collecting the money with stripe

the problem is, when stripe attempting to collect money, the user's card can decline

in case of failure, we want to cancel out tickets issued for given time period(lets say we collect charges at each day)

#

so we were hoping stripe will send us some information about failed usage recordes

earnest pagoda
#

Hey, my colleague is not here at the moment, but I will try to help you with this.

exotic maple
#

ty

earnest pagoda
#

What do you mean by this:

stripe will send us some information about failed usage recordes
What information are you looking for?

exotic maple
#

for example the timestamp of failed usage records, anything to identify which usage records were affected by card decline

#

lets say we issue tickets apr-2 to apr-3
and we ask stripe to collect funds on apr3

on apr3 we get from stripe card declined
now we know card failed and we want to cancel the issued tickets on our platform

earnest pagoda
#

You can correlate the tickets by creation dates that fall within the last billing period.

distant runeBOT