Base URL
https://{tenant}.logzi.com/api/company_address/
Every request returns a JSON response. On success result.code == 1, on error result.code == 0.
/api/company_address/get
Retrieve a single address by identifier, optionally in a given language.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Unique identifier of the address | |
language_id | int | Language identifier (for localization) |
Example request
GET /api/company_address/get?id=5
X-API-KEY: {your_api_key}
/api/company_address/list
Paginated list of a company's addresses, optionally filtered by company identifier.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_condition[company_id] | int | Filter by company identifier | |
language_id | int | Language identifier (for localization) |
Example request
GET /api/company_address/list?list_offset=0&list_condition[company_id]=1
X-API-KEY: {your_api_key}
/api/company_address/save
Create or update an address. For a new address use data[id] = 0.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new address, >0 = update | |
company_id | int | Identifier of the company the address belongs to | |
name | string | Address name (e.g. Registered office, Warehouse) | |
zip | string | Postal code | |
city | string | City | |
address | string | Street and house number | |
country_id | int | Country identifier |
Example request
POST /api/company_address/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"company_id": 1,
"name": "Székhely",
"zip": "1234",
"city": "Budapest",
"address": "Fő utca 1.",
"country_id": 1
}
}
/api/company_address/delete
Delete an address by identifier.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the address to delete |
Example request
POST /api/company_address/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 5 } }
Create your account now,
pay later!