Base URL
https://{tenant}.logzi.com/api/country/
Every request returns a JSON response. On success result.code == 1, on failure result.code == 0.
/api/country/get
Retrieve a single country — by ID or ISO code.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Unique identifier of the country | |
country_iso2 | string | Two-letter ISO 3166-1 code (e.g. "HU", "DE") | |
language_id | int | Language ID for the localized name |
Example request
GET /api/country/get?country_iso2=HU
X-API-KEY: {your_api_key}
/api/country/list
Retrieve the list of all countries, optionally in a given language.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
language_id | int | Language ID for localized names |
Example request
GET /api/country/list
X-API-KEY: {your_api_key}
/api/country/save
Create or update a country. Use data[id] = 0 for a new record.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new country, >0 = update | |
country_name | string | Country name (e.g. "Hungary") | |
country_iso2 | string | Two-letter ISO 3166-1 code (e.g. "HU") | |
country_iso3 | string | Three-letter ISO 3166-1 code (e.g. "HUN") |
Example request
POST /api/country/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"country_name": "Magyarország",
"country_iso2": "HU"
}
}
/api/country/delete
Delete a country by ID.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | ID of the country to delete |
Example request
POST /api/country/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 5 } }
Create your account now,
pay later!