Skip to main content
POST

Authorizations

Authorization
string
header
required

Token from POST /auth/token

Headers

Idempotency-Key
string
required

Required on POST and PUT requests. Use a unique value per logical mutation attempt, for example a UUID.

Body

application/json

Create an External Account. Exactly one per-type detail object must be supplied, matching type; the service validates the correct subset and rejects mismatches with 422.

owner
Customer-owned · object
required

Who owns this account - { kind: customer, customerId } or { kind: counterparty, counterpartyId }. Cards must be customer-owned.

type
enum<string>
required

The instrument type. Exactly one matching per-type detail object must be supplied.

Available options:
bankUs,
bankIban,
bankCanada,
card,
walletExternal
label
string

Optional display label.

metadata
object

Free-form key-value pairs stored on the resource and echoed back on reads.

bankUs
object

Required when type = bankUs.

bankIban
object

Required when type = bankIban.

bankCanada
object

Required when type = bankCanada.

walletExternal
object

Required when type = walletExternal.

Response

The request has succeeded and a new resource has been created as a result.

A saved payment destination registered for a customer or one of their counterparties. Exactly one of the per-type response detail objects is populated, selected by type. Write-only secrets (full account number, full IBAN) are never present on reads - only their last-4 renderings.

id
string

External Account ID (ext_ prefix).

Pattern: ^[a-z]+_([0-9a-hjkmnp-tv-z]{26}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$
object
enum<string>

Resource type discriminator. Always "externalAccount".

Available options:
externalAccount
owner
Customer-owned · object

Who owns this account: the customer or one of their counterparties.

ownerDisplayName
string

Server-rendered display name of the owning Customer — lets a list row render "who owns this account" without a second request. Additive next to the owner reference. Present only when owner.kind is customer; absent for counterparty-owned accounts.

customer
object

Resolved id + display name of the owning customer. Present only when owner.kind = customer; absent for counterparty-owned accounts.

type
enum<string>

The instrument type; determines which detail object is populated.

Available options:
bankUs,
bankIban,
bankCanada,
card,
walletExternal
category
enum<string>

High-level grouping: fiatAccount for bank or card accounts, crypto for wallets. The same value as the instrument category when this account is referenced in a transaction.

Available options:
fiatAccount,
crypto
status
enum<string>

Current lifecycle status. A transition to invalid always fires the externalAccount.statusChanged webhook.

Available options:
active,
pending,
rejected,
invalid,
deleted,
failed
failureReason
enum<string>

Set when status = failed.

Available options:
ereborRejected,
cardProviderRejected,
providerAccountMissing,
cardLimitReached,
cardInUse,
provisioningTimeout,
systemError
failureDetail
object

Structured provider rejection detail. Set when status = failed and the failure was a provider terminal rejection; absent for provisioning timeouts and internal failures.

rejectionReason
enum<string>

Why registration was rejected. Present when status is rejected; the key is absent otherwise.

Available options:
countryProhibited,
cardVerificationDeclined,
bankVerificationDeclined,
countryNotSupported
invalidReason
enum<string>

Why the account became unusable after activation, derived from a returned payout. Present when status is invalid; the key is absent otherwise.

Available options:
accountClosed,
accountFrozenByBank,
routingOrAccountNumberInvalid,
accountHolderDeceased,
accountDoesNotSupportTransfers,
payeeNameMismatch,
walletUnreachableOnNetwork,
billingAddressMismatch,
cardExpired,
cardClosedOrLostStolen,
pushToCardUnsupported,
cardDeclinedByIssuer
invalidReasonCode
string

The provider's own code for the failure behind invalidReason, verbatim — for US bank accounts the NACHA return code from the failed payout, e.g. R15. Absent when the provider gave no code, or when the account was invalidated by something other than a returned payment.

Read invalidReason to decide what to do; read this when you need the precise cause for support or reconciliation. invalidReason is a deliberately small set, so several codes map to one member — treat this field as an open vocabulary and do not switch on it. A return code that maps to no invalidReason leaves the account active and sets neither field; the returned payout still fails the transaction, but the unmapped code is not surfaced on the External Account.

label
string

Optional display label.

metadata
object

Free-form key-value pairs supplied at creation or update.

bankUs
object

Populated when type = bankUs.

bankIban
object

Populated when type = bankIban.

bankCanada
object

Populated when type = bankCanada.

walletExternal
object

Populated when type = walletExternal.

card
object

Populated when type = card.

resolvedTransactions
string[]

Transaction ids that this registration submitted for sender-attribution release. Returned ONLY on the POST create response, and only when registering this walletExternal matched held inbounds. Attribution is async: each entry is submitted to the provider from awaitingAction.awaitingSenderAttribution and moves to processing.fundsPulled once settlement confirms — so an immediate GET of an id may still show awaitingAction. Omitted on GETs (the create path is the only writer).

Public TypeID, e.g. txn_01h455vb4pex5vsknk084sn02q; legacy UUID suffixes are accepted until non-v7 rows are retired.

Pattern: ^[a-z]+_([0-9a-hjkmnp-tv-z]{26}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$
createdAt
string<date-time>

When the external account was registered.

updatedAt
string<date-time>

When the external account was last updated.