#freeagent-dev_docs

1 messages ¡ Page 1 of 1 (latest)

bronze oreBOT
#

👋 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/1339185115883900929

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

graceful cosmos
#

Again for the balance.available event, can you confirm that it fires for available balance transactions only (and not for pending balance transactions)?

oak cosmos
#

hi there!

#

Is there any way we can be notified when the balance changes due to a negative transaction?
no sorry.

graceful cosmos
#

Oh that seems strange but thanks for the clarification.

#

I've asked another question and have 2 more - shall I keep posting them in this thread?

oak cosmos
#

you can post them here

graceful cosmos
#

Question 2: Again for the balance.available event, can you confirm that it fires for available balance transactions only (and not for pending balance transactions)?

#

Question 3: In the dashboard UI there is the Balance Summary report which can give the Stripe balance on a particular date in the past. What would be the best way to retrieve the Stripe balance on a particular date in the past via the API?

#

Question 4: We would like to import only transactions that are available, but the list balance transactions endpoint only allows filtering transactions based on their creation date. Is there any way to request all transactions that became available on a particular date? We are exploring the option of using a sliding window e.g. requesting all transaction that were created in the last N days and checking which have status available. For this option how far back would we have to request transactions in order to make sure we do not miss anything i.e. what is the maximum period a transaction can stay pending before it becomes available?

oak cosmos
#

Question 2: Again for the balance.available event, can you confirm that it fires for available balance transactions only (and not for pending balance transactions)?
yes, avilable balance only

#

Question 3: In the dashboard UI there is the Balance Summary report which can give the Stripe balance on a particular date in the past. What would be the best way to retrieve the Stripe balance on a particular date in the past via the API?
the API lets you check the current balance. not the balance in the past.

bronze oreBOT
oak cosmos
#

Question 4: We would like to import only transactions that are available, but the list balance transactions endpoint only allows filtering transactions based on their creation date. Is there any way to request all transactions that became available on a particular date?
what do you mean by "transaction"? you mean all payments that have their balance transaction as "available"?

barren sail
graceful cosmos
#

I mean a balance_transaction, so we are retrieving them with:

#

def retrieve_balance_transactions(from_date, to_date, params = {})
params[:limit] ||= 100
params[:created] = { gte: from_date.to_i, lte: to_date.to_i }

#

but rather than params[:created] we would like to filter by available_on - is that possible?

barren sail
#

Not today, no

graceful cosmos
#

Another question if you don't mind. What is the maximum period a balance transaction can stay pending before it becomes available?