Base URL
https://{tenant}.logzi.com/api/departmentnumber/
Every request returns a JSON response. On success result.code == 1, on error result.code == 0.
/api/departmentnumber/get
Retrieve a single department number by identifier, with full details.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Department number unique identifier |
Example request
GET /api/departmentnumber/get?id=7
X-API-KEY: {your_api_key}
/api/departmentnumber/list
Paginated retrieval of the department numbers list with filtering options.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_condition | array | Filter criteria as an associative array |
Example request
GET /api/departmentnumber/list?list_offset=0
X-API-KEY: {your_api_key}
/api/departmentnumber/save
Create or modify a department number. For a new record use data[id] = 0.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new department number, >0 = update | |
company_id | int | Company identifier | |
company_user_id | int | Identifier of the responsible staff member | |
name | string | Department number name | |
description | string | Description, note | |
partner_id | int | Linked partner identifier | |
invoice_type_cr_id | int | Invoice type relation identifier |
Example request
POST /api/departmentnumber/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"company_id": 1,
"company_user_id": 3,
"name": "Marketing",
"description": "Marketing osztály"
}
}
/api/departmentnumber/delete
Delete a department number by identifier.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the department number to delete |
Example request
POST /api/departmentnumber/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 7 } }
/api/departmentnumber/close
Close a department number. A closed department number can no longer be assigned to new documents.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the department number to close |
Example request
POST /api/departmentnumber/close
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 7 } }
Create your account now,
pay later!