currency_exchange_rates
Store new currency exchange rates under this from/to pair.
Stores a new set of exchange rates for this pair. The date is variable, and the data required can be submitted as a JSON body.
post/v1/exchange-rates/by-currencies/{from}/{to}
Request
- Base URLhttps://demo.firefly-iii.org/api
- URLhttps://demo.firefly-iii.org/api/v1/exchange-rates/by-currencies/{from}/{to}
- Auth
- OAuth 2Authorization code: https://demo.firefly-iii.org/oauth/authorizeToken URL: https://demo.firefly-iii.org/oauth/token
- or HTTP bearer
Path parameters
fromstring required
Example:EUR
The currency code of the 'from' currency.
tostring required
Example:USD
The currency code of the 'to' currency.
Headers
X-Trace-Idstring uuid
Example:40c71bbb-c676-4f24-83cf-cc725d7d7a00
Unique identifier associated with this request.
Request body
Currency Exchange Rate Store By Pair required
The actual entries for this data set. They 'key' value is the date in YYYY-MM-DD. The value is the exchange rate.
Example request
{
"2025-08-01": "1.2345",
"2025-08-02": "6.3456"
}Response
New exchange rates stored, result in response. If a rate already existed for any submitted entry, it will be updated.
Example response
{
"data": [
{
"type": "currency_exchange_rates",
"id": "2",
"attributes": {
"created_at": "2026-02-01T00:00:00+00:00",
"updated_at": "2026-02-01T00:00:00+00:00",
"from_currency_id": "12",
"from_currency_name": "Euro",
"from_currency_code": "EUR",
"from_currency_symbol": "$",
"from_currency_decimal_places": 2,
"to_currency_id": "12",
"to_currency_name": "EUR",
"to_currency_code": "EUR",
"to_currency_symbol": "$",
"to_currency_decimal_places": 2,
"rate": "1.10340",
"date": "2026-02-01T00:00:00+00:00"
},
"links": {
"0": {
"rel": "self",
"uri": "/OBJECTS/1"
},
"self": "https://demo.firefly-iii.org/api/v1/OBJECTS/1"
}
}
],
"meta": {
"pagination": {
"total": 3,
"count": 20,
"per_page": 100,
"current_page": 1,
"total_pages": 1
}
},
"links": {
"self": "https://demo.firefly-iii.org/api/v1/OBJECT?&page=4",
"first": "https://demo.firefly-iii.org/api/v1/OBJECT?&page=1",
"next": "https://demo.firefly-iii.org/api/v1/OBJECT?&page=3",
"prev": "https://demo.firefly-iii.org/api/v1/OBJECT?&page=2",
"last": "https://demo.firefly-iii.org/api/v1/OBJECT?&page=12"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.