Overview
Cash expenses represent operational costs paid directly from the cash register, such as supplies, utilities, or maintenance. Each expense is linked to a cash session and can be paid via CASH, CARD, or TRANSFER. Expenses start as DRAFT and must be posted to affect session balance.Create Cash Expense
Request Body
Cash session ID
Payment tender type:
CASH, CARD, or TRANSFERExpense amount (0.01 to 999999.99)
Expense category (max 100 characters). Common values:
SUPPLIES, MAINTENANCE, UTILITIES, MARKETING, OTHERVendor name (max 255 characters)
Invoice or receipt reference (max 255 characters)
Additional notes (max 1000 characters)
Terminal ID (required when
tender_type is CARD)Bank account ID (required when
tender_type is TRANSFER)Expense date/time in ISO 8601 format. Defaults to current time if not provided.
Additional metadata
Response
Success message
List Cash Expenses
Query Parameters
Filter by cash session ID
Filter by expense category
Filter by tender type:
CASH, CARD, or TRANSFERFilter by status:
POSTED or DRAFTFilter from date (ISO 8601)
Filter to date (ISO 8601)
Sort field
Sort order:
asc or descItems per page
Response
Returns paginated list of expenses with session, terminal, bank account, and user information.Get Cash Expense
Path Parameters
Cash expense ID
Response
Expense details with session, terminal, bank account, and user information
Update Cash Expense
Path Parameters
Cash expense ID
Request Body
Payment tender type
Expense amount
Expense category
Vendor name
Invoice/receipt reference
Additional notes
Terminal ID (required for CARD)
Bank account ID (required for TRANSFER)
Expense date/time
Additional metadata
Response
Success message
Updated expense object
Post Cash Expense
Finalizes the expense by marking it as posted. Once posted, the expense affects the session balance calculation and cannot be modified or deleted.
Path Parameters
Cash expense ID
Response
Success message
Posted expense with
posted_at timestamp and posted_by userDelete Cash Expense
Path Parameters
Cash expense ID
Response
Success message
Common Expense Categories
SUPPLIES
Office supplies, cleaning products, consumables
MAINTENANCE
Equipment repairs, facility maintenance
UTILITIES
Electricity, water, gas, internet
MARKETING
Advertising, promotional materials
DELIVERY
Delivery service fees, fuel
OTHER
Miscellaneous operational expenses
Tender Type Rules
Each tender type has specific requirements:
- CASH: Amount is deducted from cash drawer. No additional fields required.
- CARD: Requires
card_terminal_idto track which terminal processed the payment. - TRANSFER: Requires
bank_account_idto track which bank account was used.