Price List Overview
Search and filter product price lists with advanced filtering options, statistics, and export capabilities.Search Products
Search and filter products from the price list.Authentication & Permissions
Valid session or Sanctum token
ver-lista-preciospermission
Query Parameters
Search term for product description or code
Product type/line filter
Alias for tipo (product line)
Product class filter
Product group filter
Filter to show only products with available inventory
Column to order by
Order direction (asc/desc)
Results per page
Response
Array of product objects
Current page number
Results per page
Total number of results
Last page number
Product Object
Product code
Product description
Product type/line
Product class
Product group
Product price
Available inventory
Example Request
Example Response
Get Product Details
Retrieve detailed information about a specific product.Path Parameters
Product code
Example Request
Response
Returns complete product object or 404 if not found.Get Related Products
Retrieve products related to a specific product.Path Parameters
Product code
Response
Array of related products
Total number of related products
Example Request
Get Filter Options
Retrieve available filter options for the price list.Response
Available product types/lines
Available product classes
Available product groups
Statistics about the product catalog
Example Response
Get Dynamic Filters
Get filter options based on selected tipo/clase.Query Parameters
Selected product type
Selected product class
Response
Classes available for selected tipo
Groups available for selected tipo/clase combination
Example Request
Get Statistics
Retrieve price list statistics.Response
Statistics object
ISO 8601 timestamp
Example Response
Export Price List
Export filtered price list to CSV.Query Parameters
Same as search endpoint:Search term
Product type filter
Product class filter
Product group filter
Only products with stock
Export format (csv or excel)
Response
Returns a streamed CSV file download. Content-Type:text/csv; charset=utf-8
Filename: lista_precios_senco_{timestamp}.csv
Example Request
Export to PDF
Export price list to PDF format.Query Parameters
Same filtering parameters as search.Response
Returns PDF file stream. Content-Type:application/pdf
Example Request
Implementation Notes
Source:app/Http/Controllers/ListaPreciosController.php
Service Layer
The controller usesListaPreciosService for business logic:
sanitizarParametros()- Sanitize input parametersgetProductos()- Get paginated productsgetFiltrosData()- Get filter optionsgetProductoDetalle()- Get product detailsexportarCSV()- Generate CSV exportexportarExcel()- Generate Excel exportgetProductosRelacionados()- Get related productsgetClasesByTipo()- Get classes for a typegetGruposByTipoClase()- Get groups for type/class
Middleware
All routes require:authmiddlewarepermission:ver-lista-precios