#eskimo_dev
1 messages · Page 1 of 1 (latest)
The balance transaction object is the one that has the conversion rate, if you retrieve or expand the ID from that field you should be able to see the exchange rate that you got for that specific transaction 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 think Charge objects themselves will only ever show presentment currency
ahh ok, balance transaction will work, thanks
one more question though
if there's a refund or partial refund, will balance transaction show that?
Yes, refund objects create balance transactions that you can see on the Refund object itself
https://stripe.com/docs/api/refunds/object#refund_object-balance_transaction
https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-type
I don't see a differentiation between full and partial at that level so I assume they would both be of type refund. If you test in test mode it will show the right behavior
yeah but i mean specifically from the charge object
there's the amount_refunded variable
You'd look at the Refunds in the Charge's refunds list property https://stripe.com/docs/api/charges/object#charge_object-refunds
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok now one more question, how about when refunding, can i specify the currency to refund in or do i have to do the conversion myself? i don't see anything here https://stripe.com/docs/api/refunds/create
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 think you would create a refund based on the Charge's presentment currency. So you'd need to do the conversion from your settlement currency if you are only looking to refund a specific amount of your funds rather than a specific amount of what the customer paid
I mean, we do everything in USD, a customer bought in CAD and didn't use his coupon code, so we want to refund $100 USD
The stripe dashboard says to enter a CAD amount so I'm trying to figure out if I can do it on my custom crm in USD so my employees don't have to do a conversion
Gotcha, I think you can use the exchange rate that you got on the initial payment but I will double check that and get back to you.
Np, just trying to make things as easy as possible for my employees
So unfortunately it looks like we don't use that original exchange rate for refunds and disputes.
https://stripe.com/docs/currencies/conversions#conversions-disputes-refunds
If you reach out to our support team and ask about getting the exchange rate before making refunds like this they may be able to help you https://support.stripe.com/?contact=true
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
But when I refund with the api is it in the customers currency or mine
Customer's currency, the presentment currency on the charge
Ok so I'll just use the conversion rate on the charge then if it's there
So because you are refunding in CAD, you'd need to know the USD->CAD exchange rate to know how much to refund to refund $100 USD
Np
Gotcha, that may be close to the current rate. Like I said our support team may be able to help you get this programmatically though I am not 100% clear on that. Up to you what effort it is worth