Calculate cash close totals (stateless)
POST/api/v2/cash-closes/calculate
Recomputes payment-method totals for a not-yet-persisted cash close. Send a {@link CashCloseDocument} without {@code id} (at minimum {@code warehouseId} and {@code closeAt}). Parity with the legacy JSF "Calcular" action before the first save. Does not persist.
Request
Responses
- 200
- 400
- 401
- 403
- 500
Calculated cash close preview (not persisted)
Validation error ÔÇö the request body or a query parameter failed constraint validation. The response payload includes a errors array with field-level details.
Missing or invalid JWT (Bearer token).
Authenticated user is missing the CREAR_CAJAS permission
Unexpected server error. Includes legacy WAR failures that are not classified as 502 / 503 / 504.