This object allows you to view or edit foreign currency exchange rates, depending on your Foreign Exchange Access Group Set permissions. If you are not a member of an Access Group with Foreign Exchange (FX) permissions, an account administrator will need to add you to one. If you are an account admin that needs FX permissions, you can add yourself to an Access Group with the FX permissions you require.
Returns a list of exchange tables associated with your account, and their default settings details.
{- "count": 0,
- "meta": {
- "count": 0,
- "page_count": 0,
- "page_number": 0,
- "page_size": 0
}, - "results": [
- {
- "key": "string",
- "id": "string"
}
], - "exchange_tables": {
- "id": {
- "id": "string",
- "name": "string",
- "account_default": true,
- "insights_account_default": true
}
}
}
Creates a new exchange table.
{- "count": 0,
- "meta": {
- "count": 0,
- "page_count": 0,
- "page_number": 0,
- "page_size": 0
}, - "results": [
- {
- "key": "string",
- "id": "string"
}
], - "exchange_tables": {
- "id": {
- "id": "string",
- "name": "string",
- "account_default": true,
- "insights_account_default": true
}
}
}
Returns default settings details for a specified exchange table.
The object has been retrieved.
Bad Request
Unauthorized request
Forbidden request
Page Not Found
Unprocessable Entity
Service is unavailable
{- "id": {
- "id": "string",
- "name": "string",
- "account_default": true,
- "insights_account_default": true
}
}
Updates the name and/or default settings for a specified exchange table.
account_default | boolean If |
insights_account_default | boolean If |
name | string Update the name of the exchange table. |
{- "count": 0,
- "meta": {
- "count": 0,
- "page_count": 0,
- "page_number": 0,
- "page_size": 0
}, - "results": [
- {
- "key": "string",
- "id": "string"
}
], - "exchange_tables": {
- "id": {
- "id": "string",
- "name": "string",
- "account_default": true,
- "insights_account_default": true
}
}
}
Add or update exchange rates for a specified exchange table by importing rates as a .csv file, or in a JSON array of hashes.
csv_file required | string A CSV file with the following headers: Source Currency, Target Currency, Exchange Rate, and Effective Date. For more details on how to format your CSV file, please see the Knowledge Base. Alternatively, you can provide exchanges rates via the |
Array of objects An array of hashes represents an entire exchange rate table, while each hash represents a row in the table. Each row (hash) contains four (4) fields that make up a currency conversion, organized by columns in a table. These fields are source currency, target currency, effective date, and exchange rate of each currency conversion. Add hashes to define a new currency exchange, or modify the fields of existing hashes to update those currency conversions. | |||||||||
Array
|
{- "exchange_rates": [
- {
- "source_currency": "string",
- "target_currency": "string",
- "effective_date": "2019-08-24",
- "exchange_rate": "string"
}
]
}
{- "count": 0,
- "meta": {
- "count": 0,
- "page_count": 0,
- "page_number": 0,
- "page_size": 0
}, - "results": [
- {
- "key": "string",
- "id": "string"
}
], - "exchange_rates": {
- "id": {
- "id": 0,
- "exchange_table_id": 0,
- "source_currency": "string",
- "target_currency": "string",
- "effective_date": "2019-08-24",
- "rate": "string",
- "source_currency_symbol": "string"
}
}
}
Returns all current exchange rates for a specified exchange table, unless filter parameters have been applied..
date | string <date> Filter for rates by the date the exchange rate takes effect. The date must be in ISO 8601 format. |
page | integer <int32> |
per_page | integer <int32> |
source_currency | string Filter for rates with the specified source currency (in ISO code format). The source currency is the currency you are converting from. |
target_currency | string Filter for rates with the specified target currency (in ISO code format). The target currency is the currency you are converting to. |
{- "count": 0,
- "meta": {
- "count": 0,
- "page_count": 0,
- "page_number": 0,
- "page_size": 0
}, - "results": [
- {
- "key": "string",
- "id": "string"
}
], - "exchange_rates": {
- "id": {
- "id": 0,
- "exchange_table_id": 0,
- "source_currency": "string",
- "target_currency": "string",
- "effective_date": "2019-08-24",
- "rate": "string",
- "source_currency_symbol": "string"
}
}
}