#-mark-simpson-_api
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/1392904170901602307
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello there
hello. Hopefully my question makes some sense
You are looking to go from Charge --> Payout
Yes
Unfortunatley not a super easy way, but best thing to do is to retrieve the Charge and expand its Balance Transaction and look at the available_on date and then you can list Payouts based on that date -- the Charge would be included in the first Payout that corresponds with that date or after.
Otherwise you basically are already doing the correct thing which is to list Balance Transactions by Payout and match.
Thanks. when querying for payouts by date in this case which date parameter should i use? the api doc shows several (created, arrival, starting, ending..)
Ah good question -- should be arrival_date
That should correspond to the available_on of the BT
thanks. I will give this approach a try.
And this also addresses my concern about 'non-automatic' payouts. It seems that my system currently would not find a payout date for a charge if the payout was non-automatic (because i go from payout->balance transaction->charge; and payout->balance transaction only works for automatic payouts)
thanks again.