Base URL
https://{tenant}.logzi.com/api/cash_stock/
Every request returns a JSON response. On success result.code == 1, on failure result.code == 0. A cash stock represents either a cash register or a bank account — the type and currency determine which.
/api/cash_stock/get
Retrieve a single cash stock by identifier.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Unique identifier of the cash stock |
Example Request
GET /api/cash_stock/get?id=1
X-API-KEY: {your_api_key}
/api/cash_stock/list
Retrieve a paginated list of cash stocks with filtering options.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_condition[type_id] | int | Filter by type (cash register / bank) | |
list_condition[currency_id] | int | Filter by currency identifier |
Example Request
GET /api/cash_stock/list?list_offset=0
X-API-KEY: {your_api_key}
/api/cash_stock/save
Create or update a cash stock. For a new cash register, use data[id] = 0.
POST Fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new cash register, >0 = update | |
company_id | int | Company identifier | |
name | string | Cash register name | |
currency_id | int | Currency identifier | |
type_id | int | Type identifier (cash register / bank account) | |
company_user_id | int | Responsible employee identifier | |
currency_exchange | float | Exchange rate (for currencies other than HUF) | |
ledger_number_id | int | Ledger number identifier | |
ledger_ignore | int | 1 = exclude from ledger | |
cash_value_start | float | Opening balance | |
bank_account | string | Bank account number (for bank account type) | |
bank_swift | string | SWIFT / BIC code | |
cash_stock_default | int | 1 = default cash stock |
Example Request
POST /api/cash_stock/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"company_id": 1,
"name": "Főpénztár",
"currency_id": 1,
"type_id": 1,
"cash_value_start": 100000,
"cash_stock_default": 1
}
}
/api/cash_stock/delete
Delete a cash stock by identifier.
POST Fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | Identifier of the cash stock to delete |
Example Request
POST /api/cash_stock/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 1 } }
Create your account now,
pay later!