Skip to main content
GET
/
api
/
cotizaciones
/
:id
curl -X GET 'https://your-domain.com/api/cotizaciones/15' \
  -H 'Cookie: session=your-session-token'
{
  "id": 15,
  "nro_cotizacion": "COT-2602-0015",
  "fecha": "2026-02-10",
  "hora": "14:30",
  "impo_expo": "IMPO",
  "tipo": null,
  "fcl_lcl": "LCL",
  "cond_venta": null,
  "cliente_id": 3,
  "cliente_nombre": "Empresa SA",
  "origen_id": 2,
  "origen_nombre": "Shanghai",
  "via_id": 1,
  "via_nombre": "Buenos Aires",
  "cliente_final": null,
  "kgs": 500,
  "cbm_facturables": 2.5,
  "cbm_reales": 2.3,
  "detalle": "Electronics components",
  "imo": null,
  "apilable": "SI",
  "pickup_address": null,
  "moneda": "USD",
  "gastos_origen_neto": 100,
  "gastos_origen_venta": 150,
  "flete_neto": 500,
  "flete_venta": 650,
  "tipo_fn": null,
  "tipo_fv": null,
  "cerrada": "ENCOTIZACION",
  "fecha_cierre": null,
  "observaciones": null,
  "referencia": null,
  "orden_venta": null,
  "profit": 200,
  "validez_tarifa": null,
  "semana": 7,
  "mes": 2,
  "anio": 2026,
  "vendedor_id": 5,
  "vendedor_nombre": "María López"
}
Retrieves a single quotation by ID with related data (client, origin, via, seller).

Authorization

Requires active session. Non-admin users can only access quotations they created.

Path Parameters

id
number
required
Quotation ID

Response

data
object
Quotation object with joined data
curl -X GET 'https://your-domain.com/api/cotizaciones/15' \
  -H 'Cookie: session=your-session-token'
{
  "id": 15,
  "nro_cotizacion": "COT-2602-0015",
  "fecha": "2026-02-10",
  "hora": "14:30",
  "impo_expo": "IMPO",
  "tipo": null,
  "fcl_lcl": "LCL",
  "cond_venta": null,
  "cliente_id": 3,
  "cliente_nombre": "Empresa SA",
  "origen_id": 2,
  "origen_nombre": "Shanghai",
  "via_id": 1,
  "via_nombre": "Buenos Aires",
  "cliente_final": null,
  "kgs": 500,
  "cbm_facturables": 2.5,
  "cbm_reales": 2.3,
  "detalle": "Electronics components",
  "imo": null,
  "apilable": "SI",
  "pickup_address": null,
  "moneda": "USD",
  "gastos_origen_neto": 100,
  "gastos_origen_venta": 150,
  "flete_neto": 500,
  "flete_venta": 650,
  "tipo_fn": null,
  "tipo_fv": null,
  "cerrada": "ENCOTIZACION",
  "fecha_cierre": null,
  "observaciones": null,
  "referencia": null,
  "orden_venta": null,
  "profit": 200,
  "validez_tarifa": null,
  "semana": 7,
  "mes": 2,
  "anio": 2026,
  "vendedor_id": 5,
  "vendedor_nombre": "María López"
}

Error Responses

StatusCondition
401No active session
403Non-admin user attempting to access another user’s quotation
404Quotation ID does not exist

Notes

  • Role-based access: Admin users can access any quotation. Non-admin users can only access quotations where vendedor_id matches their user ID.
  • The response includes joined data from related tables (clients, locations, users)
  • Field names in the response use Spanish naming convention for frontend compatibility

Build docs developers (and LLMs) love