Dragon Guard integrates with external ERP systems through a provider-based model. Rather than a single generic connector, each tenant is resolved to a named provider that determines which integration flows are supported. Two native providers ship today — GrupoMASNative and BusinessCentralNative — alongside a generic push/import model for ERPs that prefer to send data to Dragon Guard via REST.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CodexaCP/DG_BACK/llms.txt
Use this file to discover all available pages before exploring further.
Route Prefixes
All integration endpoints are served under two equivalent route prefixes:| Prefix | Role |
|---|---|
api/v1/integration/ | Canonical (recommended) |
api/integration/ | Legacy alias — fully supported and identical in behavior |
api/v1/ prefix.
Authentication
All integration endpoints under/api/v1/integration/ use API key authentication, not JWT.
Tenant-specific API key. Generated by a
SUPERADMIN_SUPREMO user in the Supreme administration panel and scoped to a single company.Optional trace identifier. If omitted, Dragon Guard generates one from the ASP.NET trace identifier. The resolved value is echoed in every response body as
correlationId.Required for POST requests. Use
application/json.Integration endpoints reject requests that do not carry a valid
X-Api-Key. A missing key returns error code API_KEY_MISSING; an unrecognized key returns API_KEY_INVALID. If the tenant’s API access switch is off, the response code is API_ACCESS_DISABLED.Contract Versioning
Integration endpoints support an optional versioning header.Contract version expected by the caller. Omit to use version
1 (current default). If a value other than "1" is sent, Dragon Guard returns 400 Bad Request. Every response echoes X-Contract-Version: 1.Provider Names
Dragon Guard resolves every tenant to exactly one provider name at request time.| Provider name | Notes |
|---|---|
Standalone | Local-only warehouse operations, no ERP connection |
GenericApi | Push/import model — ERP sends catalog, receipts, and shipments to Dragon Guard |
GrupoMASNative | Contract-first bidirectional adapter to Grupo Mas ERP |
BusinessCentralNative | Read-through adapter to Microsoft Business Central |
IntegrationMode stored on the company record plus the ExternalSystem field as a tiebreaker when the mode is still stored as the legacy IntegratedApi value.
Capabilities Endpoint
Use this endpoint at startup or on reconnect to discover what the tenant’s provider supports before making operational calls.GET /api/v1/integration/capabilities
Returns the provider name, integration mode, API access flag, and a full capabilities object.Company Endpoint
GET /api/v1/integration/company
Returns full company metadata includingcompanyId, companyCode, companyName, integrationMode, providerName, apiAccessEnabled, externalSystemCode, deviceLimit, and the same capabilities object as above.
Integration Modes at a Glance
ERP_EXECUTION — GrupoMASNative
Dragon Guard polls Grupo Mas ERP for released work (receipts, shipments, counts, transfers), executes the physical operation on handheld, and posts results back to the ERP. Catalog sync and document import are disabled for this provider.
ERP_EXECUTION — BusinessCentralNative
Dragon Guard reads items, receipts, shipments, and movements directly from Business Central through a dedicated adapter. Write-back to BC is not yet implemented in the current rollout.
ERP_SYNC — GenericApi
The ERP pushes catalog items, opening stock, receipts, and shipments to Dragon Guard via the
/api/v1/integration/ REST endpoints. Dragon Guard stores and executes the documents locally.LOCAL — Standalone
No ERP connection. Dragon Guard operates fully local-first with its own item master, stock ledger, and document management.
Provider Capabilities Reference
Thecapabilities object in the GET responses reflects the policy matrix below. Use these flags to conditionally enable or disable features in your integration client.
true for native providers (GrupoMASNative, BusinessCentralNative). Dragon Guard uses an internal HTTP adapter to communicate with the ERP; the tenant must have baseUrl and credentials configured in Supreme.true when Dragon Guard can query the ERP for released documents ready for physical execution.true when Dragon Guard sends execution results back to the ERP after the handheld completes the operation.true when Dragon Guard maintains its own operational status and audit trail for executed documents.true when Dragon Guard can query the ERP for the remote document status. Currently false for GrupoMASNative pending live status query implementation.true for GenericApi. false for native ERP-owned providers — calling catalog sync endpoints returns 409 Conflict for those tenants.true for GenericApi. false for ERP-owned providers.Error Response Shape
All integration endpoints return a consistent error envelope:false on any error.The resolved company code. Empty string when the tenant could not be resolved.
Trace identifier. Use this value when contacting support.
Machine-readable error code. Common values:
API_KEY_MISSING, API_KEY_INVALID, TENANT_INACTIVE, API_ACCESS_DISABLED, INTEGRATION_MODE_DISABLED, ITEM_NOT_FOUND, LOCATION_NOT_FOUND, DUPLICATE_EXTERNAL_DOCUMENT, VALIDATION_ERROR.