# Generate a Movement Report (transaction history)

Endpoint: POST /v1/exports/movement
Security: bearer

## Security:

  - `bearer` (unknown)
    http bearer JWT

## Request fields (application/json):

  - `domainId` (string, required)
    Domain UUID to export movement data for

  - `dateRange` (object, required)
    Date range for transaction history

  - `dateRange.start` (string, required)
    Start of date range (ISO-8601)

  - `dateRange.end` (string, required)
    End of date range (ISO-8601)

  - `includeChildDomains` (boolean)
    Include data from child domains

  - `vaultIds` (array)
    Filter by vault UUIDs

  - `tickerIds` (array)
    Filter by ticker UUIDs

  - `accountIds` (array)
    Filter by account UUIDs

  - `custodyStatus` (array)
    Filter by custody status. Defaults to ["Completed"] (settled only) for reconciliation. Pass all values for full visibility.

  - `ledgerStatus` (array)
    Filter by ledger status. Defaults to ["Confirmed"] (settled only) for reconciliation. Pass all values for full visibility.

  - `format` (string, required)
    Output format
    Enum: "CSV", "JSON"

## Response 201:

  - `201` (unknown)
    Report generated.

## Response 201 fields (application/json):

  - `metadata` (object, required)
    File-level metadata and reconciliation control totals.

  - `metadata.exportId` (string, required)
    Unique identifier of this export. Also returned in the X-Export-Id header.
    Example: cef02796-daca-425f-91ed-f670eb8ec99f

  - `metadata.requestAuthor` (string, required)
    Identity that requested the export.
    Example: harmonize:hmz@metaco.com

  - `metadata.generatedAt` (string, required)
    Generation timestamp (ISO-8601).
    Example: 2026-08-27T09:15:00Z

  - `metadata.filters` (object, required)
    Echo of the request filter parameters.
    Example: {"domainId":"5cd224fe-193e-8bce-c94c-c6c05245e2d1","asOfTimestamp":"2026-08-21T16:32:03.9740000+00:00","includeZeroBalances":true}

  - `metadata.asOfTimestamp` (string)
    Echoed from the request — Position Report only (ISO-8601).
    Example: 2026-08-27T00:00:00Z

  - `metadata.dateRangeStart` (string)
    Echoed from the request — Movement Report only (ISO-8601).
    Example: 2026-07-25T00:00:00Z

  - `metadata.dateRangeEnd` (string)
    Echoed from the request — Movement Report only (ISO-8601).
    Example: 2026-08-27T00:00:00Z

  - `metadata.recordCount` (number, required)
    Number of data rows. Position: one row per (account, ticker). Movement: one row per transfer.
    Example: 22

  - `metadata.controlTotals` (object, required)
    Reconciliation control totals across all rows.

  - `metadata.controlTotals.balanceTotalAmount` (string)
    Sum of all totalBalance values (Position Report only). BigNumber-formatted string.
    Example: 429.04029589

  - `metadata.controlTotals.balanceReservedAmount` (string)
    Sum of all reservedBalance values (Position Report only). BigNumber-formatted string.
    Example: 2.0033804

  - `metadata.controlTotals.balanceQuarantinedAmount` (string)
    Sum of all quarantineBalance values (Position Report only). BigNumber-formatted string.
    Example: 122.2

  - `metadata.controlTotals.valueSum` (string)
    Sum of all enrichedTransactionValue values (Movement Report only). BigNumber-formatted string.
    Example: 154.54

  - `data` (array, required)
    One row per transfer within the requested date range. Virtual (tenant-to-tenant) omnibus movements settle off-chain and never appear here.

  - `data.domainId` (string, required)
    Domain UUID the report row belongs to.

  - `data.domainName` (string, required)
    Domain display name.
    Example: My root domain

  - `data.registeredAt` (string, required)
    Transfer registration time (ISO-8601).

  - `data.transactionId` (string, required)
    Transaction UUID. Repeats across rows of the same transaction.

  - `data.onLedgerTransactionId` (string, required)
    On-ledger transaction identifier (hash).

  - `data.transferId` (string, required)
    Transfer UUID — one row per transfer.

  - `data.transferKind` (string, required)
    Transfer kind.
    Example: Transfer

  - `data.enrichedTransactionValue` (string, required)
    Transfer value in display units. BigNumber-formatted string.
    Example: 3.999800

  - `data.rawTransactionValue` (string, required)
    Transfer value in raw base units.
    Example: 3999800

  - `data.ledgerName` (string, required)
    Blockchain network name as configured by the operator.
    Example: XRPL Testnet August 2024

  - `data.tickerId` (string, required)
    Asset UUID.

  - `data.tickerName` (string, required)
    Asset display name.
    Example: XRP Testnet August 2024

  - `data.tickerSymbol` (string, required)
    Asset symbol.
    Example: tXRP

  - `data.quarantined` (boolean, required)
    Whether the transfer is currently quarantined.

  - `data.custodyStatus` (string, required)
    Custody-side status. One of 'Broadcasting', 'Completed', 'Failed', 'Interrupted', 'Pending', 'Prepared', 'Preparing', 'Reserved'.
    Example: Completed

  - `data.ledgerStatus` (string, required)
    Ledger-side status. One of 'Detected', 'Confirmed', 'Expired', 'Replaced'.
    Example: Confirmed

  - `data.ledgerTimestamp` (string, required)
    Ledger status last-updated time (ISO-8601).

  - `data.blockTime` (string, required)
    On-chain block time (ISO-8601). Empty until on-chain confirmation.

  - `data.senderAddress` (string, required)
    Sender address. Pipe-separated when a transfer has multiple sender addresses (e.g. UTXO multi-input).

  - `data.senderDomainId` (string, required)
    Sender account domain UUID. Empty for off-platform senders.

  - `data.senderMemoTag` (string, required)
    Sender memo/destination tag. Empty when not applicable.

  - `data.senderInternal` (boolean, required)
    True if the sender is within the platform — including senders whose identity columns are redacted because their domain is outside the requester's access.

  - `data.senderName` (string, required)
    Sender account display name. Empty for off-platform senders and when the sender's domain is outside the requester's access.

  - `data.senderId` (string, required)
    Sender account UUID. Empty for off-platform senders and when the sender's domain is outside the requester's access.

  - `data.senderAccountType` (string, required)
    One of 'vault', 'gas station', 'external', 'omnibus', 'deposit wallet'. 'external' identifies an account held at a subcustodian Provider — its vault columns are empty. 'omnibus' (a domain's omnibus wallet) and 'deposit wallet' (an omnibus tenant's deposit wallet) are emitted only when omnibus support is enabled for the environment. Empty for off-platform senders and when the sender's domain is outside the requester's access; pipe-separated for multi-sender transfers.
    Example: deposit wallet

  - `data.senderVaultType` (string, required)
    Sender vault backing type ('MPC', 'HSM', …), or 'external' when the sender is off-platform. Empty when the sender's domain is outside the requester's access.

  - `data.senderVaultId` (string, required)
    Sender vault UUID. Empty for off-platform senders and when the sender's domain is outside the requester's access.

  - `data.senderVaultName` (string, required)
    Sender vault display name. Empty for off-platform senders and when the sender's domain is outside the requester's access.

  - `data.recipientAddress` (string, required)
    Recipient address.

  - `data.recipientDomainId` (string, required)
    Recipient account domain UUID. Empty for off-platform recipients.

  - `data.recipientMemoType` (string, required)
    Memo type for Stellar/Hedera ('Text', 'Id', 'Hash', 'Return'). Empty for XRPL and when no memo.

  - `data.recipientMemoTag` (string, required)
    Recipient memo/destination tag. Empty when not applicable.

  - `data.recipientInternal` (boolean, required)
    True if the recipient is within the platform — including recipients whose identity columns are redacted because their domain is outside the requester's access.

  - `data.recipientName` (string, required)
    Recipient account display name. Empty for off-platform recipients and when the recipient's domain is outside the requester's access.

  - `data.recipientId` (string, required)
    Recipient account UUID. Empty for off-platform recipients and when the recipient's domain is outside the requester's access.

  - `data.recipientAccountType` (string, required)
    One of 'vault', 'gas station', 'external', 'omnibus', 'deposit wallet'. 'external' identifies an account held at a subcustodian Provider — its vault columns are empty. 'omnibus' (a domain's omnibus wallet) and 'deposit wallet' (an omnibus tenant's deposit wallet) are emitted only when omnibus support is enabled for the environment. Empty for off-platform recipients and when the recipient's domain is outside the requester's access.
    Example: omnibus

  - `data.recipientVaultType` (string, required)
    Recipient vault backing type ('MPC', 'HSM', …), or 'external' when the recipient is off-platform. Empty when the recipient's domain is outside the requester's access.

  - `data.recipientVaultId` (string, required)
    Recipient vault UUID. Empty for off-platform recipients and when the recipient's domain is outside the requester's access.

  - `data.recipientVaultName` (string, required)
    Recipient vault display name. Empty for off-platform recipients and when the recipient's domain is outside the requester's access.

## Response 201 headers (application/json):

  - `Content-Disposition` (string)
    Attachment filename.
    Example: attachment; filename="movement_report_5cd224fe-193e-8bce-c94c-c6c05245e2d1_2026-07-25_2026-08-21.csv"

  - `X-Export-Id` (string)
    Export UUID (same value as metadata.exportId).

## Response 400:

  - `400` (unknown)
    Invalid value for: domainId, dateRange (start/end must be ISO-8601), format, vaultIds, tickerIds, accountIds, includeChildDomains, custodyStatus, ledgerStatus.

## Response 400 fields (application/json):

  - `statusCode` (number, required)
    HTTP status code.

  - `message` (any, required)
    Client-safe error message. Validation errors (400) return an array of messages.

  - `error` (string)
    HTTP error name.

## Response 401:

  - `401` (unknown)
    One of: missing bearer token; invalid or expired JWT.

## Response 401 fields (application/json):

  - `statusCode` (number, required)
    HTTP status code.

  - `message` (any, required)
    Client-safe error message. Validation errors (400) return an array of messages.

  - `error` (string)
    HTTP error name.

## Response 403:

  - `403` (unknown)
    User has no profile in the target domain with read access to 'transactions'. With includeChildDomains, each child domain is verified individually.

## Response 403 fields (application/json):

  - `statusCode` (number, required)
    HTTP status code.

  - `message` (any, required)
    Client-safe error message. Validation errors (400) return an array of messages.

  - `error` (string)
    HTTP error name.

## Response 413:

  - `413` (unknown)
    One of: 'Export spans {n} domains, exceeding the maximum of 100. Remove includeChildDomains or narrow the scope.'; 'Export exceeds maximum of 100000 transfers. Narrow the date range or filter by ticker, account, vault, or status.'

## Response 413 fields (application/json):

  - `statusCode` (number, required)
    HTTP status code.

  - `message` (any, required)
    Client-safe error message. Validation errors (400) return an array of messages.

  - `error` (string)
    HTTP error name.

## Response 429:

  - `429` (unknown)
    One of: Export already in progress (same parameters within 60s); Maximum concurrent exports reached (2 per user).

## Response 429 fields (application/json):

  - `statusCode` (number, required)
    HTTP status code.

  - `message` (any, required)
    Client-safe error message. Validation errors (400) return an array of messages.

  - `error` (string)
    HTTP error name.

## Response 502:

  - `502` (unknown)
    One of: 'Gas station service is unavailable'; 'Omnibus service is unavailable' / 'Omnibus service returned inconsistent data' (when omnibus support is enabled). The export fails rather than returning rows with incorrect classification — retry once the upstream is reachable.

## Response 502 fields (application/json):

  - `statusCode` (number, required)
    HTTP status code.

  - `message` (any, required)
    Client-safe error message. Validation errors (400) return an array of messages.

  - `error` (string)
    HTTP error name.

