#blueish

1 messages ยท Page 1 of 1 (latest)

whole ibexBOT
novel briar
#

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?

terse onyx
#

Ok I will collect any info I can find

novel briar
#

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.

terse onyx
#

Yeah i think that's it.

#

Is this a new behavior in API ??

novel briar
#

not that I'm aware of

terse onyx
#

Ok thanks ๐Ÿ˜

#

Ohhh

#

Why in some payouts the value are the same??

novel briar
#

I'm not sure, I would need you to show me some specific examples.

terse onyx
#

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

uneven dune
#

Hi! I'm taking over this thread.

#

Give me a few minutes to catchup and look into this.

terse onyx
#

Ok

uneven dune
#

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.

terse onyx
#

and how about txn_1HZPm5IitYc3K2qHeUjZP5C2?

uneven dune
#

Let me check...

#

Hum, indeed in this case the exchange rate is the same.

#

Give me a few minutes to look into this.

terse onyx
#

ok

#

additional info

#

in xn_3LY4sW2QBRukNBYh0TLbT7EZ the currency conversion is in XPF -> EUR

#

XPF is a zero decimal currency , will that matter?

uneven dune
#

XPF is a zero decimal currency , will that matter?
Oh, that might be why this is different. Still looking into this...

terse onyx
#

ok

uneven dune
#

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.

terse onyx
#

yes

#

let me just get the info

#

can you check this

#

txn_3LZTW02QTZIFIYgp0I0k0IlV

cyan stump
#

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.

terse onyx
#

what do you mean aud has a unit smaller that dollar?

#

can you explain that thanks

cyan stump
#

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...

terse onyx
#

In the context of the transaction txn_3LY4sW2QBRukNBYh0TLbT7EZ , what does this mean?

cyan stump
#

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...

terse onyx
#

why in txn_1HZPm5IitYc3K2qHeUjZP5C2 the API response exchange rate is not represented in cents even if the smallest unit for the currency is cents?

cyan stump
#

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?

terse onyx
#

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

zinc trail
#

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

terse onyx
#

I understand.. thanks

zinc trail
#

NP! ๐Ÿ™‚ Good luck