Ir al contenido

Obtener una cotización

GET/api/quotation/{quotation}

Devuelve una cotización. Admite relations para cargar relaciones del modelo, por ejemplo customer, seller, coin o versions.

quotationintegerobligatorio

Identificador de la cotización.

relationsstring

Relaciones a cargar, separadas por comas.

No exige un permiso del módulo: basta con un token válido (auth:sanctum). El controlador no llama a ninguna política.

Ventana de terminal
curl -G \
"https://servererp.allendostmen.app/api/quotation/1" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json" \
--data-urlencode "relations=customer,seller"
Cotización200
{
"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
}
No existe404
{
"message": "No query results for model [App\\Models\\Quotation] 999."
}