The Items and Stock API covers the full lifecycle of product catalog and inventory data accessible from the Dragon Guard WMS web frontend. The frontend operates in a read-oriented mode for day-to-day inventory visibility: stock levels are queried through the enriched stock endpoint, and item movements are available for audit and analysis. Administrative users can additionally create new items and upload product images. No stock manipulation or inventory posting is permitted from the web client — all physical inventory changes originate from handheld warehouse devices.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CodexaCP/DG_WEB/llms.txt
Use this file to discover all available pages before exploring further.
Endpoints overview
| Method | Path | Description |
|---|---|---|
GET | /api/stock/enriched | Query enriched stock with item and location details |
POST | /api/items/create_item | Create a new item in the product catalog |
POST | /api/item-images/upload | Upload a product image and associate it with an item |
GET | /api/movements | List inventory movement records (read-only) |
Enriched stock query
Query parameters
The ID of the active company. Filters stock to the company’s locations only.
Filter results to a single item by its catalog ID.
Filter results to a specific warehouse location.
Filter results to a specific bin within a location.
Free-text search across item code, description, and barcode fields.
Page number for paginated results (1-based). Defaults to
1.Number of records per page. Defaults to
50.Create an item
Request body
The ID of the company that owns this item.
Unique alphanumeric item code within the company catalog.
Human-readable product description.
Optional EAN/UPC barcode for scanning by handheld devices.
Base unit of measure code (e.g.,
EA, BOX, PALLET, KG).Whether the item is active and available for use in documents. Defaults to
true.Optional category ID for grouping items in the catalog.
201 Created
Upload item image
Form fields
The ID of the item to associate the image with.
The image file. Accepted MIME types:
image/jpeg, image/png. Maximum size: 5 MB.200 OK
List inventory movements
This endpoint is read-only. It is not possible to create, edit, or reverse inventory movements from the Dragon Guard WMS web frontend. Import and export of movement data are administrative operations only. No inventory posting is available from the web.
Query parameters
The ID of the active company. Scopes movement records to the company’s warehouse.
Filter movements for a specific item.
Filter by movement type. Common values:
Receipt, Shipment, Adjustment, Transfer.ISO 8601 start date for the movement date range (
YYYY-MM-DD).ISO 8601 end date for the movement date range (
YYYY-MM-DD).Free-text search against movement reference fields (document number, item code, etc.).
Page number (1-based). Defaults to
1.Records per page. Defaults to
50.Business rules
- Item codes must be unique within a company catalog. Attempting to create a duplicate item code returns a
400validation error. - Items referenced by active receipt lines, shipment lines, or movements must not be deleted. Use
isActive: falseto retire catalog items. - The
GET /api/stock/enrichedresponse may include items with zeroquantityOnHand; these represent catalog entries at locations where no stock is currently present.
Error codes
| HTTP Status | Meaning |
|---|---|
400 | Validation error — missing required fields, duplicate item code, unsupported image type |
401 | Missing or expired JWT token |
500 | Internal server error |