#elias_api

1 messages ¡ Page 1 of 1 (latest)

versed crystalBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1327372720396304478

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

celest fractal
#

Hello, still looking in to this. It looks like you are setting things up properly in the API. Have the conversion rates always been off like this?

haughty meadow
#

Our integration with your API has always been correct. The only problem is when the sale is in CLP currency, as it is returned with 00 missing in the amount_captured field

We take the amount_captured * CLP currency rate on the day of sale, and then divide the result by 100

celest fractal
#

The balance transaction that I see for that charge shows an amount of R$378.01, which is the converted total minus the Stripe fee, so that looks like it lines up with your calculations. Where are you seeing R$3.93? Is this in a dashboard or somewhere in the API? txn_3QcZSND632iYSfdd0SL6SnSn

haughty meadow
#

The value of R$3.93 is what appears in our software. As I said, we look for sales in your API and convert the sale into an invoice

We take the value that comes in the amount_captured field and multiply it by the currency of the day of sale, after that we divide it by 100

Our suggestion is for you to include 00 at the end of the amount _captured in all sales that are CLP

celest fractal
#

We do have CLP documented as a zero-decimal currency, so I can raise that as feedback, but that is definitely expected behavior for now and a lot of integrations currently work with this on the assumption that our CLP values don't have decimal points. BRL isn't zero-decimal so not needing to divide by 100 for BRL is also expected behavior.
https://docs.stripe.com/currencies#zero-decimal

haughty meadow
#

Now I understand my friend, let's make a rule here not to do multiplication, thank you very much! We're together! Hug!