#kasvith-billing-usagerecord
1 messages · Page 1 of 1 (latest)
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
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
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
Hi! I opened the thread.
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
Hey, my colleague is not here at the moment, but I will try to help you with this.
ty
What do you mean by this:
stripe will send us some information about failed usage recordes
What information are you looking for?
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
You can correlate the tickets by creation dates that fall within the last billing period.