#nicus_api

1 messages ยท Page 1 of 1 (latest)

velvet kilnBOT
#

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

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

tribal hull
#

Hi, I want to get all the charges related to this payout:

#

On the dashboard is show it has transactions linked

#

but I tried to get it from the API like this:

#

client = StripeClient("DEV", version=StripeClientVersion.V2024_04_10) charges = client.stripe.BalanceTransaction.list( payout="po_1Pz6vRR0CU5Ba1iiFFR5EMQt", type="charge", expand=["data.source"], stripe_account="acct_1PyXy9R0CU5Ba1ii" )

#

But the response I get is :
<ListObject list at 0x7311c9d48b80> JSON: { "data": [], "has_more": false, "object": "list", "url": "/v1/balance_transactions" }

#

Payout id: po_1Pz6vRR0CU5Ba1iiFFR5EMQt
Account ID: acct_1PyXy9R0CU5Ba1ii

boreal trailBOT
lone crypt
#

Hi there ๐Ÿ‘‹ offhand it looks like you're approaching this correctly. In your output, is data actually empty or are the contents of it just collapsed?
Are you able to share the ID of the request you made to retrieve that list of Balance Transactions?

tribal hull
#

hi, charges is an empty array,so it has not information linked.

#

How can I share to you the id of the request?

#

in the body of the response of BalanceTransaction.list I found this id: 'req_7L7Alz7vhrjCts'

#

is that one?

lone crypt
#

You can find the ID of the request from the logs in your Stripe dashboard
Yup, that's the one

#

Oh, I think the type filter is likely leading to the behavior you're seeing. If you drop that from the request do you see Balance Transactions returned?

While you test that I'll take a closer look at the transactions associated with that Payout.

#

Yeah, it looks like most of these have a type of payment, so they're being excluded from your list request due to the type filter you're using.

tribal hull
#

you are awesome, now they appear, thank you very much!