#orangebanana_api

1 messages ยท Page 1 of 1 (latest)

broken doveBOT
#

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

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

hushed vault
#

Hello

shrewd wagon
#

Hello

hushed vault
#

A PaymentIntent only has a transfer_group automatically assigned to it if it is a destination charge

shrewd wagon
#

There was a destination change added to it 100%

hushed vault
#

Okay can you share the PaymentIntent ID?

shrewd wagon
#

Sure

#

pi_3PWO4vBaRfwWelZy1kHfhco9

hushed vault
#

Looking

shrewd wagon
#

After I ran the hardcoded version. transfer_group was added to payment intend for some reason
await stripeSDK.transfers.list({ transfer_group: "group_pi_3PWO4vBaRfwWelZy1kHfhco9", limit: 50, })

hushed vault
#

Hmm yes that's strange. That is a somewhat old PaymentIntent though which is outside of our internal log retention unfortunately... do you happen to have one where you are seeing this within the last 30 days?

shrewd wagon
#

So older that 30 days might be missing this field?

hushed vault
#

Well as far as I know it should not be, but I'm just saying it is hard for us to investigate an example if it is older than 30 days because we no longer have any internal logs to look at

shrewd wagon
#

I see. Then I might need a bit of time to find another one if possible

hushed vault
#

Sure take your time

shrewd wagon
#

Until I find another case. I would have a question

#

How can I get the connection between all connected account payouts and main account payment intent ids?

hushed vault
#

Are your Connected Accounts on auto payouts?

#

Or manual payouts?

shrewd wagon
#

Right now I'm trying to get all payouts from a connected account then balanceTransactions from that payout. And from here need to find a connection to them

#

I think most of them have auto payouts

hushed vault
#

Yep so from the Balance Transaction you expand the source: https://docs.stripe.com/api/balance_transactions/object#balance_transaction_object-source which will be the Charge in the Connected Account, from there you expand the source_transfer: https://docs.stripe.com/api/charges/object#charge_object-source_transfer which will be the Transfer on your platform and from there you expand the source_transaction (https://docs.stripe.com/api/transfers/object#transfer_object-source_transaction) which will be the Charge on your platform. That has a payment_intent property: https://docs.stripe.com/api/charges/object#charge_object-payment_intent

#

So basically when you list balance transactions by Payout you should expand data.source.source_transfer.source_transaction

shrewd wagon
#

Ohhh that nice

#

First time seeing it ๐Ÿ˜„

#

That means I could also expand from the payment intent Ids that I have to the connected account payout Id.

hushed vault
#

No

shrewd wagon
#

So it's only possible from payout to payment intent

hushed vault
#

Yes, Balance Transactions don't have a payout property

#

So you have to go backward from the Payout

shrewd wagon
#

Still a nice way to solve my problem ๐Ÿ™‚

hushed vault
#

Yep