beel_list_products
List and filter a company's products or services using search, category, price, and status filters.
Instructions
Returns a paginated list of the products/services of this company (NIF), with optional filters.
Searching is ?q= on this collection: there is no separate search path. q matches the
name, the code and the description, so it returns at least everything the withdrawn
GET /v1/products/search returned, in the paginated envelope of this list.
Endpoint: GET /v1/companies/{company_id}/products
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Search by name, code or description | |
| code | No | Filter by code (partial search) | |
| name | No | Filter by name (partial search case-insensitive) | |
| page | No | Page number, starting at 1. The response echoes it back as `pagination.current_page`. | |
| limit | No | How many items to return per page. The response echoes it back as `pagination.items_per_page`. | |
| active | No | Filter by active/inactive status | |
| sort_by | No | Field to sort by | name |
| category | No | Filter by product category | |
| max_price | No | Maximum price | |
| min_price | No | Minimum price | |
| company_id | Yes | NIF (company) the operation acts on. It is the only source of context: the account that owns it is derived from it, and the `BeeL-Active-Company` header plays no part. A NIF you do not reach answers `403`, and so does a NIF that does not exist, so the existence of a NIF in another account is never disclosed. | |
| sort_order | No | Sort order direction | asc |