Get the current currency rate

General Discussions
Best Practices
Examples

Get the current currency rate

Postby alydersen » Fri Jun 17, 2011 11:34 am

Hi,

I just created a test account with data. The first thing I need to make sure of is that the ERP system and E-conomic uses the same exchange rate for the different currencies. I get the list of currencies from Currency_GetAll. When I use the currency code to get a rate through Currency_GetData, it only returns the code. Am I doing something wrong?

Thanks in advance,
Andreas
-
alydersen
 
Posts: 3
Joined: Fri Jun 17, 2011 11:23 am

Re: Get the current currency rate

Postby Christian Estrup » Fri Jun 17, 2011 12:17 pm

Hi,

Exchange rates in e-conomic aren't just tied to a currency code, but also specific dates.

Furthermore, we unfortunately cannot expose these directly in the API at this time, due to licensing restrictions in the commercial exchange rate feed we use.

However, if you simply wish to make sure e-conomic uses specific rates for specific entries and/or invoices, that's no problem: Invoices have an ExchangeRate field which you should fill out anyway - and for entries, you fill out both the currency and default currency amount, thus allowing you to calculate the latter using your exchange rate of choice.


Best regards,
Christian Estrup
Chief Architect

Image
Online accounting
User avatar
Christian Estrup
 
Posts: 245
Joined: Tue Jun 09, 2009 6:37 pm


Return to Miscellaneous



cron