POST /api/caja/abrir
Opens the cash register for the current shift. You must provide a denomination count; the server computes monto_inicial from those counts automatically. Only one register can be open at a time.
Authentication: Bearer JWT requiredRequired role:
admin or cajero
Request
Body
All denomination fields are optional and default to0. Omitting a field is the same as passing 0.
Number of 200 BOB bills (default: 0, min: 0)
Number of 100 BOB bills (default: 0, min: 0)
Number of 50 BOB bills (default: 0, min: 0)
Number of 20 BOB bills (default: 0, min: 0)
Number of 10 BOB bills (default: 0, min: 0)
Number of 5 BOB bills (default: 0, min: 0)
Number of 2 BOB coins (default: 0, min: 0)
Number of 1 BOB coins (default: 0, min: 0)
Number of 0.50 BOB coins (default: 0, min: 0)
Number of 0.20 BOB coins (default: 0, min: 0)
Number of 0.10 BOB coins (default: 0, min: 0)
Denomination values
| Field | Value (BOB) | Type |
|---|---|---|
b200 | 200.00 | Bill |
b100 | 100.00 | Bill |
b50 | 50.00 | Bill |
b20 | 20.00 | Bill |
b10 | 10.00 | Bill |
b5 | 5.00 | Bill |
m2 | 2.00 | Coin |
m1 | 1.00 | Coin |
m050 | 0.50 | Coin |
m020 | 0.20 | Coin |
m010 | 0.10 | Coin |
Response
Success (201)
Returns the newly createdcaja_turno record.
Auto-incremented register ID
Opening date in
YYYY-MM-DD formatOpening timestamp (ISO 8601 with timezone)
Closing timestamp —
null while the register is openID of the user who opened the register
Computed opening cash amount in BOB
Count of 200 BOB bills recorded at opening
Count of 100 BOB bills recorded at opening
Count of 50 BOB bills recorded at opening
Count of 20 BOB bills recorded at opening
Count of 10 BOB bills recorded at opening
Count of 5 BOB bills recorded at opening
Count of 2 BOB coins recorded at opening
Count of 1 BOB coins recorded at opening
Count of 0.50 BOB coins recorded at opening
Count of 0.20 BOB coins recorded at opening
Count of 0.10 BOB coins recorded at opening
Cash sales accumulated —
0 at openingQR sales accumulated —
0 at openingTotal expenses recorded —
0 at openingfalse — the register is openClosing observations —
null while openError responses
| Status | Description |
|---|---|
| 401 | Unauthorized — missing or invalid JWT |
| 403 | Forbidden — role is not admin or cajero |
| 409 | A register is already open; close it before opening a new one |