> This page is for Trading.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.immix.xyz/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.immix.xyz/_mcp/server.

# Resolve a transfer

POST /transfers/{id}/resolve
Content-Type: application/json

Proposes closing a stuck transfer by hand, on what the venue shows (`transfers:propose` or `transfers:approve`): `SETTLED` or `FAILED`, with the evidence. Open to an `INSTRUCTED` or `IN_TRANSIT` transfer, and to a `QUEUED` or `PENDING_PROVIDER_APPROVAL` one once overdue. It closes nothing until a second person approves it. Answers the transfer.

Reference: https://docs.immix.xyz/trading/api-reference/rest-api/transfers/resolve

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `id` (string, required) — The transfer's id — a positive 64-bit integer as decimal digits.

### Query parameters

- `minGlobalSequence` (string, optional) — A position you hold — an `X-Immix-Global-Sequence` you read, or a 202's `commandGlobalSequence`: this member answers only once it has folded the platform's stream through it, waiting up to its deadline, then 503 `PROJECTION_BEHIND` with `Retry-After`. Within that stream a read is never older than what you have seen; drop your positions after an announced stream cut. A retry stating its 202's position attaches to or replays that operation while the journal holds its key, never publishing twice. Stated once: one to nineteen digits, at most 9223372036854775807; else 400 `MALFORMED_REQUEST`.

### Headers

- `Idempotency-Key` (string, required) — Required on every write: a URL-safe string of 1 to 64 characters from `[A-Za-z0-9._~-]` (a UUID fits), scoped to you. It names one operation on one record, ever: a retry replays the stored outcome (`Idempotent-Replay: true`) or attaches to the live one, and reuse on another record refuses 409 `IDEMPOTENCY_KEY_REUSED`. Missing or malformed, 400.
- `If-Match` (string, required) — Required on every entity write: the `ETag` the read minted, quoted or bare — the version this write was computed against — or `*` to write unconditionally on purpose, except on a notification endpoint's approval, which refuses `*` 400 `INVALID_IF_MATCH`. Absent is 428 `PRECONDITION_REQUIRED`; a weak validator 400 `INVALID_IF_MATCH`; a stale value 412 `VERSION_CONFLICT` (`CONFIG_SEQ_CONFLICT` on an algo's config write) with `currentVersion` and a fresh `ETag`: re-read, reapply, retry. A `*` write overwrites every field from your copy, a colleague's amend since your read included.
- `X-Request-Id` (string, optional) — Your own id for the request: 8 to 128 of `[A-Za-z0-9._-]`. It becomes the request's id and is echoed on the response. A value off that grammar is replaced with a fresh id, never refused.

### Body (application/json)

This endpoint expects an object.

- `outcome` (enum, required) — What the transfer closes as: `SETTLED` — the value arrived; `FAILED` — it did not and will not.
  - Allowed values: `SETTLED`, `FAILED`
- `evidenceKind` (enum, required) — What you saw at the venue: `VENUE_SETTLED` — it shows the transfer complete (the transaction, or the credit); `VENUE_CANCELLED`; `VENUE_FAILED`; `VENUE_NO_RECORD` — it holds nothing under the transfer's reference. A `FAILED` outcome rests on one of the last three.
  - Allowed values: `VENUE_SETTLED`, `VENUE_CANCELLED`, `VENUE_FAILED`, `VENUE_NO_RECORD`
- `evidence` (string, required) — What you saw, in your words — required, for the approver; US-ASCII, at most 256 bytes.
- `settledAmount` (string, optional, nullable) — money (a decimal string in the asset's own units): what arrived, for a `SETTLED` outcome — from 0 to the transfer's `amount`. Omit it, or send `null`, to leave the destination's own figure, else the whole amount; a `FAILED` outcome states none.
- `txId` (string, optional) — The transaction hash the venue shows, if any; US-ASCII, at most 256 bytes.

## Response

### 200

The transfer as the platform now holds it after the write — the same row the read serves, with the answering change's position, its `ETag` and, on a replayed key, `Idempotent-Replay`.

- `transferId` (string, required) — The transfer's id, a 64-bit integer as decimal digits.
- `version` (string, required) — The transfer's version as a decimal string: 1 at the submit, one more on every change; its `ETag`, which an approval, a withdrawal and a resolution state as `If-Match`.
- `status` (enum, required) — `PENDING_APPROVAL`: submitted, awaiting a second person. `QUEUED`: admitted, waiting for the venue. `INSTRUCTED`: the venue accepted it. `PENDING_PROVIDER_APPROVAL`: the custodian's own approvers must act. `IN_TRANSIT`: broadcast on its chain. `SETTLED`, `FAILED`, `WITHDRAWN`: closed. `RESOLVED_SETTLED`, `RESOLVED_FAILED`: closed by hand. The value set is append-only: read an unknown value as `UNKNOWN`.
  - Allowed values: `UNKNOWN`, `PENDING_APPROVAL`, `QUEUED`, `INSTRUCTED`, `PENDING_PROVIDER_APPROVAL`, `IN_TRANSIT`, `SETTLED`, `FAILED`, `WITHDRAWN`, `RESOLVED_SETTLED`, `RESOLVED_FAILED`
- `transition` (enum, required) — What this version records: the `SUBMIT`; an `APPROVE` counted, or the one that admitted it (`QUEUE`); a `WITHDRAW`; the venue's `INSTRUCT`, `PROVIDER_HOLD` and `PROVIDER_RELEASE`; an `OBSERVE` — a broadcast, more confirmations, a deposit seen and held; `ARRIVE`, `SETTLE`, `FAIL`; `SLA_BREACH` — it went overdue; a `RESOLVE` proposed, approved or concluded; `CONTRADICT`; `RISK_HOLD` and `RISK_RELEASE`. Append-only: read an unknown value as `UNKNOWN`.
  - Allowed values: `UNKNOWN`, `SUBMIT`, `APPROVE`, `WITHDRAW`, `QUEUE`, `INSTRUCT`, `PROVIDER_HOLD`, `PROVIDER_RELEASE`, `OBSERVE`, `ARRIVE`, `SETTLE`, `FAIL`, `SLA_BREACH`, `RESOLVE`, `CONTRADICT`, `RISK_HOLD`, `RISK_RELEASE`
- `sourceAccountId` (integer, required) — The account the value leaves (`GET /accounts`).
- `sourceWallet` (string, required) — The wallet the value leaves, as the venue names it — `funding`, `trading`, a vault's wallet.
- `destAccountId` (integer, required) — The account the value reaches — the source account on a move between two of its wallets.
- `destWallet` (string, required) — The wallet the value reaches, as the venue names it.
- `assetId` (integer, required) — The asset moved.
- `chain` (enum, required, nullable) — The network an on-chain transfer settles on; `null` for a move between two wallets of one account, which crosses none. `UNKNOWN`: an on-chain transfer on a network this member cannot name yet — it runs a build older than the network — never a move between two wallets. The value set is append-only: a name you do not know is still a network.
  - Allowed values: `UNKNOWN`, `BITCOIN`, `ETHEREUM`
- `amount` (string, required) — money (an exact decimal string at the scale the submit stated it): the amount instructed, in the asset's own units. The fee is not inside it.
- `feeAmount` (string, required, nullable) — money (an exact decimal string at the scale it was stated at): the fee the venue stated, in the asset `feeAssetId` names; `null` until the venue states one.
- `feeAssetId` (integer, required) — The asset `feeAmount` is stated in: the fee asset named by the chain policy the transfer was admitted under — the moved asset where that policy names none, and for a move between two wallets of one account. Stated on every row, whether or not the venue has stated a fee yet; it moves only if an approval admits the transfer under a chain policy amended since the submit.
- `settledAmount` (string, required, nullable) — money (an exact decimal string at the scale it was stated at): what the destination credited, net of fees; `null` until the destination reports a credit — or, on a transfer resolved `SETTLED` by hand, until that resolution is approved.
- `confirmations` (integer, required) — The highest confirmation count either end of the transfer has reported; 0 until one is.
- `executingCredentialId` (integer, required) — The key that executes the transfer (`GET /accounts/{id}/keys`): the account's own key for a move between its wallets, the source account's transfers key for an on-chain one.
- `destAddressId` (integer, required, nullable) — The destination's verified address the transfer was admitted to (`GET /account-addresses`); `null` for a move between two wallets.
- `externalRef` (string, required) — The venue's own id for the withdrawal or transfer, once it accepted it; empty until then.
- `txId` (string, required) — The on-chain transaction hash, once broadcast or stated by an approved resolution; empty otherwise.
- `failureReason` (enum, required) — Why the transfer failed. The venue's refusal by name — `INSUFFICIENT_FUNDS`, `ADDRESS_NOT_ALLOWLISTED`, `BELOW_MINIMUM`, `ABOVE_LIMIT`, `ASSET_SUSPENDED`, `PERMISSION_DENIED`, `PROVIDER_DENIED` — or the platform's own before it instructed the venue: `AMOUNT_PRECISION` (an amount the venue's precision cannot carry), `FEE_ABOVE_POLICY` (the venue's fee above the chain policy's `maxFeeAmount`); else `VENUE_ERROR` or `TIMEOUT`. `UNKNOWN` while it has not failed. Append-only.
  - Allowed values: `UNKNOWN`, `INSUFFICIENT_FUNDS`, `ADDRESS_NOT_ALLOWLISTED`, `BELOW_MINIMUM`, `ABOVE_LIMIT`, `ASSET_SUSPENDED`, `PERMISSION_DENIED`, `PROVIDER_DENIED`, `AMOUNT_PRECISION`, `FEE_ABOVE_POLICY`, `VENUE_ERROR`, `TIMEOUT`
- `failureDetail` (string, required) — The venue's own text behind `failureReason`; empty unless it failed.
- `isOverdue` (boolean, required) — Whether the transfer's current leg has run past its deadline (`slaDeadlineNs`); cleared when the leg advances. An overdue `QUEUED` or `PENDING_PROVIDER_APPROVAL` transfer may be resolved by hand.
- `overdueLeg` (enum, required) — The leg that went overdue: `ACTION` — the venue's acceptance, or a move between two wallets; `PROVIDER` — the custodian's own approvers; `CHAIN` — from the instruction to the destination first seeing the deposit; `HELD` — a deposit seen at its destination and not yet credited. `UNKNOWN` while on time.
  - Allowed values: `UNKNOWN`, `ACTION`, `PROVIDER`, `CHAIN`, `HELD`
- `slaLeg` (enum, required) — The leg whose deadline is running now, as `overdueLeg` names them; `UNKNOWN` while the transfer awaits approval and once it is closed.
  - Allowed values: `UNKNOWN`, `ACTION`, `PROVIDER`, `CHAIN`, `HELD`
- `slaDeadlineNs` (string, required, nullable) — When the running leg's deadline falls, epoch nanoseconds; `null` when none runs.
- `isHeldAtDestination` (boolean, required) — Whether the destination shows the deposit but has not credited it yet; `holdDetail` says why, where the venue does.
- `holdDetail` (string, required) — The destination's own text behind a held deposit; empty when none.
- `isFeeAbovePolicy` (boolean, required) — Whether the fee the venue charged exceeded the chain policy's `maxFeeAmount`.
- `isHeadroomAcknowledged` (boolean, required) — Whether the submit overrode the headroom check: its maker stated `acknowledgeHeadroom` and the check refused the move without it — capital taken out of a margin wallet knowingly. Each approval states its own in `approvals`.
- `isRiskHeld` (boolean, required) — Whether the transfer, queued out of a margin wallet, is held because its account's posture is `BLOCKED` (`GET /risk/postures`): nothing instructs the venue until the posture leaves `BLOCKED`. Its deadline keeps running.
- `isContradicted` (boolean, required) — Whether the venue completed or failed this transfer after it was resolved by hand; the status is unchanged.
- `assetPolicyVersion` (string, required) — The version of the organisation's asset policy the transfer was admitted under (`GET /asset-policies`) — at the submit, or at the approval that admitted it.
- `chainPolicyVersion` (string, required, nullable) — The version of the chain policy it was admitted under (`GET /chain-policies`); `null` for a move between two wallets, which reads none.
- `clientTransferId` (string, required) — The submit's `Idempotency-Key`, the caller's own handle for the transfer: taken while the transfer is open and for 24 hours after it closes.
- `submittedAtNs` (string, required) — When it was submitted, epoch nanoseconds; never moves.
- `submittedBy` (Actor, required) — Who submitted it — the one principal whose later submit under `clientTransferId` is a retry of this transfer.
- `queuedAtNs` (string, required, nullable) — When it became `QUEUED`, epoch nanoseconds; `null` before.
- `instructedAtNs` (string, required, nullable) — When the venue accepted the instruction, epoch nanoseconds; `null` before.
- `heldAtNs` (string, required, nullable) — When the destination first reported the deposit held, epoch nanoseconds; `null` if it never did.
- `settledAtNs` (string, required, nullable) — When the transfer settled — by the venue's word, the destination's credit or an approved resolution — epoch nanoseconds; `null` before.
- `proposedBy` (Actor, required) — The maker of the transfer's last proposal — the submit, or a resolution — kept once it concludes or is withdrawn.
- `pendingTransition` (enum, required) — What awaits approval: `SUBMIT` — the transfer itself, while `PENDING_APPROVAL`; `RESOLVE` — a resolution by hand, whose content is `resolveOutcome`, `evidenceKind`, `evidence`, `proposedSettledAmount` and `proposedTxId`; `UNKNOWN` when nothing does. The inbox (`GET /approvals`) lists the two as `ACTIVATE` and `AMEND`.
  - Allowed values: `UNKNOWN`, `SUBMIT`, `RESOLVE`
- `proposedAtNs` (string, required, nullable) — When the last proposal was made, epoch nanoseconds.
- `concludedAtNs` (string, required, nullable) — When the last proposal concluded, epoch nanoseconds — at the submit itself where nothing needed approving; `null` while it pends and after a withdrawal.
- `concludedBy` (Actor, required, nullable) — Who concluded it — the maker where nothing needed approving, else the approver whose approval met the count; `null` when `concludedAtNs` is.
- `concludedTransition` (enum, required) — What the last proposal proposed, kept once it concluded: `SUBMIT` or `RESOLVE`; `UNKNOWN` while it pends, or when it was withdrawn.
  - Allowed values: `UNKNOWN`, `SUBMIT`, `RESOLVE`
- `approvals` (list of TransferRowApprovalsItem, required) — Who approved the transfer's last proposal and when, in approval order; empty until the first approval. A submit concludes when they number the organisation's `transfers` rule in force at that approval (`GET /approval-rules?family=TRANSFERS`); a resolution needs at least one, whatever the rule.
- `remark` (string, required) — The maker's note on the submit, for its approvers; empty when none — and once a resolution by hand is proposed, whose maker's words are `evidence`.
- `lastWithdrawalProposedBy` (Actor, required, nullable) — Who made the last withdrawn proposal; `null` when none was.
- `lastWithdrawalWithdrawnBy` (Actor, required, nullable) — Who withdrew it — the maker, or an approver; `null` when none was.
- `lastWithdrawalAtNs` (string, required, nullable) — When it was withdrawn, epoch nanoseconds; `null` when none was.
- `lastWithdrawalReason` (string, required) — Why it was withdrawn, as the withdrawer stated it; empty when none was.
- `resolveOutcome` (enum, required) — What a resolution by hand proposes while it pends, or closed the transfer as once approved; `UNKNOWN` when none was ever proposed.
  - Allowed values: `UNKNOWN`, `SETTLED`, `FAILED`
- `evidenceKind` (enum, required) — What the resolution rests on: `VENUE_SETTLED` — the venue shows the transfer complete; `VENUE_CANCELLED`, `VENUE_FAILED`; `VENUE_NO_RECORD` — the venue holds nothing under the transfer's reference. `UNKNOWN` when no resolution was proposed.
  - Allowed values: `UNKNOWN`, `VENUE_SETTLED`, `VENUE_CANCELLED`, `VENUE_FAILED`, `VENUE_NO_RECORD`
- `evidence` (string, required) — What the resolution's maker saw at the venue, in their words; empty when none was proposed.
- `proposedSettledAmount` (string, required, nullable) — money (an exact decimal string at the scale it was stated at): what a pending `SETTLED` resolution states arrived, applied to `settledAmount` when it is approved; `null` when it states none — the destination's own figure stands, else the whole amount — and when no resolution pends.
- `proposedTxId` (string, required) — The transaction hash a pending resolution states, applied to `txId` when it is approved; empty when it states none.
- `updatedAtNs` (string, required) — When this version was written, epoch nanoseconds.
- `updatedBy` (Actor, required) — Who produced this version: the principal behind a submit, an approval, a withdrawal or a resolution — or the platform (`MACHINE`) on a venue's report, a deadline passing or a risk hold.
- `globalSequence` (string, optional) — The position as a decimal string — the last change this member had applied, orders, balance readings and algo instances included.

## Errors

### 400 Resolve Transfers Request Bad Request Error

Refused at the door — nothing reached the platform and the key was not journaled: a missing or malformed `Idempotency-Key`, a malformed `If-Match` (an absent one is 428 `PRECONDITION_REQUIRED`), malformed JSON, a body `actor` (or `userId`, its spelling before the actor), a body restating the path or `If-Match` differently, a money string off its `pattern` (an exponent, a plus sign, a bare point, surrounding whitespace) or past its `maxLength`, or one no value here can state (over 18 fractional digits, or past a 64-bit integer at its own scale), or any other value outside the schema.

- `error` (ErrorBody, required) — What a refusal states. Since `0.12.0` every refusal carries all four members; a member below it sends `code`, sometimes `message`, and neither of the others.
- `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`, or `CONFIG_SEQ_CONFLICT` on an algo instance's config write: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry.

### 401 Resolve Transfers Request Unauthorized Error

No bearer token, or one that does not verify.

- `error` (ErrorBody, required) — What a refusal states. Since `0.12.0` every refusal carries all four members; a member below it sends `code`, sometimes `message`, and neither of the others.
- `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`, or `CONFIG_SEQ_CONFLICT` on an algo instance's config write: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry.

### 403 Resolve Transfers Request Forbidden Error

`CAPABILITY_DENIED`: a read your capabilities do not cover, or a staging route without its propose bit (`accounts:propose`). `NOT_REGISTERED`: no row or open invitation at your verified address, an unknown organisation, or an unclaimed row (an administrator admits it). `EMAIL_UNVERIFIED`: verify, then sign in again. `INVITATION_EXPIRED`: an administrator re-invites. `FORBIDDEN_PRINCIPAL`: no `org_id`, a non-ASCII ref, a disabled user, a binding with no user. `ORG_NOT_ACTIVE`: disabled, pending or deleted. Owners' 403s carry the position header and `Idempotent-Replay`.

- `error` (ErrorBody, required) — What a refusal states. Since `0.12.0` every refusal carries all four members; a member below it sends `code`, sometimes `message`, and neither of the others.
- `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`, or `CONFIG_SEQ_CONFLICT` on an algo instance's config write: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry.

### 404 Resolve Transfers Request Not Found Error

No such row in your organisation — another organisation's row is indistinguishable from an absent one. The position header says as of when.

- `error` (ErrorBody, required) — What a refusal states. Since `0.12.0` every refusal carries all four members; a member below it sends `code`, sometimes `message`, and neither of the others.
- `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`, or `CONFIG_SEQ_CONFLICT` on an algo instance's config write: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry.

### 409 Resolve Transfers Request Conflict Error

The record owner's refusal, 409 for state or uniqueness and 422 for a field or reference, is a fact on the stream: it carries the position header and a retried key replays it. Door refusals ride the same statuses without the header, never journaled, so a retry takes fresh: 409 `IDEMPOTENCY_KEY_REUSED`; 422 `INSTRUMENT_NOT_LIVE` or `ACCOUNT_NOT_ACTIVE` on `POST /orders`, `REFERENCE_UNKNOWN_INSTRUMENT`, `REFERENCE_INSTRUMENT_NOT_LIVE` or `REFERENCE_UNKNOWN_ACCOUNT` in an algo document (every one answers a held key as its retry).

- `error` (ErrorBody, required) — What a refusal states. Since `0.12.0` every refusal carries all four members; a member below it sends `code`, sometimes `message`, and neither of the others.
- `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`, or `CONFIG_SEQ_CONFLICT` on an algo instance's config write: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry.

### 412 Resolve Transfers Request Precondition Failed Error

`If-Match` is stale (`VERSION_CONFLICT`): the envelope carries `currentVersion` and the `ETag` header the current row — re-read, reapply, retry. A retried key replays it with `Idempotent-Replay`.

- `error` (ErrorBody, required) — What a refusal states. Since `0.12.0` every refusal carries all four members; a member below it sends `code`, sometimes `message`, and neither of the others.
- `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`, or `CONFIG_SEQ_CONFLICT` on an algo instance's config write: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry.

### 413 Resolve Transfers Request Content Too Large Error

The request is too large: a body declared past 1 MB (`PAYLOAD_TOO_LARGE`), or a command past the platform's own bound (`TOO_LARGE`, not expected for any route here). Nothing was submitted; a retry takes fresh.

- `error` (ErrorBody, required) — What a refusal states. Since `0.12.0` every refusal carries all four members; a member below it sends `code`, sometimes `message`, and neither of the others.
- `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`, or `CONFIG_SEQ_CONFLICT` on an algo instance's config write: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry.

### 422 Resolve Transfers Request Unprocessable Entity Error

The record owner's refusal, 409 for state or uniqueness and 422 for a field or reference, is a fact on the stream: it carries the position header and a retried key replays it. Door refusals ride the same statuses without the header, never journaled, so a retry takes fresh: 409 `IDEMPOTENCY_KEY_REUSED`; 422 `INSTRUMENT_NOT_LIVE` or `ACCOUNT_NOT_ACTIVE` on `POST /orders`, `REFERENCE_UNKNOWN_INSTRUMENT`, `REFERENCE_INSTRUMENT_NOT_LIVE` or `REFERENCE_UNKNOWN_ACCOUNT` in an algo document (every one answers a held key as its retry).

- `error` (ErrorBody, required) — What a refusal states. Since `0.12.0` every refusal carries all four members; a member below it sends `code`, sometimes `message`, and neither of the others.
- `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`, or `CONFIG_SEQ_CONFLICT` on an algo instance's config write: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry.

### 428 Resolve Transfers Request Precondition Error

The entity write carries no `If-Match` (`PRECONDITION_REQUIRED`): refused at the door — nothing reached the platform and the key was not journaled. Send the `ETag` the row was read at, or `*` to write unconditionally on purpose, and send the request again under the same key.

- `error` (ErrorBody, required) — What a refusal states. Since `0.12.0` every refusal carries all four members; a member below it sends `code`, sometimes `message`, and neither of the others.
- `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`, or `CONFIG_SEQ_CONFLICT` on an algo instance's config write: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry.

### 429 Resolve Transfers Request Too Many Requests Error

Shed at once: `INBOX_FULL` or `IN_FLIGHT_FULL` (this member's bounds; nothing queued, the key not journaled), the intake's or the ticket route's `RATE_LIMITED`, or the orders owner's `RATE_CEILING` (the organisation's per-minute ceiling — a refusal on the stream, replayed like any, so its `retryable` is `false` and the order goes again under a fresh key). `Retry-After` says when.

- `error` (ErrorBody, required) — What a refusal states. Since `0.12.0` every refusal carries all four members; a member below it sends `code`, sometimes `message`, and neither of the others.
- `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`, or `CONFIG_SEQ_CONFLICT` on an algo instance's config write: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry.

### 500 Resolve Transfers Request Internal Server Error

The gateway failed to serve (`INTERRUPTED`, `INTERNAL_ERROR`, `PROJECTION_MISS`); the operation record, if one exists, is still readable.

- `error` (ErrorBody, required) — What a refusal states. Since `0.12.0` every refusal carries all four members; a member below it sends `code`, sometimes `message`, and neither of the others.
- `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`, or `CONFIG_SEQ_CONFLICT` on an algo instance's config write: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry.

### 503 Resolve Transfers Request Service Unavailable Error

This member cannot serve the transfers now: `NOT_PRIMED` — still catching up; retry shortly — `PROJECTION_BEHIND` — behind your `minGlobalSequence`; retry after `Retry-After` — or `TRANSFERS_UNAVAILABLE` — deployed without the transfers surface, so a retry here changes nothing; every other route is unaffected. A transfer write can also meet the door's 503s every write can: `NOT_SERVING`, `OWNER_ABSENT`, or a command lost in transit — nothing was journaled; retry against a serving member.

- `error` (ErrorBody, required) — What a refusal states. Since `0.12.0` every refusal carries all four members; a member below it sends `code`, sometimes `message`, and neither of the others.
- `currentVersion` (string, optional) — On 412 `VERSION_CONFLICT`, or `CONFIG_SEQ_CONFLICT` on an algo instance's config write: the row's current version (the `ETag` carries the same token) — re-read, reapply, retry.

## Types

### Actor

Who acted — the principal behind a command, a row's maker or its concluder: a member (USER, id = the user id), an API key the organisation issued (API_KEY, id = the API key id), or the platform itself (MACHINE, id 0 — a connector's report, an algo instance's order, the door's own write). The kind's value set is append-only: a consumer READING an unknown kind treats the actor as unknown, never as an error.

- `kind` (enum, required) — The kind of principal; which id space `id` names.
  - Allowed values: `USER`, `API_KEY`, `MACHINE`
- `id` (integer, required) — The principal's id in its kind's space: a user id, an API key id, or 0 for the platform itself.

### TransferRowApprovalsItem

- `userId` (integer, required) — An approving user.
- `approvedAtNs` (string, required, nullable) — When this approval was given, platform time in epoch nanoseconds as a decimal string.
- `isHeadroomAcknowledged` (boolean, required) — Whether this approval overrode the headroom check: it stated `acknowledgeHeadroom` and the check refused the approval without it.

### ErrorBody

What a refusal states. Since `0.12.0` every refusal carries all four members; a member below it sends `code`, sometimes `message`, and neither of the others.

- `code` (string, required) — The code to branch on — stable and open (before 1.0.0 a minor may remove one, its changelog naming it): treat one you do not know by its HTTP status. The gateway's: - 400: `MALFORMED_REQUEST`, `MISSING_IDEMPOTENCY_KEY`, `INVALID_IDEMPOTENCY_KEY`, `INVALID_IF_MATCH`, `INVALID_CURSOR` - 401: `UNAUTHENTICATED` - 403: `FORBIDDEN_PRINCIPAL`, `NOT_REGISTERED`, `INVITATION_EXPIRED`, `EMAIL_UNVERIFIED`, `ORG_NOT_ACTIVE`, `CAPABILITY_DENIED` - 404: `NOT_FOUND`, `UNKNOWN_OPERATION`, `ROUTE_NOT_FOUND` (no route answers the path) - 405: `METHOD_NOT_ALLOWED` - 409: `IDEMPOTENCY_KEY_REUSED`, `INTAKE_KEY_REUSED`, `KEY_ALREADY_REGISTERED`, `CONNECTION_DOWN` (`POST /transfers`), `EXCEEDS_MARGIN_HEADROOM`, `HEADROOM_UNKNOWN` (a transfer's submit and its approval) - 413: `TOO_LARGE`, `PAYLOAD_TOO_LARGE`, `DOCUMENT_TOO_LARGE` - 422: a reference this member will not send: `INSTRUMENT_NOT_LIVE`, `ACCOUNT_NOT_ACTIVE` (`POST /orders`), `REFERENCE_UNKNOWN_INSTRUMENT`, `REFERENCE_INSTRUMENT_NOT_LIVE`, `REFERENCE_UNKNOWN_ACCOUNT` (an algo document); `VENUE_UNSUPPORTED`, `DEDICATED_KEY`, `DESTINATION_NOT_ALLOWED` - 428: `PRECONDITION_REQUIRED` - 429: `INBOX_FULL`, `IN_FLIGHT_FULL`, `RATE_LIMITED` - 500: `INTERRUPTED`, `INTERNAL_ERROR`, `PROJECTION_MISS` - 503: `NOT_PRIMED`, `NOT_SERVING`, `OWNER_ABSENT`, `INTAKE_UNAVAILABLE`, `BALANCES_UNAVAILABLE`, `POSITIONS_UNAVAILABLE`, `RISK_UNAVAILABLE`, `TRANSFERS_UNAVAILABLE`, `ALGOS_UNAVAILABLE`, `NOTIFICATIONS_UNAVAILABLE`, `TICKETS_UNAVAILABLE`, `REGISTRATION_PENDING`, `PROJECTION_BEHIND`, `LOST`, `REJECTED_NOT_REGISTERED`, `REJECTED_NOT_ACTIVE` The record owners' refusals ride verbatim — `OrgRegisterRejected.reason`, `OrderRejected.reason`, `AlgoRejected.reason`, `RiskLimitRejectReason`, `RiskAdjustmentRejectReason`, `ManualExecutionRejectReason`, `TransferRejectReason` and `NotificationEndpointRejected.reason` list them; the guide maps each to its status.
- `message` (string, required) — For display only; its wording may change at any time.
- `requestId` (string, required) — The request's id, also sent as X-Request-Id; quote it to support.
- `retryable` (boolean, required) — Whether sending the identical request again, its `Idempotency-Key` included, after `Retry-After` or a short pause, can succeed with nothing else changed. `false` where something must change first: the request, its key, its precondition, the caller's standing, or the platform's own records or deployment. A refusal the record owner judged is always `false`: it is the recorded answer to its key, which replays it.

## Examples

**Request**

```json
{
  "outcome": "SETTLED",
  "evidenceKind": "VENUE_SETTLED",
  "evidence": "evidence"
}
```

**Response**

```json
{
  "transferId": "transferId",
  "version": "version",
  "status": "UNKNOWN",
  "transition": "UNKNOWN",
  "sourceAccountId": 1,
  "sourceWallet": "sourceWallet",
  "destAccountId": 1,
  "destWallet": "destWallet",
  "assetId": 1,
  "chain": "UNKNOWN",
  "amount": "amount",
  "feeAmount": "feeAmount",
  "feeAssetId": 1,
  "settledAmount": "settledAmount",
  "confirmations": 1,
  "executingCredentialId": 1,
  "destAddressId": 1,
  "externalRef": "externalRef",
  "txId": "txId",
  "failureReason": "UNKNOWN",
  "failureDetail": "failureDetail",
  "isOverdue": true,
  "overdueLeg": "UNKNOWN",
  "slaLeg": "UNKNOWN",
  "slaDeadlineNs": "slaDeadlineNs",
  "isHeldAtDestination": true,
  "holdDetail": "holdDetail",
  "isFeeAbovePolicy": true,
  "isHeadroomAcknowledged": true,
  "isRiskHeld": true,
  "isContradicted": true,
  "assetPolicyVersion": "assetPolicyVersion",
  "chainPolicyVersion": "chainPolicyVersion",
  "clientTransferId": "clientTransferId",
  "submittedAtNs": "submittedAtNs",
  "submittedBy": {
    "kind": "USER",
    "id": 1
  },
  "queuedAtNs": "queuedAtNs",
  "instructedAtNs": "instructedAtNs",
  "heldAtNs": "heldAtNs",
  "settledAtNs": "settledAtNs",
  "proposedBy": {
    "kind": "USER",
    "id": 1
  },
  "pendingTransition": "UNKNOWN",
  "proposedAtNs": "proposedAtNs",
  "concludedAtNs": "concludedAtNs",
  "concludedBy": {
    "kind": "USER",
    "id": 1
  },
  "concludedTransition": "UNKNOWN",
  "approvals": [
    {
      "userId": 1,
      "approvedAtNs": "approvedAtNs",
      "isHeadroomAcknowledged": true
    }
  ],
  "remark": "remark",
  "lastWithdrawalProposedBy": {
    "kind": "USER",
    "id": 1
  },
  "lastWithdrawalWithdrawnBy": {
    "kind": "USER",
    "id": 1
  },
  "lastWithdrawalAtNs": "lastWithdrawalAtNs",
  "lastWithdrawalReason": "lastWithdrawalReason",
  "resolveOutcome": "UNKNOWN",
  "evidenceKind": "UNKNOWN",
  "evidence": "evidence",
  "proposedSettledAmount": "proposedSettledAmount",
  "proposedTxId": "proposedTxId",
  "updatedAtNs": "updatedAtNs",
  "updatedBy": {
    "kind": "USER",
    "id": 1
  },
  "globalSequence": "globalSequence"
}
```

**SDK Code**

```python
import requests

url = "https://api.example.com/transfers/id/resolve"

payload = {
    "outcome": "SETTLED",
    "evidenceKind": "VENUE_SETTLED",
    "evidence": "evidence"
}
headers = {
    "Idempotency-Key": "Idempotency-Key",
    "If-Match": "If-Match",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.example.com/transfers/id/resolve';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': 'Idempotency-Key',
    'If-Match': 'If-Match',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"outcome":"SETTLED","evidenceKind":"VENUE_SETTLED","evidence":"evidence"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/transfers/id/resolve"

	payload := strings.NewReader("{\n  \"outcome\": \"SETTLED\",\n  \"evidenceKind\": \"VENUE_SETTLED\",\n  \"evidence\": \"evidence\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Idempotency-Key", "Idempotency-Key")
	req.Header.Add("If-Match", "If-Match")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.example.com/transfers/id/resolve")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = 'Idempotency-Key'
request["If-Match"] = 'If-Match'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"outcome\": \"SETTLED\",\n  \"evidenceKind\": \"VENUE_SETTLED\",\n  \"evidence\": \"evidence\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.example.com/transfers/id/resolve")
  .header("Idempotency-Key", "Idempotency-Key")
  .header("If-Match", "If-Match")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"outcome\": \"SETTLED\",\n  \"evidenceKind\": \"VENUE_SETTLED\",\n  \"evidence\": \"evidence\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.example.com/transfers/id/resolve', [
  'body' => '{
  "outcome": "SETTLED",
  "evidenceKind": "VENUE_SETTLED",
  "evidence": "evidence"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => 'Idempotency-Key',
    'If-Match' => 'If-Match',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.example.com/transfers/id/resolve");
var request = new RestRequest(Method.POST);
request.AddHeader("Idempotency-Key", "Idempotency-Key");
request.AddHeader("If-Match", "If-Match");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"outcome\": \"SETTLED\",\n  \"evidenceKind\": \"VENUE_SETTLED\",\n  \"evidence\": \"evidence\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Idempotency-Key": "Idempotency-Key",
  "If-Match": "If-Match",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "outcome": "SETTLED",
  "evidenceKind": "VENUE_SETTLED",
  "evidence": "evidence"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/transfers/id/resolve")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```