Cash Stock API

Manage cash and bank account stocks — retrieval, creation, and update

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.

GET /api/cash_stock/get

Retrieve a single cash stock by identifier.

Query Parameters

ParameterTypeRequiredDescription
idintUnique identifier of the cash stock

Example Request

GET /api/cash_stock/get?id=1
X-API-KEY: {your_api_key}
GET /api/cash_stock/list

Retrieve a paginated list of cash stocks with filtering options.

Query Parameters

ParameterTypeRequiredDescription
list_offsetintPagination offset (default: 0)
list_condition[type_id]intFilter by type (cash register / bank)
list_condition[currency_id]intFilter by currency identifier

Example Request

GET /api/cash_stock/list?list_offset=0
X-API-KEY: {your_api_key}
POST /api/cash_stock/save

Create or update a cash stock. For a new cash register, use data[id] = 0.

POST Fields — data object

FieldTypeRequiredDescription
idint0 = new cash register, >0 = update
company_idintCompany identifier
namestringCash register name
currency_idintCurrency identifier
type_idintType identifier (cash register / bank account)
company_user_idintResponsible employee identifier
currency_exchangefloatExchange rate (for currencies other than HUF)
ledger_number_idintLedger number identifier
ledger_ignoreint1 = exclude from ledger
cash_value_startfloatOpening balance
bank_accountstringBank account number (for bank account type)
bank_swiftstringSWIFT / BIC code
cash_stock_defaultint1 = 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
  }
}
POST /api/cash_stock/delete

Delete a cash stock by identifier.

POST Fields — data object

FieldTypeRequiredDescription
idintIdentifier 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 } }

Get in touch with us

Interested in our software? Feel free to write to us!

Need help?

If you can't find the answer and need assistance

Create your account now,
pay later!

Try it free for 3 days, no risk, no obligation!