Currency Exchange API

Manage and query currency exchange rates

Base URL

https://{tenant}.logzi.com/api/currency_exchange/

Every request returns a JSON response. On success result.code == 1, on failure result.code == 0. The currency exchange API lets you record exchange rates between currencies and calculate the conversion multiplier.

GET /api/currency_exchange/get

Retrieve a single currency exchange record.

Query Parameters

ParameterTypeRequiredDescription
idintExchange rate record identifier
currency_idintCurrency identifier
date_createstringExchange rate date (YYYY-MM-DD)

Example Request

GET /api/currency_exchange/get?currency_id=2&date_create=2024-01-15
X-API-KEY: {your_api_key}
GET /api/currency_exchange/get_multiplier

Retrieve the current conversion multiplier between two currencies.

Query Parameters

ParameterTypeRequiredDescription
from_currency_idintSource currency identifier
to_currency_idintTarget currency identifier

Example Request

GET /api/currency_exchange/get_multiplier?from_currency_id=1&to_currency_id=2
X-API-KEY: {your_api_key}
GET /api/currency_exchange/list

Paginated list of currency exchange records.

Query Parameters

ParameterTypeRequiredDescription
list_offsetintPagination offset (default: 0)
list_conditionobjectObject of filter conditions

Example Request

GET /api/currency_exchange/list?list_offset=0
X-API-KEY: {your_api_key}
POST /api/currency_exchange/save

Create or update a currency exchange record.

POST Fields — data object

The data object must contain the exchange rate data (currency identifier, rate value, date).

Example Request

POST /api/currency_exchange/save
X-API-KEY: {your_api_key}
Content-Type: application/json

{ "data": { "currency_id": 2, "exchange_rate": 390.5, "date_create": "2024-01-15" } }
POST /api/currency_exchange/delete

Delete a currency exchange record by identifier.

POST Fields

FieldTypeRequiredDescription
idintIdentifier of the exchange rate record to delete

Example Request

POST /api/currency_exchange/delete
X-API-KEY: {your_api_key}
Content-Type: application/json

{ "id": 1 }

Get in touch with us

Interested in our software? Feel free to write to us!

Need help?

If you can't find the answer and need assistance

Create your account now,
pay later!

Try it free for 3 days, no risk, no obligation!