#morteza_api
1 messages ยท Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- morteza_api, 1 day ago, 21 messages
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1240289316857712643
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
I want to calculate balance for issuing cards and I need to add approved authorizations' amount and subtract it from the spending limit, but the question is what if they were refunede !!
even in sample issuing treasury project, for calculate spending they are only summing approved authorizations
Hello
Give me a few minutes to catch up here.
I'll respond as soon as I can ๐ thanks
sure
Hello
hey there
So you are trynig to track an Issuing Card's balance relative to their spending limit?
yes
Yeah I don't think refunds are taken into account here
for now want to use stripe api and we plan to do it on our end using webhooks
Is that the concern? That you aren't seeing refunds reduce the spending limit amount?
Because I believe that is expected
So you would just look at Transactions: https://docs.stripe.com/api/issuing/transactions
And look at those which are type: capture but not refund
but transactions itself are created after authorization is closed I guess
so I should then consider pending authorizations as well, right ?
Yes I believe that's right
You can test that to be sure, but my understanding is that pending authorizations are also taken into account for the spending limit
I believe it would instantly be closed as a declined authorization if it exceeds the spending limit
Sure thing
I think I need to check if the authorization is approved and at the same time it's pending, to make sure pending is not because of waiting for approval
then along with transactions data we'll be correct
Yep that sounds right to me
Err wait it shouldn't be both "approved" and "pending"
Like the status can only either be closed, pending, reversed
Once it is approved then it would have a status of closed
Oh yes you are correct, sorry.
If the merchant uses manual capture then that won't be immediate
yes