The Receipts API exposesDocumentation 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.
ReceivingHeaders — the primary document type for inbound inventory in Dragon Guard WMS. From the web frontend, users can list existing receipt headers, inspect a single receipt, and create new receipt documents. The physical receiving process (scanning items, incrementing quantityReceived) and the final posting step are performed exclusively by warehouse handheld devices; both operations are forbidden from the web client.
Endpoints overview
| Method | Path | Description |
|---|---|---|
GET | /api/ReceivingHeaders | List all receipt headers for a company |
GET | /api/ReceivingHeaders/{id} | Retrieve a single receipt header by ID |
POST | /api/ReceivingHeaders | Create a new receipt header document |
List receipt headers
ReceivingHeader documents belonging to the specified company.
Query parameters
The ID of the active company. Must match the
active_company_id stored in sessionStorage for tenant users.Get receipt header by ID
Path parameters
The unique identifier of the
ReceivingHeader document.Create a receipt header
Open status. The document number is assigned by the backend sequence; use GET /api/document-sequence only for an informational preview in the UI.
Request body
The ID of the company this receipt belongs to.
The ID of the vendor from whom the goods are being received.
ISO 8601 date string representing the expected arrival date (
YYYY-MM-DD).Total number of units expected for this receipt document.
Must be
0 at creation. Physical receiving is performed by handheld devices only.Optional reference to an existing purchase order. Links the receipt to the corresponding order flow.
Array of line items to include on the receipt. Each line references an item and an expected quantity.
201 Created
Business rules
quantityReceived must always be 0 when creating a receipt header. The backend will reject any creation request where this field is non-zero. Quantities are updated incrementally by the handheld receiving flow.- All receipt documents are scoped to a single company via
companyId. - Document numbers are generated by the backend sequence — never reuse or predict sequence values.
- Vendors referenced by
vendorIdmust exist and belong to the samecompanyId. - Lines referencing items (
itemId) must correspond to active items in the company’s catalog.
Error codes
| HTTP Status | Meaning |
|---|---|
400 | Validation error — quantityReceived ≠ 0, missing fields, invalid references |
401 | Missing or expired JWT token |
500 | Internal server error |