API Reference
Operations

Get an operation

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

Retrieves an operation by its ID, including the consumed quote, beneficiary snapshot, payment instruction, and current state.

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"

Path parameters

operationIdstring<uuid>required

UUID of the operation.

Responses

200Operation details.
idstring<uuid>required
externalIdstring | nullrequired

Your own identifier for the operation. Stored as given and returned on every read and every webhook. Free-form: it is not deduplicated, and the same value may appear on more than one operation. null when none was sent, and on a deposit credited from an incoming payment nobody requested.

Example: "order-2026-0043"
customerobjectrequired

Reference to the customer that owns the operation.

Show child attributes
idstringrequired

Customer identifier.

Example: "c1a2b3c4-d5e6-7890-abcd-ef1234567890"
accountobjectrequired

Reference to a customer account, including the registered owner name.

Show child attributes
idstring<uuid>required

Account identifier.

Example: "a1b2c3d4-5e6f-7890-abcd-ef1234567890"
ownerstringrequired

Registered owner name on the account.

Example: "Acme Importação Ltda"
sourceAmountobjectrequired

Monetary amount expressed as a decimal string in the asset's canonical scale. Use a decimal-precision library (BigDecimal, Decimal) for arithmetic — never JavaScript Number. Request bodies use the scalar AmountValue instead.

Show child attributes
valuestringrequired

Decimal amount in the asset's canonical scale.

Example: "500.00"
assetstringrequired

ISO 4217 currency code or stablecoin ticker. The maximum decimal scale of an AmountValue paired with this asset depends on the asset:

AssetDecimals
BRL2
USDT6
USDC6
BRLUSDTUSDC
Example: "BRL"
decimalsintegerrequired

Number of decimal places for the asset.

Example: 2
targetAmountobjectrequired

Monetary amount expressed as a decimal string in the asset's canonical scale. Use a decimal-precision library (BigDecimal, Decimal) for arithmetic — never JavaScript Number. Request bodies use the scalar AmountValue instead.

Show child attributes
valuestringrequired

Decimal amount in the asset's canonical scale.

Example: "500.00"
assetstringrequired

ISO 4217 currency code or stablecoin ticker. The maximum decimal scale of an AmountValue paired with this asset depends on the asset:

AssetDecimals
BRL2
USDT6
USDC6
BRLUSDTUSDC
Example: "BRL"
decimalsintegerrequired

Number of decimal places for the asset.

Example: 2
intentobjectrequired

Operation intent. Discriminated by type.

WITHDRAW
typestringrequired
WITHDRAW
beneficiaryobjectrequired

Snapshot of the beneficiary at the time the operation was created.

Show child attributes
idstring | null<uuid>required

ID of the saved beneficiary.

entityobjectrequired

Entity snapshot. Discriminated by type.

INDIVIDUAL
typestringrequired
INDIVIDUAL
firstNamestringrequired
lastNamestringrequired
identificationDocumentobjectrequired

Identification document of the beneficiary. null when not provided.

IdentificationDocument
variant
birthDatestring | null<date>required

Date of birth (yyyy-MM-dd). null when not provided.

addressobjectrequired

Postal address of an entity or beneficiary.

Show child attributes
addressLine1stringrequired

Primary street line (number + street).

addressLine2string | nullrequired

Secondary line (apartment, suite, building). null if not applicable.

citystring | nullrequired
statestring | nullrequired

State, province, or region. null for countries without subdivisions in the address.

countrystringrequired

ISO 3166-1 alpha-2 country code.

249 values
AFALDZASADAOAIAQAGARAMAWAUATAZBSBHBDBBBYBEBZBJBMBTBOBQBABWBVBRIOBNBGBFBICVKHCMCAKYCFTDCLCNCXCCCOKMCDCGCKCRHRCUCWCYCZCIDKDJDMDOECEGSVGQEREESZETFKFOFJFIFRGFPFTFGAGMGEDEGHGIGRGLGDGPGUGTGGGNGWGYHTHMVAHNHKHUISINIDIRIQIEIMILITJMJPJEJOKZKEKIKPKRKWKGLALVLBLSLRLYLILTLUMOMGMWMYMVMLMTMHMQMRMUYTMXFMMDMCMNMEMSMAMZMMNANRNPNLNCNZNINENGNUNFMPNOOMPKPWPSPAPGPYPEPHPNPLPTPRQAMKRORURWREBLSHKNLCMFPMVCWSSMSTSASNRSSCSLSGSXSKSISBSOZAGSSSESLKSDSRSJSECHSYTWTJTZTHTLTGTKTOTTTNTRTMTCTVUGUAAEGBUMUSUYUZVUVEVNVGVIWFEHYEZMZWAX
Example: "BR"
postalCodestringrequired

Postal or ZIP code, formatted per the country's convention.

COMPANY
typestringrequired
COMPANY
legalNamestringrequired

Registered legal name.

tradeNamestring | nullrequired

Trade name (DBA). null if the company doesn't use one.

identificationDocumentobjectrequired

Identification document of the beneficiary. null when not provided.

IdentificationDocument
variant
addressobjectrequired

Postal address of an entity or beneficiary.

Show child attributes
addressLine1stringrequired

Primary street line (number + street).

addressLine2string | nullrequired

Secondary line (apartment, suite, building). null if not applicable.

citystring | nullrequired
statestring | nullrequired

State, province, or region. null for countries without subdivisions in the address.

countrystringrequired

ISO 3166-1 alpha-2 country code.

249 values
AFALDZASADAOAIAQAGARAMAWAUATAZBSBHBDBBBYBEBZBJBMBTBOBQBABWBVBRIOBNBGBFBICVKHCMCAKYCFTDCLCNCXCCCOKMCDCGCKCRHRCUCWCYCZCIDKDJDMDOECEGSVGQEREESZETFKFOFJFIFRGFPFTFGAGMGEDEGHGIGRGLGDGPGUGTGGGNGWGYHTHMVAHNHKHUISINIDIRIQIEIMILITJMJPJEJOKZKEKIKPKRKWKGLALVLBLSLRLYLILTLUMOMGMWMYMVMLMTMHMQMRMUYTMXFMMDMCMNMEMSMAMZMMNANRNPNLNCNZNINENGNUNFMPNOOMPKPWPSPAPGPYPEPHPNPLPTPRQAMKRORURWREBLSHKNLCMFPMVCWSSMSTSASNRSSCSLSGSXSKSISBSOZAGSSSESLKSDSRSJSECHSYTWTJTZTHTLTGTKTOTTTNTRTMTCTVUGUAAEGBUMUSUYUZVUVEVNVGVIWFEHYEZMZWAX
Example: "BR"
postalCodestringrequired

Postal or ZIP code, formatted per the country's convention.

paymentInstructionobjectrequired

Snapshot of the payment instruction the funds are routed to. Discriminated by rail.

PIX_KEY
idstring<uuid>required

Payment instruction identifier.

railstringrequired
PIX_KEY
keyTypestringrequired

PIX key category. RANDOM is a random key issued by the central bank.

CPFCNPJEMAILPHONERANDOM
Example: "CPF"
keystringrequired

PIX key value, formatted per keyType.

PIX_STATIC_QR_CODE
idstring<uuid>required

Payment instruction identifier.

railstringrequired
PIX_STATIC_QR_CODE
qrCodestringrequired

PIX QR code payload (EMV-encoded BR Code).

Example: "00020126580014br.gov.bcb.pix..."
PIX_BANK_INSTRUCTION
idstring<uuid>required

Payment instruction identifier.

railstringrequired
PIX_BANK_INSTRUCTION
bankobjectrequired

Bank reference. Resolved server-side from the COMPE code provided in the request.

Show child attributes
codestringrequired

COMPE code (3-digit Brazilian bank code, may be sent unpadded).

Example: "001"
namestringrequired

Registered bank name.

Example: "BANCO DO BRASIL S.A."
ispbCodestring | nullrequired

ISPB code (8-digit Brazilian payment-system identifier). null when the bank is not registered with an ISPB.

Example: "00000000"
branchstringrequired

Branch number.

Example: "0001"
accountNumberstringrequired

Account number with check digit.

Example: "123456"
TED
idstring<uuid>required

Payment instruction identifier.

railstringrequired
TED
bankCodestringrequired

ISPB or COMPE bank code.

branchstringrequired

Branch number.

accountNumberstringrequired

Account number with check digit.

BOLETO
idstring<uuid>required

Payment instruction identifier.

railstringrequired
BOLETO
barcodestringrequired

Boleto barcode (digitable line).

Example: "23793.38128 60800.000003 00000.000400 1 84340000012345"
dueDatestring<date-time>required

Last day on which the boleto can be paid.

Example: "2026-05-15T23:59:59Z"
CRYPTO
idstring<uuid>required

Payment instruction identifier.

railstringrequired
CRYPTO
networkstringrequired

Blockchain network (e.g., ETHEREUM, TRON, SOLANA).

Example: "ETHEREUM"
addressstringrequired

Wallet address on network.

Example: "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18"
SWAP
typestringrequired
SWAP
DEPOSIT
typestringrequired
DEPOSIT
fundingInstructionobjectrequired

Funding instruction the customer uses to send money in. null on the create-deposit response until the PIX dynamic QR code has been generated; populated once it is ready.

DepositOperationFundingInstruction
variant
TRANSFER
typestringrequired
TRANSFER
targetAccountobjectrequired

Reference to a customer account, including the registered owner name.

Show child attributes
idstring<uuid>required

Account identifier.

Example: "a1b2c3d4-5e6f-7890-abcd-ef1234567890"
ownerstringrequired

Registered owner name on the account.

Example: "Acme Importação Ltda"
quoteobjectrequired

Consumed quote. null for deposits created without a prior quote; present for all other operations.

OperationQuoteReference
idstring<uuid>required

Quote identifier.

effectiveRateobjectrequired

Exchange rate between two assets.

Show child attributes
valuestringrequired

Rate value as a decimal string, expressed as quote units per one base unit.

Example: "5.25"
basestringrequired

ISO 4217 currency code or stablecoin ticker. The maximum decimal scale of an AmountValue paired with this asset depends on the asset:

AssetDecimals
BRL2
USDT6
USDC6
BRLUSDTUSDC
Example: "BRL"
quotestringrequired

ISO 4217 currency code or stablecoin ticker. The maximum decimal scale of an AmountValue paired with this asset depends on the asset:

AssetDecimals
BRL2
USDT6
USDC6
BRLUSDTUSDC
Example: "BRL"
expiresAtstring | null<date-time>required

Time at which the quote was originally set to expire. null for quotes without an expiry.

variant
refundobjectrequired

The refund you asked for on this deposit. null on every operation nobody asked back, and on a return the payer's bank issued on its own.

OperationRefund
motiveobjectrequired

The motive you sent on the refund request, returned as given.

Show child attributes
codestringrequired

Machine-readable code.

Example: "INSUFFICIENT_BALANCE"
messagestringrequired

Human-readable description.

Example: "Insufficient balance for the requested operation"
detailsobjectrequired

Free-form context relevant to the reason.

requestedAtstring<date-time>required

When the refund was asked for.

Example: "2026-04-29T11:02:04Z"
variant
feesobject[]required
Show child attributes
amountobjectrequired

Monetary amount expressed as a decimal string in the asset's canonical scale. Use a decimal-precision library (BigDecimal, Decimal) for arithmetic — never JavaScript Number. Request bodies use the scalar AmountValue instead.

Show child attributes
valuestringrequired

Decimal amount in the asset's canonical scale.

Example: "500.00"
assetstringrequired

ISO 4217 currency code or stablecoin ticker. The maximum decimal scale of an AmountValue paired with this asset depends on the asset:

AssetDecimals
BRL2
USDT6
USDC6
BRLUSDTUSDC
Example: "BRL"
decimalsintegerrequired

Number of decimal places for the asset.

Example: 2
sourcestringrequired

Where the fee originates. PLATFORM is charged by Trace Finance, RAIL by the underlying banking rail (PIX, TED, wire), CUSTOMER is a passthrough markup added by the customer.

FX_SPREADPLATFORMRAILCUSTOMER
transactionsobject[]required

Rail-level transactions for the operation. Only confirmed transactions are included; pending or failed rail movements are omitted.

Show child attributes
idstringrequired

Rail-side transaction identifier.

directionstringrequired

Whether the rail debited or credited the account.

CREDITDEBIT
amountobjectrequired

Monetary amount expressed as a decimal string in the asset's canonical scale. Use a decimal-precision library (BigDecimal, Decimal) for arithmetic — never JavaScript Number. Request bodies use the scalar AmountValue instead.

Show child attributes
valuestringrequired

Decimal amount in the asset's canonical scale.

Example: "500.00"
assetstringrequired

ISO 4217 currency code or stablecoin ticker. The maximum decimal scale of an AmountValue paired with this asset depends on the asset:

AssetDecimals
BRL2
USDT6
USDC6
BRLUSDTUSDC
Example: "BRL"
decimalsintegerrequired

Number of decimal places for the asset.

Example: 2
statusstringrequired

Rail-level status. Always CONFIRMED — only confirmed transactions are exposed on the operation.

CONFIRMED
tagsobject[]

System-managed labels stamped onto the operation when it is created. Inherited from the account's propagating tags.

Show child attributes
keystring | null

Category for keyed tags (e.g., psp, compliance-tier). null for single-value labels.

Example: "psp"
valuestringrequired

For keyed tags, the right-hand side of the label. For single-value labels, the entire tag.

Example: "Amazon"
requirementsobjectrequired

What compliance is waiting on for this operation, read live at request time. All four groups are empty for an operation that never went through a compliance review. An operation in ACTION_REQUIRED is waiting on whatever is in currentlyDue and errors.

Show child attributes
currentlyDueobject[]required

Compliance is waiting on you to send these.

Show child attributes
typestringrequired

What the requirement is attached to: BENEFICIARY_DOCUMENT for a payment instruction, OPERATION_DOCUMENT for an operation.

BENEFICIARY_DOCUMENTOPERATION_DOCUMENT
Example: "BENEFICIARY_DOCUMENT"
documentTypestringrequired

What compliance asked for. Usually a single document type, but it can name a family of documents — IDENTITY_VERIFICATION, for example — in which case anyOf lists the ones that satisfy it.

Example: "IDENTITY_VERIFICATION"
anyOfstring[]required

The document types that answer this requirement. Any one of them settles it — you do not send all of them. For a requirement naming a single document this holds exactly that one, so you can always read anyOf and ignore whether a family was asked for.

reasonobject | null

Why this requirement is open. Present when compliance explained itself, typically on errors.

Show child attributes
codestring
Example: "DOCUMENT_REQUESTED"
messagestring
Example: "The file is not legible"
pendingVerificationobject[]required

You sent these and compliance is reviewing them. Nothing to do.

Show child attributes
typestringrequired

What the requirement is attached to: BENEFICIARY_DOCUMENT for a payment instruction, OPERATION_DOCUMENT for an operation.

BENEFICIARY_DOCUMENTOPERATION_DOCUMENT
Example: "BENEFICIARY_DOCUMENT"
documentTypestringrequired

What compliance asked for. Usually a single document type, but it can name a family of documents — IDENTITY_VERIFICATION, for example — in which case anyOf lists the ones that satisfy it.

Example: "IDENTITY_VERIFICATION"
anyOfstring[]required

The document types that answer this requirement. Any one of them settles it — you do not send all of them. For a requirement naming a single document this holds exactly that one, so you can always read anyOf and ignore whether a family was asked for.

reasonobject | null

Why this requirement is open. Present when compliance explained itself, typically on errors.

Show child attributes
codestring
Example: "DOCUMENT_REQUESTED"
messagestring
Example: "The file is not legible"
errorsobject[]required

These came back — sent, then refused or asked for again. reason says why. Send a new file for the same requirement.

Show child attributes
typestringrequired

What the requirement is attached to: BENEFICIARY_DOCUMENT for a payment instruction, OPERATION_DOCUMENT for an operation.

BENEFICIARY_DOCUMENTOPERATION_DOCUMENT
Example: "BENEFICIARY_DOCUMENT"
documentTypestringrequired

What compliance asked for. Usually a single document type, but it can name a family of documents — IDENTITY_VERIFICATION, for example — in which case anyOf lists the ones that satisfy it.

Example: "IDENTITY_VERIFICATION"
anyOfstring[]required

The document types that answer this requirement. Any one of them settles it — you do not send all of them. For a requirement naming a single document this holds exactly that one, so you can always read anyOf and ignore whether a family was asked for.

reasonobject | null

Why this requirement is open. Present when compliance explained itself, typically on errors.

Show child attributes
codestring
Example: "DOCUMENT_REQUESTED"
messagestring
Example: "The file is not legible"
satisfiedobject[]required

These are settled. Nothing to do.

Show child attributes
typestringrequired

What the requirement is attached to: BENEFICIARY_DOCUMENT for a payment instruction, OPERATION_DOCUMENT for an operation.

BENEFICIARY_DOCUMENTOPERATION_DOCUMENT
Example: "BENEFICIARY_DOCUMENT"
documentTypestringrequired

What compliance asked for. Usually a single document type, but it can name a family of documents — IDENTITY_VERIFICATION, for example — in which case anyOf lists the ones that satisfy it.

Example: "IDENTITY_VERIFICATION"
anyOfstring[]required

The document types that answer this requirement. Any one of them settles it — you do not send all of them. For a requirement naming a single document this holds exactly that one, so you can always read anyOf and ignore whether a family was asked for.

reasonobject | null

Why this requirement is open. Present when compliance explained itself, typically on errors.

Show child attributes
codestring
Example: "DOCUMENT_REQUESTED"
messagestring
Example: "The file is not legible"
currentStateobjectrequired

The operation's current state. Carries a status, optional reason, and the time the state was entered.

Show child attributes
statusstringrequired

Lifecycle status of an operation. REFUNDING and REFUNDED apply only to deposits, the only refundable operation.

REQUESTEDPROCESSINGACTION_REQUIREDCOMPLETEDREFUNDINGREFUNDEDFAILED
Example: "COMPLETED"
reasonobject

Justification for entering this status. Present for ACTION_REQUIRED and FAILED; omitted otherwise.

Show child attributes
codestringrequired

Machine-readable code.

Example: "INSUFFICIENT_BALANCE"
messagestringrequired

Human-readable description.

Example: "Insufficient balance for the requested operation"
detailsobjectrequired

Free-form context relevant to the reason.

createdAtstring<date-time>required

Time the operation entered this status.

createdAtstring<date-time>required
updatedAtstring<date-time>required
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