API Reference
Upload a document
/v1/accounts/{accountId}/documentshttps://trace.mimicr.dev · provider: https://api.sandbox.tracefinance.comUploads 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
API version. Omit to use the default version.
"1"Unique key to ensure idempotent request processing. Required on all POST, PUT, and PATCH requests.
Path parameters
UUID of the account.
Body
multipart/form-dataJSON payload accompanying the document file in the multipart request. Sent as the body part with Content-Type: application/json.
Show child attributes
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"ARTICLES_OF_ASSOCIATION"Sub-classification of the document. Required for document types that have sides (e.g., ID_CARD, DRIVER_LICENSE).
DocumentSubType
variant
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
ACCOUNTUBO"ACCOUNT"Account ID when type=ACCOUNT; UBO ID when type=UBO.
"a1b2c3d4-5e6f-7890-abcd-ef1234567890"Additional metadata required by the document type. Keys must match the requiredMetadata listed on the requirement (e.g., country, number).
Document file content.
Responses
204Document uploaded.
400Invalid request or missing multipart fields.
Machine-readable error code.
Human-readable description.
401Missing or invalid authentication token.
Machine-readable error code.
Human-readable description.
404Account or beneficial owner not found, or the holder does not belong to the path account.
Machine-readable error code.
Human-readable description.