#morteza_issuing-spendinglimits

1 messages ยท Page 1 of 1 (latest)

keen novaBOT
#

๐Ÿ‘‹ 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.

merry stratusBOT
languid locust
#

morteza_issuing-spendinglimits

young parrot
#

I know the limit but how can I get how much is remained from that limit

languid locust
#

@young parrot we don't surface that information in the API today unfortunately

young parrot
#

I was checking the sample issuing treasury project

#

they have calculated by adding approved authorizations' amount

#

but for just the last 10 authorization

languid locust
#

yeah unfortunately you have to cache that information in your database and keep track of it yourself.

young parrot
#

what if there's a one-year limit and then I should add all authorizations for one year

languid locust
#

yeah or store this in your database

languid locust
#

yes for example, webhooks to listen for all Issuing Authorizations and Transactions. It's not easy though ๐Ÿ˜ฆ

young parrot
#

may I ask another question

#

?

languid locust
#

sure, fire away!

young parrot
#

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

languid locust
#

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

young parrot
#

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

languid locust
#

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)

young parrot
#

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, ...

languid locust
#

I'm sorry you're losing me. You seem to use our API vocabulary Authorization and Transaction but meaning something different?

young parrot
#

no

languid locust
#

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?

young parrot
#

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

languid locust
#

on your own, or you know when an authorization is declined because they reached their limit

young parrot
#

ok