# Listar lotes

**GET** /v1/inventory/batches

Devuelve todos los lotes ordenados por fecha de vencimiento ascendente (FEFO: primero en vencer, primero en salir). Los lotes sin fecha aparecen al final.

Filtros opcionales: listing_id, location_id, expiring_before (fecha ISO YYYY-MM-DD) y active_only=1 (cantidad mayor que cero).

Respuesta batches: array ordenado por FEFO. Cada lote incluye id, listing_id, location_id, lot_number (nullable), expiry_date (nullable, YYYY-MM-DD), quantity, listing (id, sku, barcode) y location (id, name, code).
