Ir al contenido

Obtener la cotización con sus ítems

GET/api/quotation-with-items/{quotationId}

Devuelve la cotización con su moneda, su vendedor, su project manager, su último paso del flujo y el árbol de ítems (quotationItems). El árbol tiene hasta seis niveles de children, cada nivel con su measurementUnit y ordenado por index. Cada consulta deja un registro de «ver cotización» en el historial.

quotationIdintegerobligatorio

Identificador de la cotización.

QuotationPolicy::view, que permite a cualquier usuario autenticado.

Ventana de terminal
curl \
"https://servererp.allendostmen.app/api/quotation-with-items/1" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json"
Cotización con ítems200
{
"id": 1520,
"code": "110012 - INSTALACION_ELECTRICA - ACME_SAC-V1",
"version": 1,
"igv": 18,
"rent": 1.5,
"detraction": 12,
"name": "Instalación eléctrica",
"date": "2026-11-19",
"description": "Instalación eléctrica del almacén central",
"days_validity": 30,
"coin_id": 1,
"coin_value": 3.75,
"limit_decimals": 4,
"customer_id": 8,
"customer_contact_id": 14,
"seller_id": 5,
"project_manager_id": 9,
"opportunity_id": 77,
"budget_folder_id": 31,
"status": "cotizando",
"is_global_utility": false,
"total_items": 12500,
"total_overheads": 1500,
"subtotal": 14000,
"total_igv": 2520,
"total": 16520,
"create_user_id": 5,
"created_at": "2026-11-19T10:40:15.000000Z",
"updated_at": "2026-11-19T10:40:15.000000Z",
"deleted_at": null,
"coin": {
"id": 1,
"name": "SOLES",
"symbol": "S/"
},
"quotation_items": [
{
"id": 301,
"name": "Cableado",
"type": "simple",
"index": 1,
"level": 1,
"children": [
{
"id": 302,
"name": "Cable 2.5 mm",
"type": "costo unitario",
"quantity": 120,
"price": 4.5,
"total": 540,
"index": 1,
"level": 2,
"children": []
}
]
}
]
}
Sin permiso403
{
"message": "This action is unauthorized."
}