caja_turno) tracks all money movement during a shift: the initial float, cash and QR sales from transactions, and any cash-out expenses. At the end of the shift, you count the physical cash and the API calculates whether you have an overage or shortage.
Shift workflow
Open the cash register
At the start of each shift, count the physical cash in the drawer and submit denomination counts. The API calculates All denomination fields are optional and default to
The response includes the new caja record with its
monto_inicial from these counts.0. The denomination fields map to the following values:| Field | Bill / coin |
|---|---|
b200 | Bs 200 bill |
b100 | Bs 100 bill |
b50 | Bs 50 bill |
b20 | Bs 20 bill |
b10 | Bs 10 bill |
b5 | Bs 5 bill |
m2 | Bs 2 coin |
m1 | Bs 1 coin |
m050 | Bs 0.50 coin |
m020 | Bs 0.20 coin |
m010 | Bs 0.10 coin |
id and the calculated monto_inicial.Process transactions throughout the shift
As orders are created and paid, the API automatically updates This returns the caja record or
ventas_efectivo and ventas_qr on the open caja. You do not need to call any caja endpoint for this — it happens inside the payment flow.To check the current open caja at any time:null if no caja is open.Record cash-out expenses
Record any money leaving the register — supplies, cleaning, gas, etc. — as a gasto. Specify whether payment left as Each gasto increments
efectivo or qr.total_salidas on the caja. Cash gastos reduce the physical cash balance in the reconciliation calculation.Review the pre-close summary
Before closing, pull the resumen to see all balances:Use
efectivo_esperado as the reference amount when you count the physical drawer.Cash reconciliation formula
The API calculatesefectivo_esperado as:
Understanding diferencia
After closing, thediferencia field tells you the outcome of the physical count:
diferencia | estado_diferencia | Meaning |
|---|---|---|
0 | exacto | Physical count matches exactly |
> 0 | sobrante | More cash than expected |
< 0 | faltante | Less cash than expected |
cierre_obs field lets you attach a free-text note to the closing record for audit purposes.