Authorization header.
GET /inventory
Returns a paginated list of products from your catalog. Each product record includes pricing, cost, and aninventarios array showing current stock levels broken down by warehouse and branch.
Query parameters
string
Filter by product SKU or internal code. Performs a partial match.
string
Filter by product name. Performs a partial, case-insensitive match.
string
Filter by category name. Performs a partial match against
nombre_categoria.string
Filter by brand name. Performs a partial match.
string
Filter by product type. Accepted values:
Producto, Servicio.integer
Filter by active status. Use
1 for active products and 0 for inactive products.boolean
When
true, returns only products that have stock greater than zero across at least one warehouse.boolean
When
true, returns only products whose current stock is at or below their configured minimum stock threshold.integer
Page number to retrieve. Defaults to
1.integer
Number of records per page. Accepts values between
1 and 200. Defaults to 100.string
Field to sort results by. Accepted values:
nombre, codigo, precio, costo, created_at.string
Sort direction. Accepted values:
asc, desc.Response example
Response fields
boolean
Indicates whether the request completed successfully.
array
Array of product objects matching the applied filters.
GET /inventory/{id}
Retrieves a single product record by its numeric ID. The response returns the same full Product object described above, including theinventarios array with stock levels per warehouse.
Path parameter
integer
required
The unique numeric identifier of the product you want to retrieve.
data key with "success": true. All fields, including inventarios, are identical to the structure documented in the GET /inventory response above.
GET /inventory/summary
Returns aggregate statistics for your entire product catalog and combined stock position. Use this endpoint to get a quick overview of catalog health — how many products are active, total stock on hand, total inventory value, and which categories contain the most products.Response example
Response fields
integer
Total number of products in your catalog, regardless of status.
integer
Number of products currently marked as active (
enable = 1).integer
Number of products currently marked as inactive (
enable = 0).number
Sum of all stock quantities across every product and warehouse.
number
Total inventory value calculated using each product’s average cost (
costo_promedio) multiplied by its current stock.integer
Number of distinct products that have at least one unit in stock across any warehouse.
integer
Number of distinct products with zero stock across all warehouses.
integer
Number of products whose current stock is at or below their configured
stock_minimo threshold in at least one warehouse.array
List of product counts grouped by category.
string
Display name of the company associated with your API key.
string
ISO 8601 timestamp indicating when the summary was generated.
object
Echo of any filters used to compute the summary.