Skip to content

Inventory

Warehouses, stock per product and inventory queries. All routes require authentication.

Warehouses

MethodPathDescription
GET/warehousesList warehouses
POST/warehousesCreate a warehouse

Stock

MethodPathDescription
GET/stocksList stock records
GET/stocks/:idGet a stock record by ID
POST/stocksCreate stock record
PUT/stocks/:idUpdate stock
GET/stock/by-warehouse/:productIdStock for a product by warehouse

Manual inventory movements

Base path: /inventory-movements. Permissions depend on the operation (e.g. inventorys.view for read).

MethodPathDescription
GET/inventory-movementsList movements (query params per controller)
GET/inventory-movements/:idMovement detail and lines
POST/inventory-movementsCreate movement (entry, exit, transfer, revaluation)
POST/inventory-movements/:id/printGenerate movement PDF (Jasper report movimiento_inventario). Response application/pdf; X-Filename header with suggested name. Same permission as viewing the movement (inventorys.view).

Example: list warehouses

bash
curl -X GET "https://api.abaco.hn/warehouses" \
  -H "Authorization: Bearer YOUR_KEY_ID:YOUR_SECRET"

Example: stock by warehouse for a product

bash
curl -X GET "https://api.abaco.hn/stock/by-warehouse/123" \
  -H "Authorization: Bearer YOUR_KEY_ID:YOUR_SECRET"

Common errors

  • 401: Invalid or expired API key.
  • 403: No permission for the resource.
  • 404: Resource not found.

Back to API index