Listar cierres mensuales
GET/api/account-clouse-monthly
Devuelve los cierres mensuales paginados. Usa BaseControllerHelper::index, por lo que acepta los filtros comunes de los listados (search, status, order, relations, trashed, entre otros).
Parámetros de consulta
Sección titulada «Parámetros de consulta»account_idintegerFiltra por cuenta.
per_pageintegerCantidad de registros por página. Por omisión 20.
relationsstringRelaciones a cargar, por ejemplo account.
Permiso
Sección titulada «Permiso»Cualquier usuario autenticado. AccountClosureMonthlyPolicy::viewAny siempre devuelve verdadero.
curl -X GET \ "https://servererp.allendostmen.app/api/account-clouse-monthly?account_id=4" \ -H "Authorization: Bearer $TOKEN" \ -H "Accept: application/json"const response = await fetch( "https://servererp.allendostmen.app/api/account-clouse-monthly?account_id=4", { method: "GET", headers: { Authorization: `Bearer ${token}`, Accept: "application/json", }, },);const data = await response.json();use Illuminate\Support\Facades\Http;
$response = Http::withToken($token) ->acceptJson() ->get('https://servererp.allendostmen.app/api/account-clouse-monthly', [ 'account_id' => 4, ]);Lista paginada200
{ "current_page": 1, "data": [ { "id": 7, "account_id": 4, "month": 10, "year": 2026, "period_label": "2026-10", "previous_balance": 5000, "new_balance": 6250.5, "net_amount": 1250.5, "total_incomes": 2000, "total_expenses": 749.5, "incomes_count": 8, "expenses_count": 4, "movements_count": 12, "conciliations_count": 1, "first_conciliation_id": 15, "last_conciliation_id": 15, "statement_file_url": "account-conciliation/statements/extracto.pdf", "notes": "Cierre de octubre", "close_status": "cerrado", "closed_at": "2026-11-02T15:20:00.000000Z", "closed_by_user_id": 1, "reopened_at": null, "reopened_by_user_id": null, "reopen_reason": null, "status": "activo", "create_user_id": 1, "created_at": "2026-11-02T15:20:00.000000Z", "updated_at": "2026-11-02T15:20:00.000000Z" } ], "per_page": 20, "total": 1, "last_page": 1}