Listar cotizaciones por año y mes
GET/api/get-quotations/{year}/{month}
Devuelve, sin paginar, las cotizaciones principales (sin cotización de referencia) creadas en el año y el mes indicados. Cada una trae solo id, name, code, seller_id y project_manager_id, además de sus versions y su lastQuotationWorkflow.
Parámetros de la ruta
Sección titulada «Parámetros de la ruta»yearintegerobligatorioAño de creación.
monthintegerobligatorioMes de creación, de 1 a 12.
Permiso
Sección titulada «Permiso»No exige un permiso del módulo: basta con un token válido (auth:sanctum). El controlador no llama a ninguna política.
curl \ "https://servererp.allendostmen.app/api/get-quotations/2026/11" \ -H "Authorization: Bearer $TOKEN" \ -H "Accept: application/json"const response = await fetch( "https://servererp.allendostmen.app/api/get-quotations/2026/11", { 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/get-quotations/2026/11');Cotizaciones200
[ { "id": 1520, "name": "Instalación eléctrica", "code": "110012 - INSTALACION_ELECTRICA - ACME_SAC-V1", "seller_id": 5, "project_manager_id": 9, "versions": [], "last_quotation_workflow": { "id": 40, "status": "cotizando" } }]