API Reference
Accounts

Upload a document

POST/v1/accounts/{accountId}/documents
Base URL: https://trace.mimicr.dev · provider: https://api.sandbox.tracefinance.com

Uploads a document to fulfill a requirement on the account identified by the path accountId. The same endpoint serves account-level and UBO-level documents — set holder.type to ACCOUNT with the account ID, or to UBO with the beneficial owner ID, in the JSON body part. The holder must belong to the path account: an ACCOUNT holder must match accountId, and a UBO holder must belong to that account. A mismatch returns 404.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Headers

X-Trace-Versionstring

API version. Omit to use the default version.

Example: "1"
X-Idempotency-Keystring<uuid>required

Unique key to ensure idempotent request processing. Required on all POST, PUT, and PATCH requests.

Path parameters

accountIdstring<uuid>required

UUID of the account.

Body

multipart/form-data
bodyobjectrequired

JSON payload accompanying the document file in the multipart request. Sent as the body part with Content-Type: application/json.

Show child attributes
documentTypestringrequired

The type of document being uploaded. Must match a documentType listed in the account's requirements.currentlyDue array (or, for grouped requirements, appear in options).

32 values
PASSPORTARTICLES_OF_ASSOCIATIONOTHERAGREEMENTDIRECTORS_REGISTRYINCORPORATION_ARTICLESINCORPORATION_CERTPROOF_OF_ADDRESSSHAREHOLDER_REGISTRYPOWER_OF_ATTORNEYSTATE_REGISTRYEVIDENCE_OF_SOURCE_OF_FUNDSEVIDENCE_OF_SOURCE_OF_WEALTHPROOF_OF_REGULATORY_LICENSEPROOF_OF_BUSINESS_ACTIVITYFUND_FLOW_EXPLANATIONAML_POLICYFINANCIAL_STATEMENTORGANIZATIONAL_CHARTSHAREHOLDER_OWNERSHIPWOLFSBERG_QUESTIONNAIREID_CARDDRIVER_LICENSERESIDENCE_PERMITSELFIEUTILITY_BILLKYC_FORMBAAS_ADHESION_FORMPJ_PARTNER_DOCUMENTSPJ_PARTNER_FINANCIAL_STATEMENTSIGNING_AUTHORITY_PROOFKYC_MONITORING_EVIDENCE
Example: "ARTICLES_OF_ASSOCIATION"
documentSubTypeobject

Sub-classification of the document. Required for document types that have sides (e.g., ID_CARD, DRIVER_LICENSE).

DocumentSubType
variant
holderobjectrequired

Identifies who the document belongs to. Use ACCOUNT with the account ID for account-level documents, or UBO with the UBO ID for documents belonging to a specific beneficial owner.

Show child attributes
typestringrequired
ACCOUNTUBO
Example: "ACCOUNT"
referenceIdstring<uuid>required

Account ID when type=ACCOUNT; UBO ID when type=UBO.

Example: "a1b2c3d4-5e6f-7890-abcd-ef1234567890"
metadataobject | null

Additional metadata required by the document type. Keys must match the requiredMetadata listed on the requirement (e.g., country, number).

filestring<binary>required

Document file content.

Responses

204Document uploaded.
400Invalid request or missing multipart fields.
codestringrequired

Machine-readable error code.

messagestringrequired

Human-readable description.

detailsobject
401Missing or invalid authentication token.
codestringrequired

Machine-readable error code.

messagestringrequired

Human-readable description.

detailsobject
404Account or beneficial owner not found, or the holder does not belong to the path account.
codestringrequired

Machine-readable error code.

messagestringrequired

Human-readable description.

detailsobject