Skip to content

Stripe: Create or retrieve funding instructions for a customer cash balance

Stripe customers.postCustomersCustomerFundingInstructions: arguments, response, policy and SDK examples.

← Customers operations · Get started

Operation stripe.postcustomerscustomerfundinginstructions

Provider route: POST /v1/customers/{customer}/funding_instructions. 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["customers"]["postCustomersCustomerFundingInstructions"]>[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.customers.postCustomersCustomerFundingInstructions(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.customers.post_customers_customer_funding_instructions(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.customerstringRequired within parentMaximum length: 5000
headersobjectOptionalAdditional keys: not allowed
headers.Idempotency-KeystringOptionalMinimum length: 1
Maximum length: 255
bodyobjectRequired within parentAdditional keys: not allowed
body.bank_transferobjectRequired within parentAdditional parameters for `bank_transfer` funding types
body.bank_transfer.eu_bank_transferobjectOptional
body.bank_transfer.eu_bank_transfer.countrystringRequired within parentMaximum length: 5000
body.bank_transfer.requested_address_typesarrayOptional
body.bank_transfer.requested_address_types[]stringEach itemOne of: iban, sort_code, spei, zengin
body.bank_transfer.typestringRequired within parentOne of: eu_bank_transfer, gb_bank_transfer, jp_bank_transfer, mx_bank_transfer, us_bank_transfer
body.currencystringRequired within parentThree-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
Format: currency
body.expandarrayOptionalSpecifies which fields in the response should be expanded.
body.expand[]stringEach itemMaximum length: 5000
body.funding_typestringRequired within parentThe `funding_type` to get the instructions for.
One of: bank_transfer

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

FieldTypePresenceDescription and constraints
$ModelRootExpand Create or retrieve funding instructions for a customer cash balance — response body

Referenced models: Create or retrieve funding instructions for a customer cash balance — response body

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

Create or retrieve funding instructions for a customer cash balance — response body
FieldTypePresenceDescription and constraints
$objectRootEach customer has a [`balance`](https://docs.stripe.com/api/customers/object#customer_object-balance) that is
automatically applied to future invoices and payments using the `customer_balance` payment method.
Customers can fund this balance by initiating a bank transfer to any account in the
`financial_addresses` field.
Related guide: [Customer balance funding instructions](https://docs.stripe.com/payments/customer-balance/funding-instructions)
bank_transferModelRequired within parentExpand Create or retrieve funding instructions for a customer cash balance — response body — bank transfer
currencystringRequired within parentThree-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
Maximum length: 5000
funding_typestringRequired within parentThe `funding_type` of the returned instructions
Known values: bank_transfer
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: funding_instructions

Referenced models: Create or retrieve funding instructions for a customer cash balance — response body — bank transfer

Create or retrieve funding instructions for a customer cash balance — response body — bank transfer
FieldTypePresenceDescription and constraints
$objectRoot
countrystringRequired within parentThe country of the bank account to fund
Maximum length: 5000
financial_addressesarrayRequired within parentA list of financial addresses that can be used to fund a particular balance
financial_addresses[]ModelEach itemExpand Create or retrieve funding instructions for a customer cash balance — response body — bank transfer financial addresses item
typestringRequired within parentThe bank_transfer type
Known values: eu_bank_transfer, jp_bank_transfer

Referenced models: Create or retrieve funding instructions for a customer cash balance — response body — bank transfer financial addresses item

Create or retrieve funding instructions for a customer cash balance — response body — bank transfer financial addresses item
FieldTypePresenceDescription and constraints
$objectRootFinancialAddresses contain identifying information that resolves to a FinancialAccount.
abaModelOptionalExpand Create or retrieve funding instructions for a customer cash balance — response body — bank transfer financial addresses item aba
ibanModelOptionalExpand Create or retrieve funding instructions for a customer cash balance — response body — bank transfer financial addresses item iban
sort_codeModelOptionalExpand Create or retrieve funding instructions for a customer cash balance — response body — bank transfer financial addresses item sort code
speiModelOptionalExpand Create or retrieve funding instructions for a customer cash balance — response body — bank transfer financial addresses item spei
supported_networksarrayOptionalThe payment networks supported by this FinancialAddress
supported_networks[]stringEach itemKnown values: ach, bacs, chaps, domestic_wire_us, fps, sepa, spei, swift, zengin
swiftModelOptionalExpand Create or retrieve funding instructions for a customer cash balance — response body — bank transfer financial addresses item swift
typestringRequired within parentThe type of financial address
Known values: aba, iban, sort_code, spei, swift, zengin
zenginModelOptionalExpand Create or retrieve funding instructions for a customer cash balance — response body — bank transfer financial addresses item zengin

Referenced models: Create or retrieve funding instructions for a customer cash balance — response body — bank transfer financial addresses item aba, Create or retrieve funding instructions for a customer cash balance — response body — bank transfer financial addresses item iban, Create or retrieve funding instructions for a customer cash balance — response body — bank transfer financial addresses item sort code, Create or retrieve funding instructions for a customer cash balance — response body — bank transfer financial addresses item spei, Create or retrieve funding instructions for a customer cash balance — response body — bank transfer financial addresses item swift, Create or retrieve funding instructions for a customer cash balance — response body — bank transfer financial addresses item zengin

Create or retrieve funding instructions for a customer cash balance — response body — bank transfer financial addresses item aba
FieldTypePresenceDescription and constraints
$objectRootABA Records contain U.S. bank account details per the ABA format.
account_holder_addressModelRequired within parentExpand Create a Location — response body — address
account_holder_namestringRequired within parentThe account holder name
Maximum length: 5000
account_numberstringRequired within parentThe ABA account number
Maximum length: 5000
account_typestringRequired within parentThe account type
Maximum length: 5000
bank_addressModelRequired within parentExpand Create a Location — response body — address
bank_namestringRequired within parentThe bank name
Maximum length: 5000
routing_numberstringRequired within parentThe ABA routing number
Maximum length: 5000

Referenced models: Create a Location — response body — address

Create or retrieve funding instructions for a customer cash balance — response body — bank transfer financial addresses item iban
FieldTypePresenceDescription and constraints
$objectRootIban Records contain E.U. bank account details per the SEPA format.
account_holder_addressModelRequired within parentExpand Create a Location — response body — address
account_holder_namestringRequired within parentThe name of the person or business that owns the bank account
Maximum length: 5000
bank_addressModelRequired within parentExpand Create a Location — response body — address
bicstringRequired within parentThe BIC/SWIFT code of the account.
Maximum length: 5000
countrystringRequired within parentTwo-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
Maximum length: 5000
ibanstringRequired within parentThe IBAN of the account.
Maximum length: 5000

Referenced models: Create a Location — response body — address

Create or retrieve funding instructions for a customer cash balance — response body — bank transfer financial addresses item sort code
FieldTypePresenceDescription and constraints
$objectRootSort Code Records contain U.K. bank account details per the sort code format.
account_holder_addressModelRequired within parentExpand Create a Location — response body — address
account_holder_namestringRequired within parentThe name of the person or business that owns the bank account
Maximum length: 5000
account_numberstringRequired within parentThe account number
Maximum length: 5000
bank_addressModelRequired within parentExpand Create a Location — response body — address
sort_codestringRequired within parentThe six-digit sort code
Maximum length: 5000

Referenced models: Create a Location — response body — address

Create or retrieve funding instructions for a customer cash balance — response body — bank transfer financial addresses item spei
FieldTypePresenceDescription and constraints
$objectRootSPEI Records contain Mexico bank account details per the SPEI format.
account_holder_addressModelRequired within parentExpand Create a Location — response body — address
account_holder_namestringRequired within parentThe account holder name
Maximum length: 5000
bank_addressModelRequired within parentExpand Create a Location — response body — address
bank_codestringRequired within parentThe three-digit bank code
Maximum length: 5000
bank_namestringRequired within parentThe short banking institution name
Maximum length: 5000
clabestringRequired within parentThe CLABE number
Maximum length: 5000

Referenced models: Create a Location — response body — address

SDK function policy ID: stripe.postcustomerscustomerfundinginstructions. Catalog operation: PostCustomersCustomerFundingInstructions. 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.