Org settings, dashboards & reporting

Preview Oracle Exchange Rates

Fetches exchange rates for currency pairs from the org's Oracle ERP without persisting them.

POSThttps://api.toku.com/tga/preview-oracle-exchange-rates

Not available to API keys yet. It will need integrations:write.

curl --request POST \
  --url 'https://api.toku.com/tga/preview-oracle-exchange-rates' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "currencyPairs": [
    {
      "from": "string",
      "to": "string"
    }
  ],
  "includeDebugData": true
}'
200 response
{
  "exchangeRates": [
    {
      "from": "string",
      "to": "string",
      "exchangeRate": "string",
      "exchangeRateDate": "string",
      "error": "string",
      "debugData": {
        "rawCsv": "string"
      }
    }
  ]
}

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is an access token from a Toku sign-in. See Authentication in the API reference.

Body

application/json

currencyPairsobject[]required
Show child attributes
fromstringrequired
tostringrequired
includeDebugDataboolean

Response

200Successful response
exchangeRatesobject[]required
Show child attributes
fromstringrequired
tostringrequired
exchangeRatestringrequired

Allowed: matches ^-?\d+(\.\d+)?([eE][+-]?\d+)?$

exchangeRateDatestring | any
errorstring
debugDataobject
Show child attributes
rawCsvstring
400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
429Response 429
Was this page helpful? Suggest edits