Commercial masters are the foundational reference entities that appear on transactional documents across Dragon Guard WMS. Customers are referenced on shipments, vendors on receipts, and sellers on shipments and sales orders. All three entity types are strictly company-scoped — every record belongs to exactly one company, andDocumentation 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.
companyId is required on all create and list operations. Because these records are embedded as snapshots in posted documents, they must never be physically deleted once referenced; administrators should instead mark them as inactive to preserve the integrity of document history.
Endpoints overview
| Method | Path | Description |
|---|---|---|
GET | /api/customers | List all customers for a company |
POST | /api/customers | Create a new customer |
PUT | /api/customers | Update an existing customer |
GET | /api/vendors | List all vendors for a company |
POST | /api/vendors | Create a new vendor |
PUT | /api/vendors | Update an existing vendor |
GET | /api/sellers | List all sellers for a company |
POST | /api/sellers | Create a new seller |
PUT | /api/sellers | Update an existing seller |
Customers
Customers represent the companies or individuals to whom goods are shipped. The composite keyCompanyId + CustomerNo is unique per company. Additional duplicate controls apply to tax ID and external identity values.
List customers
The ID of the active company. Returns customers belonging to this company only.
Create a customer
The company this customer belongs to.
Unique customer number within the company. Together with
companyId, forms the natural key.Full legal or commercial name of the customer.
Tax identification number. Must be unique within the company — duplicate tax IDs return error code
validation.customerDuplicate.External system identifier (e.g., ERP customer code). Must be unique within the company — duplicates return
validation.customerDuplicate.Contact email address for the customer.
Active status. Defaults to
true. Set to false to retire a customer without deleting.Update a customer
id field alongside any fields to update. The companyId and customerNo key cannot be changed after creation.
The ID of the customer record to update.
Vendors
Vendors represent the suppliers from whom goods are received. The composite keyCompanyId + VendorNo is unique per company.
List vendors
The ID of the active company.
Create a vendor
The company this vendor belongs to.
Unique vendor number within the company. Together with
companyId, forms the natural key.Full legal or commercial name of the vendor.
Tax identification number.
Contact email address for the vendor.
Active status. Defaults to
true.Update a vendor
The ID of the vendor record to update.
Sellers
Sellers represent the internal sales representatives or agents associated with shipments and sales orders. The composite keyCompanyId + SellerCode is unique per company. Additional duplicate controls apply to email address and external identity values.
List sellers
The ID of the active company.
Create a seller
The company this seller belongs to.
Unique seller code within the company. Together with
companyId, forms the natural key.Full name of the seller.
Work email address for the seller. Must be unique within the company — duplicates return error code
validation.sellerDuplicate.External system identifier (e.g., HR system code). Must be unique within the company — duplicates return
validation.sellerDuplicate.Active status. Defaults to
true.Update a seller
The ID of the seller record to update.
Business rules
When a shipment or sales order is posted, the commercial master data (customer name, tax ID, seller details) is captured as a snapshot on the document. Subsequent updates to the master record will not affect already-posted documents.
Duplicate validation
| Entity | Duplicate error code | Duplicate controls |
|---|---|---|
| Customer | validation.customerDuplicate | CompanyId + CustomerNo, taxId, externalId |
| Vendor | (standard 400) | CompanyId + VendorNo |
| Seller | validation.sellerDuplicate | CompanyId + SellerCode, email, externalId |
Company scope
All entities are scoped to a single company. Cross-company queries are not supported from the tenant context. TheSUPERADMIN_SUPREMO role may inspect any company’s records through the Supreme API.
Error codes
| HTTP Status | Meaning |
|---|---|
400 | Validation error — missing fields, duplicate key (validation.customerDuplicate, validation.sellerDuplicate) |
401 | Missing or expired JWT token |
500 | Internal server error |