CurrencyRate



Important note about API versions

If you are using Dovico Timesheet version 13 or below, you should use API version 5. If using version 14, use API version 6.




Versions 1 through 6
This call has been updated to reflect the 6th version of the API.

The API calls listed below enable a person to view Currency Rates.

Examples are provided using cURL.cURL is a 3rd party tool used for transferring data with URL syntax.



Get Currency Rate


GET CurrencyRate/

Returns the requested currency rate.

Security Check:The user must have Software Access set to 'All' or 'Time and Expense Entry only'.

Example XML request:
 
        URI: https://api.dovico.com/CurrencyRate/?date={Date}&fromcurrencyid={FromCurrencyID}&tocurrencyid={ToCurrencyID}&version=6
        Method: GET
 
        Sample request syntax using Win32 cURL:
        curl -k "https://api.dovico.com/CurrencyRate/?date=2011-07-01&fromcurrencyid=159&tocurrencyid=280&version=6" -H "Authorization: WRAP access_token=""client=36bb7f2f29474d88bf35c4a89cdcfb34.593&user_token=e7d1e55015ee4ecebe5298cb439344fd.593"""
 

Fields for the URI
*Date (required - date string in the format yyyy-MM-dd)
*FromCurrencyID (required - the From Currency ID - must be an enabled currency)
*ToCurrencyID (required - the To Currency ID - must be an enabled currency)


Example JSON request:
 
        URI: https://api.dovico.com/CurrencyRate/?date={Date}&fromcurrencyid={FromCurrencyID}&tocurrencyid={ToCurrencyID}&version=6
        Method: GET
        Accept: application/json
 
        Sample request syntax using Win32 cURL:
        curl -k "https://api.dovico.com/CurrencyRate/?date=2011-07-01&fromcurrencyid=159&tocurrencyid=280&version=6" -H "Accept: application/json" -H "Authorization: WRAP access_token=""client=36bb7f2f29474d88bf35c4a89cdcfb34.593&user_token=e7d1e55015ee4ecebe5298cb439344fd.593"""
 


Fields for the URI
*Date (required - date string in the format yyyy-MM-dd)
*FromCurrencyID (required - the From Currency ID - must be an enabled currency)
*ToCurrencyID (required - the To Currency ID - must be an enabled currency)

Example XML response:
 
        <Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <CurrencyRate>1.4186</CurrencyRate>
        </Result>
 

Fields for Result
CurrencyRate (double - US English format)

Example JSON response:
 
        {
            "CurrencyRate":"1.4186"
        }
 

Fields
CurrencyRate (double - US English format)