#blueish
1 messages ยท Page 1 of 1 (latest)
hi! could you share an example? i.e. a ch_xx object, screenshot and API request ID req_xxx , and the exact field in which API object you're looking at?
Ok I will collect any info I can find
in general though you're probably just confused by the units. In the API $10.00 is 1000 for example, so the exchange_rate is a multiple of cents
in the dashboard it probably shows you the exchange rate as multiple of $ dollars instead, which is why it's 100x different.
not that I'm aware of
I'm not sure, I would need you to show me some specific examples.
Exchange rate value in the api response is not the same in the dashboard
txn_3LY4sW2QBRukNBYh0TLbT7EZ
Exchange rate value in the api response the same with the value in the dashboard
txn_1HZPm5IitYc3K2qHeUjZP5C2
Hi! I'm taking over this thread.
Give me a few minutes to catchup and look into this.
Ok
Looking at txn_3LY4sW2QBRukNBYh0TLbT7EZ, I do see exchange_rate: 0.82124. But like karlekko said, this means that the actual exchange rate is 0.0082124, as shown in the dashboard.
and how about txn_1HZPm5IitYc3K2qHeUjZP5C2?
Let me check...
Hum, indeed in this case the exchange rate is the same.
Give me a few minutes to look into this.
ok
additional info
in xn_3LY4sW2QBRukNBYh0TLbT7EZ the currency conversion is in XPF -> EUR
XPF is a zero decimal currency , will that matter?
XPF is a zero decimal currency , will that matter?
Oh, that might be why this is different. Still looking into this...
ok
Do you have other examples where you see a difference between the dashboard exchange and the API one?
But yes I'm guessing you are correct, and this is related to zero decimal currencies.
Hi there ๐ apologies for the delay, I'm jumping in as my teammate needed to step away. Please bear with me a moment while I catch up on the context here.
That looks like it is also because the aud currency has a unit smaller than the dollar. Our API will always show amounts and related values in the smallest unit for a given currency. For instance, when working with usd the APi's amount fields will be in cents rather than dollars.
It does, the Australian dollar, similar to the US dollar, has a unit smaller than the dollar called a cent that is 1/100 of a dollar.
https://en.wikipedia.org/wiki/Australian_dollar#:~:text=Denominations-,Subunit,-1โ100
The Australian dollar (sign: $; code: AUD) is the currency of Australia, including its external territories: Christmas Island, Cocos (Keeling) Islands, and Norfolk Island. It is officially used as currency by three independent Pacific Island states: Kiribati, Nauru, and Tuvalu. It is legal tender in Australia. Within Australia, it is almost alwa...
In the context of the transaction txn_3LY4sW2QBRukNBYh0TLbT7EZ , what does this mean?
The distinction about aud is irrelevant for that one, instead the fact that eur has a unit smaller than the euro is important here (since you're converting from xpf to eur).
In the API the exchange rate is going to be shown in the smallest unit for the currency (in this case, cents), but the dashboard will show that value in the larger unit (euros) so there will be a two decimal point shift between the two values.
https://en.wikipedia.org/wiki/Euro#:~:text=Denominations-,Subunit,-1โ100
The euro (symbol: โฌ; code: EUR) is the official currency of 19 out of the 27 member states of the European Union (EU). This group of states is known as the eurozone or, officially, the euro area, and includes about 340 million citizens as of 2019. The euro is divided into 100 cents.
The currency is also used officially by the institutions of the...
why in txn_1HZPm5IitYc3K2qHeUjZP5C2 the API response exchange rate is not represented in cents even if the smallest unit for the currency is cents?
Apologies, I believe I've been misleading up to this point. The exchange_rate field on a Balance Transaction is not a currency amount, but is rather the factor that the original currency amount is multiplied by in order to convert it to the desired currency.
So that being said, can we take a step back and recenter on the Balance Transaction object that caused the misunderstanding? Could you reshare the ID of that object and reiterate your concern with it?
txn_3LY4sW2QBRukNBYh0TLbT7EZ this one
why the exchange rate is different in the dashboard and in the api
because im expecting that the value of exchange rate im getting is the value that I have in the dashboard
Hello ๐
Taking over as toby needs to step away soon
Our team wouldn't know much about the exchange rate differences here unfortunately.
As far as my understanding goes, the exchange rate should be the same on the balance transaction object too.
It is possible that there's some difference due to xpf being a zero-decimal currency but I'd recommend chatting with our support team to be 100% sure
https://support.stripe.com/?contact=true
Find help and support for Stripe. Our support center 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.
I understand.. thanks
NP! ๐ Good luck