Disconnect an external account
Closes the bank at the issuer, then revokes its debit authorization and
marks it DISCONNECTED. If the issuer refuses, as while a transfer with
the bank is unfinished, the request is refused and nothing changes.
Disconnecting a disconnected bank returns it unchanged.
A bank a scheduled transfer or a running Auto Balance rule draws from is
refused with INVALID_STATE, unless cancelAutomaticTransfers is true.
Once the issuer has closed the bank, its Auto Balance rules are removed,
including any that are off, and with cancelAutomaticTransfers its
scheduled transfers are cancelled.
A bank is disconnected one request at a time. While another removal of it
is in progress, the request is refused with SERVICE_UNAVAILABLE before
anything reaches the issuer. A disconnect that cannot finish while it still
holds the bank, such as when the bank’s authorization changed meanwhile, is
refused with SERVICE_UNAVAILABLE too. The issuer may already have closed
the bank, which shows as connected until a retry finishes the disconnect.
Retry either later with the same Idempotency-Key.
Authentication
Access token from POST /access-token. Valid for at most 30 minutes.
Path parameters
Headers
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.
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.
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
Response headers
Remaining budget for each rate limit policy, for example "burst"; r=57; t=6 (requests remaining and seconds until the window resets).
The rate limit policies applied to this request, for example "burst"; q=60; w=10 (requests allowed per window of seconds).
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.
Response
A resource ID. Treat it as an opaque, case-sensitive string.
Always externalAccount.
Only an ACTIVE account can fund.
Whose bank this is; every external account is the holder’s own.
Whether the holder authorized debits from this bank. Only ACCEPTED lets the account fund.