Skip to main content

Read and handle DALP errors

Read the DALP-#### id, category and retryable flag on every Platform API error, branch your integration on those fields, and never parse the message text.

Overview

Every versioned Platform API error returns a structured envelope: a stable code, HTTP status, headline message, and a data object carrying id, why, fix, retryable, and category. JSON-RPC and Server-Sent Events streams use the same registry framed for their transport.

{
  "code": "USER_EMAIL_ALREADY_EXISTS",
  "status": 409,
  "message": "A user with this email already exists.",
  "data": {
    "id": "DALP-0670",
    "why": "Each platform user must have a unique email address.",
    "fix": "Use a different email or open the existing user in User management.",
    "retryable": false,
    "category": "client"
  }
}

Use this page as the wire-format reference for error fields, module refusals, and contract error metadata. For retry decision trees, backoff policies, domain recovery, and back-office escalation, see Error handling.

Fields to branch on

Field
Use it to
code
Identify the machine error name (such as USER_EMAIL_ALREADY_EXISTS). Stable alongside data.id.
data.id
Identify the exact catalogued error (preferred for new clients). Look it up in the DALP error index.
data.category
Route logging, alerts, and support tickets: client, auth, permission, domain, contract, dependency, operational, vendor-boundary, or unknown.
status
Integrate with HTTP clients (400 through 599). Never rely on HTTP status alone to decide retries.
data.retryable
Decide whether an automated retry can succeed after the named condition clears (never tight-loop).
data.requestId
Correlate support tickets. A 500 INTERNAL_SERVER_ERROR body repeats the X-Request-Id value here. A compliance refusal names the refused transaction here instead.

Never parse message or data.why in control flow because copy can change between releases.

Decide what to do

Branch on data.id, data.retryable, and data.fix:

  • Retry: Only when data.retryable is true, the blocking condition has cleared, and the route documents replay safety. Read uncertain write state before resubmitting.
  • Fix the request: When data.retryable is false and data.fix names an action you control. Read data.fix before assuming a human cannot retry manually.
  • Escalate: When neither applies, attaching data.id, the X-Request-Id header value, and the affected resource.

data.category is for routing and telemetry, not retry logic: two errors in the same category can differ on data.retryable. See Decide whether to retry for the full decision flow.

Which failures deserve a person

Error responses carry no severity field, while platform logs record each catalogued error at its registry severity (info, warning, error, or fatal). Expected client rejections (such as validation or compliance blocks) log at info so alerts keyed on log severity do not page operators for routine refusals. See Criticality and escalation.

Licensed module refusals

A write to a licensed module switched off by the caller's organisation returns 403 platform.module.DISABLED (DALP-20531, category: "domain", retryable: false) naming data.module. Reads continue working for both sessions and API keys.

{
  "code": "platform.module.DISABLED",
  "status": 403,
  "message": "This module is switched off for your organization",
  "data": {
    "id": "DALP-20531",
    "retryable": false,
    "module": "tradingVenue"
  }
}

The response also includes why, fix and category, and the X-Request-Id header. Do not retry until an organisation owner enables the module in Organisation settings.

Modules disabled at the deployment level return a standard 404 instead. The Canton wallet routes (/api/v2/wallets/*) return 404 while features.canton is off (the release 3.2 default), which the CLI surfaces as FEATURE_NOT_ENABLED. Multi-family routes like GET /api/v2/tokens return 400 COLLECTION_FILTER_VALUE_INVALID if given filter[family]=canton, a Canton filter[network], or X-Network-Id while Canton is off. Token reads such as GET /api/v2/tokens/{assetId}/compliance-modules return 400 ASSET_REF_INVALID if given instrumentAdmin while Canton is off, and GET /api/v2/tokens/{assetId}/accounts returns 422 OPERATION_FAMILY_UNSUPPORTED. Token writes that send instrumentAdmin are refused the same way before any wallet verification: mint, approve, transfer and the holding unlock return 400 ASSET_REF_INVALID, and the Canton-only writes (account registration, holding freeze, burner capability revocation, account snapshot and transfer acceptance) return 422 OPERATION_FAMILY_UNSUPPORTED.

Authentication comes before request checks

Authenticated routes validate credentials before parsing path, query, or body fields. Missing or invalid credentials return 401 AUTHENTICATION_REQUIRED without listing field errors. Only authenticated callers receive 400 REQUEST_INVALID with data.errors.

Request bodies that serve two families

Write routes serving both EVM tokens and Canton instruments (such as POST /api/v2/tokens/{assetId}/mints) inspect instrumentAdmin to select the family. Bodies without it validate against the EVM schema, and bodies with it validate against the Canton schema, so data.errors lists only fields for the chosen family.

While features.canton is off, a Canton body on a write outside the token routes is refused before any wallet verification, and the refusal is not retryable. A Canton token create (POST /api/v2/tokens with type: "canton") and its creation preflight return 422 OPERATION_FAMILY_UNSUPPORTED with supportedFamilies: ["evm"]. The Canton feature attach, dividend declaration and dividend claim return 400 ASSET_REF_INVALID, and the Canton feature revocations return 422 OPERATION_FAMILY_UNSUPPORTED with an empty supportedFamilies. Governance proposals, votes, queue operations and executions with instrumentAdmin return 422 OPERATION_FAMILY_UNSUPPORTED with ["evm"]. Governance configurations, execution capabilities and every airdrop write, which serve only Canton, return it with an empty list. XvP create, approve and execute with instrumentAdmin return 400 REQUEST_INVALID, and data.errors says Canton is not enabled. A Canton body on the token compliance module install or uninstall returns 422 OPERATION_FAMILY_UNSUPPORTED with ["evm"], and PUT /api/v2/tokens/{assetId}/compliance-modules and the attester registry update, which serve only Canton, return it with an empty list. When an approval policy holds one of these writes, the approval gate still asks for wallet verification first, as it does for every held write, and the refusal follows before anything is queued.

Where to look up a code

Contract errors carry extra fields

Reverted smart contract calls add dalpCode, reverting function selector, Solidity solidityError, and (when recorded) transactionId. Across gas estimation, broadcast, receipts, bundler failures, and raw reverts, DALP resolves the four-byte selector against the contract error catalogue so identical on-chain reverts return consistent ids and copy.

Compliance reverts carry a reason

Compliance-blocked mints and transfers may include data.args.reason alongside party, sender/recipient, wallet, and module:

data.args.reason
Owner / action
identity-not-registered
Onboarding: register the party's identity.
identity-not-verified
Trusted issuer: issue or renew the missing required claim.
module-blocked
Token policy: review the blocking compliance module rule.
stale-price
Feed operator: refresh the stale price feed.
classification-unavailable
Registry setup: token lacks a trusted issuer or topic scheme registry.

Classification is best effort and role-gated: branch on data.id first and treat an absent reason as normal. Transfers disclose classification only when the executing wallet holds System manager, Identity manager, or Verification issuer (mints also admit Supply management). Forced transfers disclose only identity-not-registered or classification-unavailable without that role check.

Present errors to a user

Display message as the headline, data.why as the explanation, and data.fix as the recovery step rather than hardcoding text per data.id.

Next steps

Was this page helpful?