Skip to navigation

Start an external account setup

Starts the hosted setup a holder uses to connect their own bank to a financial account whose program links banks through the issuer’s hosted setup. Confirm the returned clientSecret in your frontend with the issuer’s JavaScript SDK, publishableKey and connectedAccountId; once the setup succeeds, register the bank with POST /externalAccounts.

Available only where the program moves funds by bank transfer, links banks through this hosted setup and is ready. clientSecret is returned for 24 hours on a replay with the same Idempotency-Key; after that, start a new setup.

Authentication

AuthorizationBearer

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

Path parameters

financialAccountIdstringRequiredformat: "^[A-Za-z0-9_-]+$"1-128 characters
The financial account the bank will fund.

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.

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).

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 setup to confirm in your frontend.
objectenum

Always externalAccountSetup.

Allowed values:
livemodeboolean
False on test deployments.
createdAtdatetime
When the setup started.
financialAccountIdstringformat: "^[A-Za-z0-9_-]+$"1-128 characters

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

typeenum

The connection type to send to POST /externalAccounts once the setup succeeds.

Allowed values:
setupIntentIdstring
The setup to confirm, and then to register.
publishableKeystring
The key to load the issuer's JavaScript SDK with.
connectedAccountIdstring

The holder’s account at the issuer to load the SDK for; the setup lives there.

clientSecretstringOptionalRead-only

Confirms the setup in your frontend. Omitted on replays more than 24 hours after the setup started; start a new setup then.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found 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