#orange_api

1 messages ยท Page 1 of 1 (latest)

trail cragBOT
#

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

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

shrewd kindle
#

I'm trying the easier way now
this is easier to do in reverse (i.e. 'check which transactions are included in a specific payout'), by calling List Balance Tranasactions and passing a payout argument

#

Got to the point of balances

balanceTx.source {
id: 'pyr_1TFG6vIuECXjOXfgSeKSlkEU',
object: 'refund',
amount: 2202,
balance_transaction: 'txn_1TFG6vIuECXjOXfg0JjE8aP7',
charge: 'py_1TE8HDIuECXjOXfgdHW8rrL2',
created: 1774539977,
currency: 'eur',
metadata: {},
payment_intent: null,
reason: null,
receipt_number: null,
source_transfer_reversal: 'trr_1TFG6vBaRfwWelZyvmhYkOh1',
status: 'succeeded',
transfer_reversal: 'trr_1TFG6vBaRfwWelZyvmhYkOh1'
}

vast rivet
#

Hello! Let me take a look at your previous thread for context ๐Ÿ™‚

shrewd kindle
#

Hello

#

Sure no problem. Thx

#

I might of figured it out with 'data.source.source_transfer_reversal'

#

Now I just need to look at the data

vast rivet
#

Thanks for your patience! So you're listing all Balance Transactions for a specific Payout ID and want to get the Refund ID associated with the Payout?

shrewd kindle
#

yes

#

Looks like the right solution

vast rivet
#

And you should be able to expand source to get the full object instead of just the ID if needed.

shrewd kindle
#

Thank you!

vast rivet
#

Happy to help!