API Reference
Operations

Upload an operation document

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

Uploads a compliance document to the operation identified by the path operationId. Upload one when compliance asks for additional proof while the operation is under review; withdrawals, deposits, swaps and transfers all accept it.

The document is uploaded as multipart: a JSON body part carrying the document type, plus a binary file part.

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

operationIdstring<uuid>required

UUID of the operation.

Body

multipart/form-data
bodyobjectrequired

Describes a compliance document uploaded for an operation. Sent as the JSON body part of the multipart request; the document file itself is the file part.

Show child attributes
documentTypestringrequired

Type of compliance document an operation can be asked to provide. FINANCIAL_CAPACITY proves the funds moved by the operation are compatible with the account holder's financial capacity. INVOICE is the commercial invoice behind a conversion, asked of treasury accounts. Which one is requested comes from the compliance review; the endpoint accepts either.

FINANCIAL_CAPACITYINVOICE
Example: "FINANCIAL_CAPACITY"
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
404Operation not found for the authenticated customer.
codestringrequired

Machine-readable error code.

messagestringrequired

Human-readable description.

detailsobject
413File exceeds the maximum allowed size.
codestringrequired

Machine-readable error code.

messagestringrequired

Human-readable description.

detailsobject
415File type is not supported.
codestringrequired

Machine-readable error code.

messagestringrequired

Human-readable description.

detailsobject