Skip to main content
GET
/
api
/
cotizaciones
curl -X GET 'https://your-domain.com/api/cotizaciones?fecha_desde=2026-02-01&fecha_hasta=2026-02-28&cerrada=SI,PEND' \
  -H 'Cookie: session=your-session-token'
[
  {
    "id": 1,
    "nro_cotizacion": "COT-2602-0001",
    "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",
    "origen_pais": "China",
    "via_id": 1,
    "via_nombre": "Buenos Aires",
    "cliente_final": null,
    "kgs": 500.0,
    "cbm_facturables": 2.5,
    "cbm_reales": 2.3,
    "detalle": "Electronics components",
    "imo": null,
    "apilable": "SI",
    "pickup_address": null,
    "moneda": "USD",
    "gastos_origen_neto": 100.0,
    "gastos_origen_venta": 150.0,
    "flete_neto": 500.0,
    "flete_venta": 650.0,
    "tipo_fn": null,
    "tipo_fv": null,
    "cerrada": "ENCOTIZACION",
    "fecha_cierre": null,
    "orden_venta": null,
    "observaciones": null,
    "referencia": null,
    "profit": 200.0,
    "validez_tarifa": null,
    "semana": 7,
    "mes": 2,
    "anio": 2026,
    "vendedor_id": 5,
    "vendedor_nombre": "María López"
  }
]
Retrieves a list of quotations with optional filters.

Authorization

Requires active session. Non-admin users can only see their own quotations (automatically filtered by vendedor_id = session.userId).

Query Parameters

fecha_desde
string
Filter quotations from this date (inclusive)
fecha_hasta
string
Filter quotations until this date (inclusive)
cliente_id
string
Comma-separated client IDs. Example: 1,2,5
cerrada
string
Comma-separated status values. Possible values:
  • ENCOTIZACION - In quotation
  • SI - Won
  • NO - Lost
  • PEND - Pending
  • PEND A/C - Pending approval
Example: SI,PEND
vendedor_id
string
Comma-separated seller IDs. Example: 3,7Note: Only available for admin users. Non-admin users automatically see only their own quotations.
via_id
number
Filter by via (route) ID

Response

data
array
Array of quotation objects ordered by date (descending) and ID (descending)
curl -X GET 'https://your-domain.com/api/cotizaciones?fecha_desde=2026-02-01&fecha_hasta=2026-02-28&cerrada=SI,PEND' \
  -H 'Cookie: session=your-session-token'
[
  {
    "id": 1,
    "nro_cotizacion": "COT-2602-0001",
    "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",
    "origen_pais": "China",
    "via_id": 1,
    "via_nombre": "Buenos Aires",
    "cliente_final": null,
    "kgs": 500.0,
    "cbm_facturables": 2.5,
    "cbm_reales": 2.3,
    "detalle": "Electronics components",
    "imo": null,
    "apilable": "SI",
    "pickup_address": null,
    "moneda": "USD",
    "gastos_origen_neto": 100.0,
    "gastos_origen_venta": 150.0,
    "flete_neto": 500.0,
    "flete_venta": 650.0,
    "tipo_fn": null,
    "tipo_fv": null,
    "cerrada": "ENCOTIZACION",
    "fecha_cierre": null,
    "orden_venta": null,
    "observaciones": null,
    "referencia": null,
    "profit": 200.0,
    "validez_tarifa": null,
    "semana": 7,
    "mes": 2,
    "anio": 2026,
    "vendedor_id": 5,
    "vendedor_nombre": "María López"
  }
]

Notes

  • Role-based access: Admin users see all quotations. Non-admin users only see quotations they created.
  • Results are ordered by date (descending) and ID (descending)
  • All query parameters are optional and can be combined
  • Multiple IDs can be passed as comma-separated values for cliente_id and vendedor_id

Build docs developers (and LLMs) love