Base URL
https://{tenant}.logzi.com/api/company_user/
Every request returns a JSON response. On success result.code == 1, on error result.code == 0.
/api/company_user/get
Retrieve a single user by identifier or username.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Unique identifier of the user | |
username | string | Can also be retrieved by username |
Example request
GET /api/company_user/get?id=3
X-API-KEY: {your_api_key}
/api/company_user/list
Retrieve a paginated list of users with filtering options.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_condition | array | Array of filter conditions |
Example request
GET /api/company_user/list?list_offset=0
X-API-KEY: {your_api_key}
/api/company_user/save
Create or update a user, including permissions and access settings. For a new user, use data[id] = 0.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new user, >0 = update | |
company_id | int | Company identifier | |
username | string | Login username | |
password_new1 | string | Password (required for a new user) | |
password_new2 | string | Password confirmation (required for a new user) | |
default_store_id | int | Default warehouse identifier | |
superior_company_user_id | int | Supervisor's user identifier | |
company_user_store_checked | array | List of allowed warehouse IDs | |
company_user_paymod_checked | array | List of allowed payment method IDs | |
company_user_cash_stock_checked | array | List of allowed cash stock IDs |
Example request
POST /api/company_user/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"company_id": 1,
"username": "kiss.janos",
"password_new1": "titkos123",
"password_new2": "titkos123",
"default_store_id": 1
}
}
/api/company_user/delete
Delete a user by identifier.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the user to delete |
Example request
POST /api/company_user/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 3 } }
/api/company_user/save_interface
Save user interface settings for the given user.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the user |
Example request
POST /api/company_user/save_interface
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 3 } }
/api/company_user/login
Verify a user's login credentials (username + password pair). On success, returns the user's data.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
username | string | Login username | |
password | string | Password |
Example request
GET /api/company_user/login?username=kiss.janos&password=titkos123
X-API-KEY: {your_api_key}
/api/company_user/save_password
Change a user's password.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the user | |
password_new1 | string | New password | |
password_new2 | string | New password confirmation |
Example request
POST /api/company_user/save_password
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 3,
"password_new1": "ujtitkos456",
"password_new2": "ujtitkos456"
}
}
Create your account now,
pay later!