Base URL
https://{tenant}.logzi.com/api/currency/
Every request returns a JSON response. On success result.code == 1, on error result.code == 0.
/api/currency/get
Retrieve a single currency — by identifier, ISO code, or default status.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Unique identifier of the currency | |
cr_default | int | 1 = retrieve the default currency | |
cr_name_short | string | Search by ISO code (e.g. "HUF", "EUR") |
Example request
GET /api/currency/get?cr_name_short=HUF
X-API-KEY: {your_api_key}
/api/currency/list
Retrieve a paginated list of all currencies.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_condition | array | Array of filter conditions |
Example request
GET /api/currency/list?list_offset=0
X-API-KEY: {your_api_key}
/api/currency/save
Create or update a currency. For a new record use data[id] = 0.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new currency, >0 = update | |
cr_name | string | Full currency name (e.g. "Forint") | |
cr_name_short | string | ISO code (e.g. "HUF", "EUR") | |
cr_sign | string | Currency sign (e.g. "Ft", "€") | |
cr_default | int | 1 = mark as the default currency | |
cr_round_id | int | Rounding rule identifier |
Example request
POST /api/currency/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"cr_name": "Forint",
"cr_name_short": "HUF",
"cr_sign": "Ft",
"cr_default": 1
}
}
/api/currency/delete
Delete a currency by its identifier.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the currency to delete |
Example request
POST /api/currency/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 2 } }
Create your account now,
pay later!