#pepski
1 messages ยท Page 1 of 1 (latest)
Hi, the exchange_rate should be inside the Balance Transaction of that Payout, as you can see here: https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-exchange_rate
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I would be happy to assist if you provide a Payout Id or Balance Transaction Id
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
Ok so if you look at the original transaction: https://dashboard.stripe.com/payments/pi_3LvjIBCZ1pXYosAt0Zc6knIZ
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You can see CZK was the customer currency, but we converted to EUR right after the transaction was made
yes, and I need to get to this information from the payout_id
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
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 :
Okie what do you see in the sourceTransfer
transfer - tr_3LvjIBCZ1pXYosAt0HveU8hk
if I expanded - again no exchange rate
ok then what's its sourceTransaction again
its charge - ch_3LvjIBCZ1pXYosAt0EwwHJoS
but I am unnavle to expanded it because of "You cannot expand more than 4 levels of a property"
Yep sorry for that limitation. Can you make an additional request to Retrieve Charge Id, then also expanding its own Balance Transaction?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
Yes exactly. When the first charge/payment_intent is created would be better/earlier timing
so when I receive the charge succeeded event hoook, the information will be there?
Yes should be