#nicus_api

1 messages ¡ Page 1 of 1 (latest)

lilac wrenBOT
#

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

📝 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.

heavy otter
#

Hi, I am trying to associate some payments made with a standard payouts

#

I tried to get the information using this script:
client = StripeClient("DEV", version=StripeClientVersion.V2024_04_10) charges = client.stripe.BalanceTransaction.list( payout="po_1Pz6vRR0CU5Ba1iiFFR5EMQt", expand=["data.source"], stripe_account="acct_1PyXy9R0CU5Ba1ii" )

#

but the information on charges, returns always a null for charges.data[x].source.payment_intent

lunar quartz
#

Hello

heavy otter
#

hi

lunar quartz
#

These Charges are the result of Destination Charges, yes?

heavy otter
#

sorry, can you rephrase?

lunar quartz
#

The Charges on the Connected Account, they are the result of Transfers from your platform?

#

Not the source

#

charges.data[x].source_transfer.source_transaction.payment_intent is what you want

#

You will need to expand objects as needed

heavy otter
#

let me check

#

how can I expand source_transfer?
charges = client.stripe.BalanceTransaction.list( payout="po_1Pz6vRR0CU5Ba1iiFFR5EMQt", expand=["data.source_transfer"], stripe_account="acct_1PyXy9R0CU5Ba1ii" )

throws: his property cannot be expanded (data.source_transfer).

lunar quartz
#

data.source.source_transfer

#

You are going Balance Transaction --> Charge (on Connected Account) --> Transfer (on platform) --> Charge (on platform) --> PaymentIntent (on platform)

heavy otter
#

I will check

#

it seems that now I am receiving the information, thanks !