Base URL
https://{tenant}.logzi.com/api/cash/
Bank documents are managed through the cash document (/api/cash/) API. Bank and cash documents share the same endpoint — they are distinguished by cashstock_id: the identifier of the cash stock assigned to the bank account must be provided. On success result.code == 1, on error result.code == 0.
/api/cash/get
Retrieve a single bank document by identifier, including its line item and related documents.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Unique identifier of the bank document |
Example Request
GET /api/cash/get?id=88
X-API-KEY: {your_api_key}
/api/cash/list
Retrieve a paginated list of bank documents with filtering options.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_count | int | Number of records per page | |
list_condition[identify] | string | Filter by document number (LIKE) | |
list_condition[partner_name] | string | Filter by partner name (LIKE) | |
list_condition[cashstock_id] | int | Filter by bank account / cash stock identifier | |
list_condition[type_id] | int | Filter by document type (income / expense) | |
list_condition[date_create_from] | date | Creation date — from (YYYY-MM-DD) | |
list_condition[date_create_to] | date | Creation date — to (YYYY-MM-DD) |
Example Request
GET /api/cash/list?list_offset=0&list_condition[cashstock_id]=2
X-API-KEY: {your_api_key}
/api/cash/save
Create or update a bank document. The value of cashstock_id determines whether a cash document or a bank document is created. Use data[id] = 0 for a new document.
POST Fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new document, >0 = update | |
company_id | int | Company identifier | |
company_user_id | int | Responsible employee ID | |
cashstock_id | int | Bank account / cash stock identifier | |
receipt_type_id | int | Document type (income / expense) | |
currency_id | int | Currency identifier | |
partner_id | int | Partner identifier | |
date_perform | date | Performance / value date (YYYY-MM-DD) | |
price_brutto | float | Document amount (gross) | |
comment_top | string | Comment / remittance note | |
item | array | Related document line items (e.g. invoice reference) |
Example Request
POST /api/cash/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"company_id": 1,
"company_user_id": 3,
"cashstock_id": 2,
"receipt_type_id": 27,
"currency_id": 1,
"partner_id": 8,
"date_perform": "2024-07-01",
"price_brutto": 127000,
"comment_top": "Számla kiegyenlítés"
}
}
/api/cash/delete
Delete a bank document. Only documents that are not closed can be deleted.
POST Fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
receipt_id | int | Identifier of the bank document to delete |
Example Request
POST /api/cash/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "receipt_id": 88 } }
Create your account now,
pay later!