Contract
- shape
- entity
- authority
- act
- evidence
- none
- subscription
- false
- permission
- any one of: org.member (carried by the caller's role template in the org `org_id`); a deactivated caller is refused first
- idempotency
- natural
- emits
- depot.referenced
- MCP tool
- reference_depot
- decision_set
- approve, reject, edit, request_info
- REST
- POST https://api.containertradehq.com/v1/cap/reference_depot
Through MCP this call returns an approval request first; see Approvals.
Idempotency: keyed by the contract's own inputs: the same inputs replay the first call's result
Inputs
| name | type | required | validation |
|---|---|---|---|
| org_id | org_id | required | tradehq-org-id; 1 to 20 characters The org that uses the depot. |
| bfc | bfc | required | bic-facility-code The depot's BIC Facility Code, from list_depot_registry. |
| alias | text | required | 1 to 200 characters The org's own name for the depot. |
| private_code | text | optional | 1 to 64 characters The org's own code for the depot, as its systems write it. Absent, the alias. |
Response
depot_reference_id· string · The mapping's id.org_id· string · The org.bfc· string · The canonical BFC.alias· string · The org's name for it.private_code· string · The org's code for it.
Full JSON Schema
{
"type": "object",
"properties": {
"depot_reference_id": {
"type": "string",
"pattern": "^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$",
"format": "uuid",
"description": "The mapping's id.",
"x-data-class": "operational"
},
"org_id": {
"type": "string",
"minLength": 1,
"maxLength": 20,
"pattern": "^[A-Za-z0-9_-]{1,20}$",
"format": "tradehq-org-id",
"description": "The org.",
"x-data-class": "operational"
},
"bfc": {
"type": "string",
"pattern": "^[A-Z]{2}[A-Z2-9]{3}[A-Z0-9]{4}$",
"format": "bic-facility-code",
"description": "The canonical BFC.",
"x-data-class": "operational"
},
"alias": {
"type": "string",
"description": "The org's name for it.",
"x-data-class": "operational"
},
"private_code": {
"type": "string",
"description": "The org's code for it.",
"x-data-class": "operational"
}
},
"required": [
"depot_reference_id",
"org_id",
"bfc",
"alias",
"private_code"
],
"additionalProperties": false
} Refusals
not yet declared
The platform refusals apply to every call: version, authentication, authority, validation and rate limits, each in the same envelope.
Surfaces
- MCP: approval required
- Voice: degraded: confirmation
- OneBox: no document originates a mapping
- Outbound: crosses to no counterparty
Events
depot.referencedaudit_only