Skip to navigation

Create an external account

Registers the holder’s own bank with the financial account’s issuer, from the result of a bank connection your integration ran: a processor token created for the issuer by your bank connection flow, or a setup from startExternalAccountSetup that has succeeded. The connection type must be the one the financial account’s issuer takes. Never send the bank connection’s link, public or access token.

A processor token registers one bank once. A setup is read on the holder’s own account at the issuer and must have succeeded with a bank payment method and a debit mandate.

Creating an external account never moves money. Pulling funds from it also needs achDebitAuthorization: the holder’s acceptance of your ACH debit authorization. Without it the account is registered with achDebitAuthorization.status NOT_ACCEPTED and cannot fund.

Authentication

AuthorizationBearer

Access token from POST /access-token. Valid for at most 30 minutes.

Headers

Idempotency-KeystringRequiredformat: "^(?:[!#-~][!-~]{0,254}|"[!#-\[\]-~]{1,255}")$"1-257 characters

Your unique key for this operation: 1 to 255 visible ASCII characters, ideally a new UUID v4 for each operation. A value in double quotes is accepted and the quotes are removed. Retrying with the same key and the same request returns the first response with Idempotent-Replayed: true; the same key with a different request is refused with IDEMPOTENCY_KEY_REUSED. A key can be used again 30 days after its operation completes.

Account-HolderstringOptionalformat: "^[A-Za-z0-9_-]+$"1-128 characters

The account holder a platform API key acts on. Platform keys must send it on account holder operations. A company API key acts on its own account holder; it may omit the header or send its own account holder ID.

X-Request-IdstringOptionalformat: "^[A-Za-z0-9._:-]+$"1-128 characters

Your own correlation ID for this request. It is recorded with the request. The X-Request-Id response header is always generated by the server.

Request

This endpoint expects an object.
financialAccountIdstringRequiredformat: "^[A-Za-z0-9_-]+$"1-128 characters

A resource ID. Treat it as an opaque, case-sensitive string.

connectionobjectRequired
The result of the bank connection your integration ran.
achDebitAuthorizationobjectOptional
The holder's acceptance of your ACH debit authorization for this bank.

Response headers

X-Request-Idstringformat: "uuid"
Unique ID of this request. Quote it when you contact support.
RateLimitstringOptional

Remaining budget for each rate limit policy, for example "burst"; r=57; t=6 (requests remaining and seconds until the window resets).

RateLimit-PolicystringOptional

The rate limit policies applied to this request, for example "burst"; q=60; w=10 (requests allowed per window of seconds).

Locationstring

Path of the resource, relative to the API host, for example /api/v2/embeddedSessions/0b6f3c1e-5d2a-4c8e-9a71-3f4d2e1b6c90.

Idempotent-ReplayedenumOptional

Sent as true when this response repeats the first response to the same Idempotency-Key. A replay keeps the first response’s status and body, including the requestId of a problem; X-Request-Id is new.

Allowed values:

Response

The external account.
idstringformat: "^[A-Za-z0-9_-]+$"1-128 characters

A resource ID. Treat it as an opaque, case-sensitive string.

objectenum

Always externalAccount.

Allowed values:
livemodeboolean
False on test deployments.
createdAtdatetime
When the account was connected.
updatedAtdatetime
When the account last changed.
namestring
The bank's name.
last4stringformat: "^[0-9]{4}$"
Last four digits of the bank account number.
statusenum

Only an ACTIVE account can fund.

Allowed values:
ownershipenum

Whose bank this is; every external account is the holder’s own.

Allowed values:
currencystringformat: "^[A-Z]{3}$"
ISO 4217 currency code.
achDebitAuthorizationobject

Whether the holder authorized debits from this bank. Only ACCEPTED lets the account fund.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
413
Content Too Large Error
415
Unsupported Media Type Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error