#brotzka_code

1 messages ยท Page 1 of 1 (latest)

nimble coralBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

verbal nexus
#

I want to get all payments/charges that are included in a balance_transaction.
Can you explain a bit more context here?

#

Each payment will produce a balance transaction adding to your balance

#

Do you mean included in a payout to your bank account?

umbral harbor
#

Sure! I have ethis payout (po_1RJOSqDuIkt4M6OWp3AWH8LU). This payout is directly related to a BalanceTransaction (txn_1RJOSrDuIkt4M6OWDPXQ1TYm). This BalanceTransaction has multiple charges related to it. Given a specific BalanceTransaction I need all related charges.

#

Yes, in a payout! ๐Ÿ™‚

verbal nexus
#

this gets your all the BTs rolled up into that payout

#

then you can used expansion to get the corresponding charge/payment details from the source

umbral harbor
#

Thank you. Let me have a quick look at it

#

Perfect! So the workflow would be

  • get all payouts from desired date range
  • loop through payouts and
  • get all balance transactions with the specific payout id
verbal nexus
#

Yep! (plus expand to get the source payment info)

umbral harbor
#

Yes. All right. Thank you! I think that is enough for now ๐Ÿ™‚