The Shipments API manages outbound inventory documents (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.
shipmentheaders) in Dragon Guard WMS. The web frontend supports listing, inspecting, creating, and editing shipment headers. As with receipts, the physical pick-and-ship process and the final posting step are driven by warehouse handheld devices — calling the post action from the web client is strictly forbidden. Admin users can additionally use the config package endpoints to export, preview, and bulk-apply shipment configurations.
Endpoints overview
| Method | Path | Description |
|---|---|---|
GET | /api/shipmentheaders | List all shipment headers for a company |
GET | /api/shipmentheaders/{id} | Retrieve a single shipment header by ID |
POST | /api/shipmentheaders | Create a new shipment header document |
PUT | /api/shipmentheaders/{id} | Update an existing shipment header |
List shipment headers
Query parameters
The ID of the active company. Must match
active_company_id in sessionStorage for tenant users.Get shipment header by ID
Path parameters
The unique identifier of the
shipmentheader document.Create a shipment header
Open status.
Request body
The ID of the company this shipment belongs to.
The ID of the customer receiving the shipment.
Planned shipment date in ISO 8601 format (
YYYY-MM-DD).Must be
0 at creation. Physical shipping quantities are recorded by handheld devices.Optional reference to an existing sales order. When provided, the backend validates that the order belongs to the active company and populates commercial fields from the order snapshot.
Optional reference to the seller associated with this shipment.
Array of shipment line items.
201 Created
Update a shipment header
Open documents may be edited; documents that have been picked or posted are read-only.
Path parameters
The unique identifier of the shipment header to update.
Request body
Supply any combination of updatable fields. Fields omitted from the body retain their current values.Updated planned shipment date (
YYYY-MM-DD).Updated seller reference.
Replacement set of shipment lines. Providing this array replaces all existing lines.
Business rules
shippedQty must always be 0 when creating a shipment header. Shipped quantities are written by the handheld pick-and-ship flow and must not be pre-populated from the web.- When
salesOrderIdis provided, the backend validates the order belongs to theactive_company_id. Commercial fields on the shipment are populated from the order snapshot and become read-only from the web. - Posted progress is driven by the backend and handheld devices, not by web editing.
- Customers, sellers, and items referenced in the body must all belong to the same
companyId.
Config package endpoints (admin only)
Config package endpoints allow administrators to export the current configuration, preview a proposed configuration change, and apply it in bulk. All six endpoints follow the same three-step workflow.Export current config
Call the
export-config endpoint to download the current configuration as a portable package.Preview proposed changes
Submit the modified package to the
preview-config endpoint to see a diff of what will change before committing.Shipment Headers config
| Method | Path | Description |
|---|---|---|
GET/POST | /api/shipmentheaders/export-config | Export current header configuration |
GET/POST | /api/shipmentheaders/preview-config | Preview proposed header config changes |
GET/POST | /api/shipmentheaders/apply-config | Apply header configuration package |
Shipment Lines config
| Method | Path | Description |
|---|---|---|
GET/POST | /api/shipmentlines/export-config | Export current line configuration |
GET/POST | /api/shipmentlines/preview-config | Preview proposed line config changes |
GET/POST | /api/shipmentlines/apply-config | Apply line configuration package |
Config package endpoints are restricted to admin-level roles. See Config Packages API for full documentation on the export/preview/apply pattern, request and response schemas, and cross-entity config management.
Error codes
| HTTP Status | Meaning |
|---|---|
400 | Validation error — shippedQty ≠ 0, invalid salesOrderId, missing fields |
401 | Missing or expired JWT token |
500 | Internal server error |