Base URL
https://{tenant}.logzi.com/api/cash_pretense/
Every request returns a JSON response. On success result.code == 1, on failure result.code == 0. Cash closing items (cash pretense) are the balance lines recorded when closing the cash register — e.g. turnover calculated from the number of cash, coins, and banknotes.
/api/cash_pretense/get
Retrieve a single cash closing item by ID.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Unique identifier of the closing item |
Example request
GET /api/cash_pretense/get?id=3
X-API-KEY: {your_api_key}
/api/cash_pretense/list
Retrieve the list of cash closing items.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_condition | object | Object of filter conditions | |
language_id | int | Language ID for translation |
Example request
GET /api/cash_pretense/list?list_offset=0
X-API-KEY: {your_api_key}
/api/cash_pretense/save
Create or update a cash closing item. Use data[id] = 0 for a new item.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new item, >0 = update | |
name | string | Name / label of the item | |
type_id | int | ID of the closing item type | |
ledger_number_id | int | ID of the ledger account number |
Example request
POST /api/cash_pretense/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"name": "Napi záró egyenleg",
"type_id": 1,
"ledger_number_id": 5
}
}
/api/cash_pretense/delete
Delete a cash closing item.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | ID of the closing item to delete |
Example request
POST /api/cash_pretense/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 3 } }
Create your account now,
pay later!