#Diogo Z.-balance-transactions
1 messages ยท Page 1 of 1 (latest)
Hello! Starting up a thread for you
Can I get the exchange rate after create a charge?
Example: I charge in dollars but I need to know the conversion in brazilian real
I need this value after charge
You can get that from the Balance Transaction that is tied to the 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.
hmmm, then I get this value before create a charge, right?
No, there isn't a way to get this before you create the Charge
๐ You'll probably want to look specifically at this: 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.
hmmm, I have the balance_transaction id
nice, then I can get more details using it
make sense?
Yes, you can either re-retrieve the Balance Transaction, or when you retrieve the charge you can expand (https://stripe.com/docs/expand) balance_transaction so you can get the full Balance Transaction as part of the Charge
Diogo Z.-balance-transactions