Skip to content

Stripe: Update a bank account — external Accounts post External Accounts Id

Stripe externalAccounts.postExternalAccountsId: arguments, response, policy and SDK examples.

← External accounts operations · Get started

Operation stripe.postexternalaccountsid

Provider route: POST /v1/external_accounts/{id}. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/stripe with npm, or alter-sdk-stripe with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { StripeIntegration } from "@alter-ai/stripe";
async function execute(input: Parameters<StripeIntegration["externalAccounts"]["postExternalAccountsId"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new StripeIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.externalAccounts.postExternalAccountsId(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_stripe import StripeIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = StripeIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.external_accounts.post_external_accounts_id(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.idstringRequired within parent
headersobjectOptionalAdditional keys: not allowed
headers.Idempotency-KeystringOptionalMinimum length: 1
Maximum length: 255
bodyModelOptionalExpand Update a bank account — external Accounts post External Accounts Id — request body — body

Referenced models: Update a bank account — external Accounts post External Accounts Id — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Update a bank account — external Accounts post External Accounts Id — response body

Referenced models: Update a bank account — external Accounts post External Accounts Id — response body

703 more schemas are linked from the tables above, on the schema pages.

Update a bank account — external Accounts post External Accounts Id — response body
FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)ModelAlternativeExpand Retrieve a bank account — response body
$ (anyOf 2)ModelAlternativeExpand Retrieve a card — customers get Customers Customer Cards Id — response body

Referenced models: Retrieve a bank account — response body, Retrieve a card — customers get Customers Customer Cards Id — response body

Update a bank account — external Accounts post External Accounts Id — request body — body
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
account_holder_namestringOptionalThe name of the person or business that owns the bank account.
Maximum length: 5000
account_holder_typestringOptionalThe type of entity that holds the account. This can be either `individual` or `company`.
One of: , company, individual
Maximum length: 5000
account_typestringOptionalThe bank account type. This can only be `checking` or `savings` in most countries. In Japan, this can only be `futsu` or `toza`.
One of: checking, futsu, savings, toza
Maximum length: 5000
address_citystringOptionalCity/District/Suburb/Town/Village.
Maximum length: 5000
address_countrystringOptionalBilling address country, if provided when creating card.
Maximum length: 5000
address_line1stringOptionalAddress line 1 (Street address/PO Box/Company name).
Maximum length: 5000
address_line2stringOptionalAddress line 2 (Apartment/Suite/Unit/Building).
Maximum length: 5000
address_statestringOptionalState/County/Province/Region.
Maximum length: 5000
address_zipstringOptionalZIP or postal code.
Maximum length: 5000
default_for_currencybooleanOptionalWhen set to true, this becomes the default external account for its currency.
documentsobjectOptionalDocuments that may be submitted to satisfy various informational requests.
documents.bank_account_ownership_verificationobjectOptional
documents.bank_account_ownership_verification.filesarrayOptional
documents.bank_account_ownership_verification.files[]stringEach itemMaximum length: 500
exp_monthstringOptionalTwo digit number representing the card’s expiration month.
Maximum length: 5000
exp_yearstringOptionalFour digit number representing the card’s expiration year.
Maximum length: 5000
expandarrayOptionalSpecifies which fields in the response should be expanded.
expand[]stringEach itemMaximum length: 5000
metadataJSONOptionalSet of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
metadata (anyOf 1)objectAlternativeAdditional keys: see wildcard field
metadata (anyOf 1).*stringAdditional keys
metadata (anyOf 2)stringAlternativeOne of:
namestringOptionalCardholder name.
Maximum length: 5000
Delete a customer — response body
FieldTypePresenceDescription and constraints
$objectRoot
deletedbooleanRequired within parentAlways true for a deleted object
Known values: True
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: customer
Retrieve a bank account — response body — requirements value currently due, errors, past due, pending verification
FieldTypePresenceDescription and constraints
$objectRoot
currently_dueJSONOptional
currently_due (anyOf 1)arrayAlternativeFields that need to be resolved to keep the external account enabled. If not resolved by `current_deadline`, these fields will appear in `past_due` as well, and the account is disabled.
currently_due (anyOf 1)[]stringEach itemMaximum length: 5000
currently_due (anyOf 2)nullAlternative
errorsJSONOptional
errors (anyOf 1)arrayAlternativeFields that are `currently_due` and need to be collected again because validation or verification failed.
errors (anyOf 1)[]ModelEach itemExpand Update an Account Capability — response body — requirements errors item
errors (anyOf 2)nullAlternative
past_dueJSONOptional
past_due (anyOf 1)arrayAlternativeFields that haven't been resolved by `current_deadline`. These fields need to be resolved to enable the external account.
past_due (anyOf 1)[]stringEach itemMaximum length: 5000
past_due (anyOf 2)nullAlternative
pending_verificationJSONOptional
pending_verification (anyOf 1)arrayAlternativeFields that are being reviewed, or might become required depending on the results of a review. If the review fails, these fields can move to `eventually_due`, `currently_due`, `past_due` or `alternatives`. Fields might appear in `eventually_due`, `currently_due`, `past_due` or `alternatives` and in `pending_verification` if one verification fails but another is still pending.
pending_verification (anyOf 1)[]stringEach itemMaximum length: 5000
pending_verification (anyOf 2)nullAlternative

Referenced models: Update an Account Capability — response body — requirements errors item

Retrieve a card — customers get Customers Customer Cards Id — response body — networks
FieldTypePresenceDescription and constraints
$objectRoot
preferredJSONOptional
preferred (anyOf 1)stringAlternativeThe preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.
Maximum length: 5000
preferred (anyOf 2)nullAlternative
Create an account — response body — groups The groups associated with the account payments pricing
FieldTypePresenceDescription and constraints
$objectRoot
payments_pricingJSONOptional
payments_pricing (anyOf 1)stringAlternativeThe group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://docs.stripe.com/connect/platform-pricing-tools) for details.
Maximum length: 5000
payments_pricing (anyOf 2)nullAlternative
Create an account — response body — tos acceptance
FieldTypePresenceDescription and constraints
$objectRoot
dateJSONOptional
date (anyOf 1)JSONAlternative
date (anyOf 1) (anyOf 1)integerAlternativeThe Unix timestamp marking when the account representative accepted their service agreement
Format: unix-time
date (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
date (anyOf 2)nullAlternative
ipJSONOptional
ip (anyOf 1)stringAlternativeThe IP address from which the account representative accepted their service agreement
Maximum length: 5000
ip (anyOf 2)nullAlternative
service_agreementstringOptionalThe user's service agreement type
Maximum length: 5000
user_agentJSONOptional
user_agent (anyOf 1)stringAlternativeThe user agent of the browser from which the account representative accepted their service agreement
Maximum length: 5000
user_agent (anyOf 2)nullAlternative
Create an account — response body — controller
FieldTypePresenceDescription and constraints
$objectRoot
feesModelOptionalExpand Create an account — response body — controller fees
is_controllerbooleanOptional`true` if the Connect application retrieving the resource controls the account and can therefore exercise [platform controls](https://docs.stripe.com/connect/platform-controls-for-standard-accounts). Otherwise, this field is null.
lossesModelOptionalExpand Create an account — response body — controller losses
requirement_collectionstringOptionalA value indicating responsibility for collecting requirements on this account. Only returned when the Connect application retrieving the resource controls the account.
Known values: application, stripe
stripe_dashboardModelOptionalExpand Create an account — response body — controller stripe dashboard
typestringRequired within parentThe controller type. Can be `application`, if a Connect application controls the account, or `account`, if the account controls itself.
Known values: account, application

Referenced models: Create an account — response body — controller fees, Create an account — response body — controller losses, Create an account — response body — controller stripe dashboard

SDK function policy ID: stripe.postexternalaccountsid. Catalog operation: PostExternalAccountsId. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Pinned headers: {"Stripe-Version": "2026-09-30.endive"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.