#morteza_issuing-spendinglimits
1 messages ยท Page 1 of 1 (latest)
๐ 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/1229819605518651413
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
morteza_issuing-spendinglimits
I know the limit but how can I get how much is remained from that limit
@young parrot we don't surface that information in the API today unfortunately
I was checking the sample issuing treasury project
they have calculated by adding approved authorizations' amount
but for just the last 10 authorization
yeah unfortunately you have to cache that information in your database and keep track of it yourself.
what if there's a one-year limit and then I should add all authorizations for one year
yeah or store this in your database
how should I track
webhooks ?
yes for example, webhooks to listen for all Issuing Authorizations and Transactions. It's not easy though ๐ฆ
sure, fire away!
I also need to show pending for a transactions which isn't captured yet
but transaction is created when actual capturee happens
is there any workaround for that
I don't really follow what you mean sorry. You seem to understand the Transaction happens on Capture, so you want the Authorization before the Transaction happens
authorization happens before transactions, it's ok
but I want to know if transaction is in pending state
or not
again in the sample app, they are seperated but we want a list of transactions
I'm sorry I really don't get it ๐ฆ
An Authorization is when funds are auhorized/on hold and a Transaction is when funds are captured/move from your balance (or come back)
so based on what you said
can I know if a transaction is in pending state
?
there is pending for authorization
I tried to connect it to transacttions somehow, but it gets complicated when status becoms reveresd, ...
I'm sorry you're losing me. You seem to use our API vocabulary Authorization and Transaction but meaning something different?
no
Then I am sorry I really don't understand what the problem is. Have you tried in Test mode maybe to place a hold on a card and see what objects are created before and after capture?
forget it
lemme ask another one, what about knowing if limit is reached for the card
do we have any fields for taht
?
or again I have to track transactions
?
and find on my ownn
on your own, or you know when an authorization is declined because they reached their limit
ok