Exchange Rates

Returns a selection of exchange rates.

Exchange Rates

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areaexpenselines.json
GeneralYesParameters described in overviewAuthorization: Bearer <access_token> header — see Synergist API AuthenticationStructure of an API call
CompanyYesThe company numbercompany=1
ActionYesThe action to performaction=exchangerates
ActiveNoActive statusactive=yes

Valid values for active are 'yes', 'Y', '1' and 'true' for positive, 'no', 'N', '0' and 'false' for negative.

Example request (OAuth 2.0):

Authorization: Bearer <access_token>
http://&lt;SERVER&gt;/jsonapi/expenselines.json?&version=6&company=1&action=exchangerates

Example request (legacy username/password):

http://&lt;SERVER&gt;/jsonapi/expenselines.json?&version=6&company=1&action=exchangerates&user=<username>&password=<password>

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "totalrows": 4,
  "totalpages": 1,
  "responsemessage": "",
  "pagerows": 0,
  "pagenumber": 1,
  "success": true,
  "data": [
    {
      "currencyUuid": "C69AD1001258446E8ED1F77C661B5B95",
      "currencyTimestampModified": 1562830834,
      "currencyRecordVersionNumber": 106,
      "currencyCurrencyName": "Dirhams",
      "currencyCode": "1/AED",
      "currencySymbol": "AED",
      "currencyExchangeRate": 12.74,
      "currencyPurchase": 12.74
    }
  ]
}