#mama_32699
1 messages ยท Page 1 of 1 (latest)
Can you share a specific payment example?
I would like to know if the API can tell me the exchange rate that Stripe uses for Euro to Dollar or Euro to CHF.
But generally yes, you should be able to inspect that on the balance transactions associated with the transfer payment:
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.
You can inspect this retrospectively after the payment happens
is the exchange_rate?
Well this is a payout, not a payment
but let me find an example on your account using this
okay thanks ๐
I'm actually having trouble finding an example. Can you find a sample destination payment or transfer in your Dashboard?
OKAY
1 min
req_M57lN2qrFOyrGk
This is 15 USD, and I want to know how many euros I received.
So you look at this on the balance transaction, which you find on the latest_charge either by expansion or by retrieving the charge
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-latest_charge
https://stripe.com/docs/api/charges/object#charge_object-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.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Then you can look at the net amount you got to your balance after conversion and fees: https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-net
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
THANK YOU, this helped me. Is there any way to foresee this before making the payment? Because if I deposit money into a connected account in dollars and the account only accepts euros, I would like to make the exchange from my app.
?
No you can't get that ahead of time via the api
Okay, thank you, you've helped me a lot. Have a happy holiday season and a great day ๐
You too! Happy holidays ๐