Skip to content

Stripe: Create a bank account token

Stripe tokens.postTokens: arguments, response, policy and SDK examples.

← Tokens operations · Get started

Operation stripe.posttokens

Provider route: POST /v1/tokens. 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["tokens"]["postTokens"]>[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.tokens.postTokens(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.tokens.post_tokens(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
headersobjectOptionalAdditional keys: not allowed
headers.Idempotency-KeystringOptionalMinimum length: 1
Maximum length: 255
bodyobjectOptionalAdditional keys: not allowed
body.accountobjectOptionalInformation for the account this token represents.
body.account.business_typestringOptionalOne of: company, government_entity, individual, non_profit
body.account.companyobjectOptional
body.account.company.addressobjectOptional
body.account.company.address.citystringOptionalMaximum length: 100
body.account.company.address.countrystringOptionalMaximum length: 5000
body.account.company.address.line1stringOptionalMaximum length: 200
body.account.company.address.line2stringOptionalMaximum length: 200
body.account.company.address.postal_codestringOptionalMaximum length: 5000
body.account.company.address.statestringOptionalMaximum length: 5000
body.account.company.address_kanaobjectOptional
body.account.company.address_kana.citystringOptionalMaximum length: 5000
body.account.company.address_kana.countrystringOptionalMaximum length: 5000
body.account.company.address_kana.line1stringOptionalMaximum length: 5000
body.account.company.address_kana.line2stringOptionalMaximum length: 5000
body.account.company.address_kana.postal_codestringOptionalMaximum length: 5000
body.account.company.address_kana.statestringOptionalMaximum length: 5000
body.account.company.address_kana.townstringOptionalMaximum length: 5000
body.account.company.address_kanjiobjectOptional
body.account.company.address_kanji.citystringOptionalMaximum length: 5000
body.account.company.address_kanji.countrystringOptionalMaximum length: 5000
body.account.company.address_kanji.line1stringOptionalMaximum length: 5000
body.account.company.address_kanji.line2stringOptionalMaximum length: 5000
body.account.company.address_kanji.postal_codestringOptionalMaximum length: 5000
body.account.company.address_kanji.statestringOptionalMaximum length: 5000
body.account.company.address_kanji.townstringOptionalMaximum length: 5000
body.account.company.administrative_addressobjectOptional
body.account.company.administrative_address.citystringOptionalMaximum length: 100
body.account.company.administrative_address.countrystringOptionalMaximum length: 5000
body.account.company.administrative_address.line1stringOptionalMaximum length: 200
body.account.company.administrative_address.line2stringOptionalMaximum length: 200
body.account.company.administrative_address.postal_codestringOptionalMaximum length: 5000
body.account.company.administrative_address.statestringOptionalMaximum length: 5000
body.account.company.directors_providedbooleanOptional
body.account.company.directorship_declarationobjectOptional
body.account.company.directorship_declaration.dateintegerOptionalFormat: unix-time
body.account.company.directorship_declaration.ipstringOptional
body.account.company.directorship_declaration.user_agentstringOptionalMaximum length: 5000
body.account.company.executives_providedbooleanOptional
body.account.company.export_license_idstringOptionalMaximum length: 5000
body.account.company.export_purpose_codestringOptionalMaximum length: 5000
body.account.company.namestringOptionalMaximum length: 200
body.account.company.name_kanastringOptionalMaximum length: 200
body.account.company.name_kanjistringOptionalMaximum length: 200
body.account.company.owners_providedbooleanOptional
body.account.company.ownership_declarationobjectOptional
body.account.company.ownership_declaration.dateintegerOptionalFormat: unix-time
body.account.company.ownership_declaration.ipstringOptional
body.account.company.ownership_declaration.user_agentstringOptionalMaximum length: 5000
body.account.company.ownership_declaration_shown_and_signedbooleanOptional
body.account.company.ownership_exemption_reasonstringOptionalOne of: , qualified_entity_exceeds_ownership_threshold, qualifies_as_financial_institution
body.account.company.phonestringOptionalMaximum length: 5000
body.account.company.principal_place_of_businessobjectOptional
body.account.company.principal_place_of_business.citystringOptionalMaximum length: 100
body.account.company.principal_place_of_business.countrystringOptionalMaximum length: 5000
body.account.company.principal_place_of_business.line1stringOptionalMaximum length: 200
body.account.company.principal_place_of_business.line2stringOptionalMaximum length: 200
body.account.company.principal_place_of_business.postal_codestringOptionalMaximum length: 5000
body.account.company.principal_place_of_business.statestringOptionalMaximum length: 5000
body.account.company.registration_dateJSONOptional
body.account.company.registration_date (anyOf 1)objectAlternative
body.account.company.registration_date (anyOf 1).dayintegerRequired within parent
body.account.company.registration_date (anyOf 1).monthintegerRequired within parent
body.account.company.registration_date (anyOf 1).yearintegerRequired within parent
body.account.company.registration_date (anyOf 2)stringAlternativeOne of:
body.account.company.registration_numberstringOptionalMaximum length: 5000
body.account.company.representative_declarationobjectOptional
body.account.company.representative_declaration.dateintegerOptionalFormat: unix-time
body.account.company.representative_declaration.ipstringOptional
body.account.company.representative_declaration.user_agentstringOptionalMaximum length: 5000
body.account.company.structurestringOptionalOne of: , free_zone_establishment, free_zone_llc, government_instrumentality, governmental_unit, incorporated_non_profit, incorporated_partnership, limited_liability_partnership, llc, multi_member_llc, private_company, private_corporation, private_partnership, public_company, public_corporation, public_partnership, registered_charity, single_member_llc, sole_establishment, sole_proprietorship, tax_exempt_government_instrumentality, unincorporated_association, unincorporated_non_profit, unincorporated_partnership
body.account.company.tax_idstringOptionalMaximum length: 5000
body.account.company.tax_id_registrarstringOptionalMaximum length: 5000
body.account.company.vat_idstringOptionalMaximum length: 5000
body.account.company.verificationobjectOptional
body.account.company.verification.documentobjectOptional
body.account.company.verification.document.backstringOptionalMaximum length: 500
body.account.company.verification.document.frontstringOptionalMaximum length: 500
body.account.individualobjectOptional
body.account.individual.addressobjectOptional
body.account.individual.address.citystringOptionalMaximum length: 100
body.account.individual.address.countrystringOptionalMaximum length: 5000
body.account.individual.address.line1stringOptionalMaximum length: 200
body.account.individual.address.line2stringOptionalMaximum length: 200
body.account.individual.address.postal_codestringOptionalMaximum length: 5000
body.account.individual.address.statestringOptionalMaximum length: 5000
body.account.individual.address_kanaobjectOptional
body.account.individual.address_kana.citystringOptionalMaximum length: 5000
body.account.individual.address_kana.countrystringOptionalMaximum length: 5000
body.account.individual.address_kana.line1stringOptionalMaximum length: 5000
body.account.individual.address_kana.line2stringOptionalMaximum length: 5000
body.account.individual.address_kana.postal_codestringOptionalMaximum length: 5000
body.account.individual.address_kana.statestringOptionalMaximum length: 5000
body.account.individual.address_kana.townstringOptionalMaximum length: 5000
body.account.individual.address_kanjiobjectOptional
body.account.individual.address_kanji.citystringOptionalMaximum length: 5000
body.account.individual.address_kanji.countrystringOptionalMaximum length: 5000
body.account.individual.address_kanji.line1stringOptionalMaximum length: 5000
body.account.individual.address_kanji.line2stringOptionalMaximum length: 5000
body.account.individual.address_kanji.postal_codestringOptionalMaximum length: 5000
body.account.individual.address_kanji.statestringOptionalMaximum length: 5000
body.account.individual.address_kanji.townstringOptionalMaximum length: 5000
body.account.individual.dobJSONOptional
body.account.individual.dob (anyOf 1)objectAlternative
body.account.individual.dob (anyOf 1).dayintegerRequired within parent
body.account.individual.dob (anyOf 1).monthintegerRequired within parent
body.account.individual.dob (anyOf 1).yearintegerRequired within parent
body.account.individual.dob (anyOf 2)stringAlternativeOne of:
body.account.individual.emailstringOptional
body.account.individual.first_namestringOptionalMaximum length: 100
body.account.individual.first_name_kanastringOptionalMaximum length: 5000
body.account.individual.first_name_kanjistringOptionalMaximum length: 5000
body.account.individual.full_name_aliasesJSONOptional
body.account.individual.full_name_aliases (anyOf 1)arrayAlternative
body.account.individual.full_name_aliases (anyOf 1)[]stringEach itemMaximum length: 300
body.account.individual.full_name_aliases (anyOf 2)stringAlternativeOne of:
body.account.individual.genderstringOptional
body.account.individual.id_numberstringOptionalMaximum length: 5000
body.account.individual.id_number_secondarystringOptionalMaximum length: 5000
body.account.individual.last_namestringOptionalMaximum length: 100
body.account.individual.last_name_kanastringOptionalMaximum length: 5000
body.account.individual.last_name_kanjistringOptionalMaximum length: 5000
body.account.individual.maiden_namestringOptionalMaximum length: 5000
body.account.individual.metadataJSONOptional
body.account.individual.metadata (anyOf 1)objectAlternativeAdditional keys: see wildcard field
body.account.individual.metadata (anyOf 1).*stringAdditional keys
body.account.individual.metadata (anyOf 2)stringAlternativeOne of:
body.account.individual.phonestringOptional
body.account.individual.political_exposurestringOptionalOne of: existing, none
body.account.individual.registered_addressobjectOptional
body.account.individual.registered_address.citystringOptionalMaximum length: 100
body.account.individual.registered_address.countrystringOptionalMaximum length: 5000
body.account.individual.registered_address.line1stringOptionalMaximum length: 200
body.account.individual.registered_address.line2stringOptionalMaximum length: 200
body.account.individual.registered_address.postal_codestringOptionalMaximum length: 5000
body.account.individual.registered_address.statestringOptionalMaximum length: 5000
body.account.individual.relationshipobjectOptional
body.account.individual.relationship.directorbooleanOptional
body.account.individual.relationship.executivebooleanOptional
body.account.individual.relationship.ownerbooleanOptional
body.account.individual.relationship.percent_ownershipJSONOptional
body.account.individual.relationship.percent_ownership (anyOf 1)numberAlternative
body.account.individual.relationship.percent_ownership (anyOf 2)stringAlternativeOne of:
body.account.individual.relationship.titlestringOptionalMaximum length: 5000
body.account.individual.ssn_last_4stringOptionalMaximum length: 5000
body.account.individual.verificationobjectOptional
body.account.individual.verification.additional_documentobjectOptional
body.account.individual.verification.additional_document.backstringOptionalMaximum length: 500
body.account.individual.verification.additional_document.frontstringOptionalMaximum length: 500
body.account.individual.verification.documentobjectOptional
body.account.individual.verification.document.backstringOptionalMaximum length: 500
body.account.individual.verification.document.frontstringOptionalMaximum length: 500
body.account.tos_shown_and_acceptedbooleanOptional
body.bank_accountobjectOptionalThe bank account this token will represent.
body.bank_account.account_holder_namestringOptionalMaximum length: 5000
body.bank_account.account_holder_typestringOptionalOne of: company, individual
Maximum length: 5000
body.bank_account.account_numberstringRequired within parentMaximum length: 5000
body.bank_account.account_typestringOptionalOne of: checking, futsu, savings, toza
Maximum length: 5000
body.bank_account.countrystringRequired within parentMaximum length: 5000
body.bank_account.currencystringOptionalFormat: currency
body.bank_account.payment_methodstringOptionalMaximum length: 5000
body.bank_account.routing_numberstringOptionalMaximum length: 5000
body.cardJSONOptionalThe card this token will represent. If you also pass in a customer, the card must be the ID of a card belonging to the customer. Otherwise, if you do not pass in a customer, this is a dictionary containing a user’s credit card details, with the options described below.
body.card (anyOf 1)objectAlternative
body.card (anyOf 1).address_citystringOptionalMaximum length: 5000
body.card (anyOf 1).address_countrystringOptionalMaximum length: 5000
body.card (anyOf 1).address_line1stringOptionalMaximum length: 5000
body.card (anyOf 1).address_line2stringOptionalMaximum length: 5000
body.card (anyOf 1).address_statestringOptionalMaximum length: 5000
body.card (anyOf 1).address_zipstringOptionalMaximum length: 5000
body.card (anyOf 1).currencystringOptionalMaximum length: 5000
body.card (anyOf 1).cvcstringOptionalMaximum length: 5000
body.card (anyOf 1).exp_monthstringRequired within parentMaximum length: 5000
body.card (anyOf 1).exp_yearstringRequired within parentMaximum length: 5000
body.card (anyOf 1).namestringOptionalMaximum length: 5000
body.card (anyOf 1).networksobjectOptional
body.card (anyOf 1).networks.preferredstringOptionalOne of: cartes_bancaires, mastercard, visa
body.card (anyOf 1).numberstringRequired within parentMaximum length: 5000
body.card (anyOf 2)stringAlternativeMaximum length: 5000
body.customerstringOptionalCreate a token for the customer, which is owned by the application’s account. You can only use this with an [OAuth access token](https://docs.stripe.com/connect/standard-accounts) or [Stripe-Account header](https://docs.stripe.com/connect/authentication). Learn more about [cloning saved payment methods](https://docs.stripe.com/connect/cloning-saved-payment-methods).
Maximum length: 5000
body.cvc_updateobjectOptionalThe updated CVC value this token represents.
body.cvc_update.cvcstringRequired within parentMaximum length: 5000
body.expandarrayOptionalSpecifies which fields in the response should be expanded.
body.expand[]stringEach itemMaximum length: 5000
body.personobjectOptionalInformation for the person this token represents.
body.person.additional_tos_acceptancesobjectOptional
body.person.additional_tos_acceptances.accountobjectOptional
body.person.additional_tos_acceptances.account.dateintegerOptionalFormat: unix-time
body.person.additional_tos_acceptances.account.ipstringOptional
body.person.additional_tos_acceptances.account.user_agentJSONOptional
body.person.additional_tos_acceptances.account.user_agent (anyOf 1)stringAlternativeMaximum length: 5000
body.person.additional_tos_acceptances.account.user_agent (anyOf 2)stringAlternativeOne of:
body.person.addressobjectOptional
body.person.address.citystringOptionalMaximum length: 100
body.person.address.countrystringOptionalMaximum length: 5000
body.person.address.line1stringOptionalMaximum length: 200
body.person.address.line2stringOptionalMaximum length: 200
body.person.address.postal_codestringOptionalMaximum length: 5000
body.person.address.statestringOptionalMaximum length: 5000
body.person.address_kanaobjectOptional
body.person.address_kana.citystringOptionalMaximum length: 5000
body.person.address_kana.countrystringOptionalMaximum length: 5000
body.person.address_kana.line1stringOptionalMaximum length: 5000
body.person.address_kana.line2stringOptionalMaximum length: 5000
body.person.address_kana.postal_codestringOptionalMaximum length: 5000
body.person.address_kana.statestringOptionalMaximum length: 5000
body.person.address_kana.townstringOptionalMaximum length: 5000
body.person.address_kanjiobjectOptional
body.person.address_kanji.citystringOptionalMaximum length: 5000
body.person.address_kanji.countrystringOptionalMaximum length: 5000
body.person.address_kanji.line1stringOptionalMaximum length: 5000
body.person.address_kanji.line2stringOptionalMaximum length: 5000
body.person.address_kanji.postal_codestringOptionalMaximum length: 5000
body.person.address_kanji.statestringOptionalMaximum length: 5000
body.person.address_kanji.townstringOptionalMaximum length: 5000
body.person.dobJSONOptional
body.person.dob (anyOf 1)objectAlternative
body.person.dob (anyOf 1).dayintegerRequired within parent
body.person.dob (anyOf 1).monthintegerRequired within parent
body.person.dob (anyOf 1).yearintegerRequired within parent
body.person.dob (anyOf 2)stringAlternativeOne of:
body.person.documentsobjectOptional
body.person.documents.company_authorizationobjectOptional
body.person.documents.company_authorization.filesarrayOptional
body.person.documents.company_authorization.files[]JSONEach item
body.person.documents.company_authorization.files[] (anyOf 1)stringAlternativeMaximum length: 500
body.person.documents.company_authorization.files[] (anyOf 2)stringAlternativeOne of:
body.person.documents.passportobjectOptional
body.person.documents.passport.filesarrayOptional
body.person.documents.passport.files[]JSONEach item
body.person.documents.passport.files[] (anyOf 1)stringAlternativeMaximum length: 500
body.person.documents.passport.files[] (anyOf 2)stringAlternativeOne of:
body.person.documents.visaobjectOptional
body.person.documents.visa.filesarrayOptional
body.person.documents.visa.files[]JSONEach item
body.person.documents.visa.files[] (anyOf 1)stringAlternativeMaximum length: 500
body.person.documents.visa.files[] (anyOf 2)stringAlternativeOne of:
body.person.emailstringOptional
body.person.first_namestringOptionalMaximum length: 5000
body.person.first_name_kanastringOptionalMaximum length: 5000
body.person.first_name_kanjistringOptionalMaximum length: 5000
body.person.full_name_aliasesJSONOptional
body.person.full_name_aliases (anyOf 1)arrayAlternative
body.person.full_name_aliases (anyOf 1)[]stringEach itemMaximum length: 5000
body.person.full_name_aliases (anyOf 2)stringAlternativeOne of:
body.person.genderstringOptional
body.person.id_numberstringOptionalMaximum length: 5000
body.person.id_number_secondarystringOptionalMaximum length: 5000
body.person.last_namestringOptionalMaximum length: 5000
body.person.last_name_kanastringOptionalMaximum length: 5000
body.person.last_name_kanjistringOptionalMaximum length: 5000
body.person.maiden_namestringOptionalMaximum length: 5000
body.person.metadataJSONOptional
body.person.metadata (anyOf 1)objectAlternativeAdditional keys: see wildcard field
body.person.metadata (anyOf 1).*stringAdditional keys
body.person.metadata (anyOf 2)stringAlternativeOne of:
body.person.nationalitystringOptionalMaximum length: 5000
body.person.phonestringOptional
body.person.political_exposurestringOptionalOne of: existing, none
body.person.registered_addressobjectOptional
body.person.registered_address.citystringOptionalMaximum length: 100
body.person.registered_address.countrystringOptionalMaximum length: 5000
body.person.registered_address.line1stringOptionalMaximum length: 200
body.person.registered_address.line2stringOptionalMaximum length: 200
body.person.registered_address.postal_codestringOptionalMaximum length: 5000
body.person.registered_address.statestringOptionalMaximum length: 5000
body.person.relationshipobjectOptional
body.person.relationship.authorizerbooleanOptional
body.person.relationship.directorbooleanOptional
body.person.relationship.executivebooleanOptional
body.person.relationship.legal_guardianbooleanOptional
body.person.relationship.ownerbooleanOptional
body.person.relationship.percent_ownershipJSONOptional
body.person.relationship.percent_ownership (anyOf 1)numberAlternative
body.person.relationship.percent_ownership (anyOf 2)stringAlternativeOne of:
body.person.relationship.representativebooleanOptional
body.person.relationship.titlestringOptionalMaximum length: 5000
body.person.ssn_last_4stringOptional
body.person.us_cfpb_dataobjectOptional
body.person.us_cfpb_data.ethnicity_detailsobjectOptional
body.person.us_cfpb_data.ethnicity_details.ethnicityarrayOptional
body.person.us_cfpb_data.ethnicity_details.ethnicity[]stringEach itemOne of: cuban, hispanic_or_latino, mexican, not_hispanic_or_latino, other_hispanic_or_latino, prefer_not_to_answer, puerto_rican
body.person.us_cfpb_data.ethnicity_details.ethnicity_otherstringOptionalMaximum length: 5000
body.person.us_cfpb_data.race_detailsModelOptionalExpand Create a person — accounts post Accounts Account People — request body — body us cfpb data race details
body.person.us_cfpb_data.self_identified_genderstringOptionalMaximum length: 5000
body.person.verificationobjectOptional
body.person.verification.additional_documentobjectOptional
body.person.verification.additional_document.backstringOptionalMaximum length: 500
body.person.verification.additional_document.frontstringOptionalMaximum length: 500
body.person.verification.documentobjectOptional
body.person.verification.document.backstringOptionalMaximum length: 500
body.person.verification.document.frontstringOptionalMaximum length: 500
body.piiobjectOptionalThe PII this token represents.
body.pii.id_numberstringOptionalMaximum length: 5000

Referenced models: Create a person — accounts post Accounts Account People — request body — body us cfpb data race details

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

FieldTypePresenceDescription and constraints
$ModelRootExpand Retrieve a token — response body

Referenced models: Retrieve a token — response body

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

Retrieve a token — response body
FieldTypePresenceDescription and constraints
$objectRootTokenization is the process Stripe uses to collect sensitive card or bank
account details, or personally identifiable information (PII), directly from
your customers in a secure manner. A token representing this information is
returned to your server to use. Use our
[recommended payments integrations](https://docs.stripe.com/payments) to perform this process
on the client-side. This guarantees that no sensitive card data touches your server,
and allows your integration to operate in a PCI-compliant way.

If you can't use client-side tokenization, you can also create tokens using
the API with either your publishable or secret API key. If
your integration uses this method, you're responsible for any PCI compliance
that it might require, and you must keep your secret API key safe. Unlike with
client-side tokenization, your customer's information isn't sent directly to
Stripe, so we can't determine how it's handled or stored.

You can't store or use tokens more than once. To store card or bank account
information for later use, create [Customer](https://docs.stripe.com/api#customers)
objects or [External accounts](/api#external_accounts).
[Radar](https://docs.stripe.com/radar), our integrated solution for automatic fraud protection,
performs best with integrations that use client-side tokenization.
bank_accountModelOptionalExpand Retrieve a bank account — response body
cardModelOptionalExpand Retrieve a card — customers get Customers Customer Cards Id — response body
client_ipJSONOptional
client_ip (anyOf 1)stringAlternativeIP address of the client that generates the token.
Maximum length: 5000
client_ip (anyOf 2)nullAlternative
createdJSONRequired within parent
created (anyOf 1)integerAlternativeTime at which the object was created. Measured in seconds since the Unix epoch.
Format: unix-time
created (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: token
typestringRequired within parentType of the token: `account`, `bank_account`, `card`, or `pii`.
Maximum length: 5000
usedbooleanRequired within parentDetermines if you have already used this token (you can only use tokens once).

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

Create a person — accounts post Accounts Account People — request body — body us cfpb data race details
FieldTypePresenceDescription and constraints
$objectRoot
racearrayOptional
race[]stringEach itemOne of: african_american, american_indian_or_alaska_native, asian, asian_indian, black_or_african_american, chinese, ethiopian, filipino, guamanian_or_chamorro, haitian, jamaican, japanese, korean, native_hawaiian, native_hawaiian_or_other_pacific_islander, nigerian, other_asian, other_black_or_african_american, other_pacific_islander, prefer_not_to_answer, samoan, somali, vietnamese, white
race_otherstringOptionalMaximum 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.posttokens. Catalog operation: PostTokens. 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.