#pepski

1 messages ยท Page 1 of 1 (latest)

thorny pondBOT
hallow yew
#

I would be happy to assist if you provide a Payout Id or Balance Transaction Id

wise cypress
#

sure give me sec ๐Ÿ™‚

#

payout_id = po_1LwGIkEQbPhzqoBv73Tmn9wC

#

and its related to all its transactions (e.g. this one txn_1LvjIDEQbPhzqoBvxc6Zssaw)

#

exchange rate is null here, but when I go into dashboard and go to the source payment intent / charge then I can see that initial transaction was in different currency, so somewhere there have to be some exchange rate

#

its related to this connected account - acct_1LuzBzEQbPhzqoBv

hallow yew
#

You can see CZK was the customer currency, but we converted to EUR right after the transaction was made

wise cypress
#

yes, and I need to get to this information from the payout_id

hallow yew
#

Well you can only find out from each contained transactions inside a Payout Id, ie. py_1LvjIDEQbPhzqoBvubNbRtw6 in this case. Because a Payout could contains multiple transactions and each of them was originated from different PaymentIntent, which could have different exchange rate at the time made

wise cypress
#

I am receiving the list of all balance transaction from the payout. I can see that it countain one payout transaction and all the included payment intents.
I am able to expand the info about these payment intents by adding
.addExpand("data.source.charge")

But I still cant see the exchange rate here :

hallow yew
#

Okie what do you see in the sourceTransfer

wise cypress
#

transfer - tr_3LvjIBCZ1pXYosAt0HveU8hk
if I expanded - again no exchange rate

hallow yew
#

ok then what's its sourceTransaction again

wise cypress
#

its charge - ch_3LvjIBCZ1pXYosAt0EwwHJoS
but I am unnavle to expanded it because of "You cannot expand more than 4 levels of a property"

hallow yew
#

Yep sorry for that limitation. Can you make an additional request to Retrieve Charge Id, then also expanding its own Balance Transaction?

wise cypress
#

yes here I can see it

#

pfuuu.. its very nested information .. can I get it somewhere before? Maybe from charge object directly when it was created?

hallow yew
#

Yes exactly. When the first charge/payment_intent is created would be better/earlier timing

wise cypress
#

so when I receive the charge succeeded event hoook, the information will be there?

hallow yew
#

Yes should be