Creates a virtual bank account (VBA) for a customer using a permanent token obtained from a payment gateway.
Use this operation when you have already created a payment source at the gateway and obtained a permanent token (reference ID) for it.
Prerequisites & Constraints
- The customer must not already have an active VBA for the same
scheme. For example, if the customer already has a VBA withschemeset tous_automated_bank_transfer, you cannot create another VBA with the same scheme.
Impacts
Virtual bank account
- A new virtual bank account resource is created and associated with the customer. The virtual bank account includes details such as bank account number, routing number (or IBAN), bank name, and other payment instructions retrieved from the gateway using the provided reference ID.
- The email address for the VBA is set at the gateway from the
customer.emailattribute. Later, if the email address is updated for the customer, the email address for the VBA is also updated.
Implementation Notes
-
Check if the customer already has a virtual bank account for the same scheme by calling the List virtual bank accounts API with the customer ID filter. If a virtual bank account exists for the same scheme, the API returns a
payment_method_already_existserror. -
Validate that the required currency for the scheme is enabled. Use the List currencies API to check if the currency is enabled.
Sample Request
Sample Result[JSON]
URL Format
Input Parameters
The unique identifier of the customer for whom you want to create a virtual bank account.
The identifier (permanent token) used to fetch the payment source details from the gateway. For example, in Stripe it may be only the Stripe Customer ID (for example, cus_63MnDn0t6kfDW7), or a combination of Stripe Customer ID and Stripe Source ID separated by a forward slash (for example, cus_63MnDn0t6kfDW7/src_6WjCF20vT9WN1G).
Constraints
- If
gateway_account_idis provided, thereference_idmust belong to the gateway account. - If the
gateway_account_idis not provided, thereference_idmust belong to the gateway account selected based on the gateway routing rules for the payment method type and currency combination.
Identifier of the payment gateway account to use when creating the virtual bank account.
Default behavior
When not provided, Chargebee selects an applicable gateway account for the chosen scheme. Selection follows your site's Smart Routing rules.
The type of automated bank transfer scheme for the virtual bank account.
Prerequisites
- If billing address validation is enabled for your site, the customer must have a billing address with a country code.
Deprecated
- This scheme is deprecated. Use
us_automated_bank_transferinstead.
ACH Credit Transfer scheme for US-based customers.
Deprecated
- This scheme is deprecated. Use
eu_automated_bank_transferinstead.
SEPA Credit Transfer scheme for customers in the European Union.
US Automated Bank Transfer scheme for US-based customers.
Prerequisites
- USD currency must be enabled for the site.
- The customer's
billing_address.countrymust beUS.
US Automated Bank Transfer
UK Automated Bank Transfer scheme for UK-based customers.
Prerequisites
- GBP currency must be enabled for the site.
- The customer's
billing_address.countrymust beGB.
EU Automated Bank Transfer scheme for customers in the European Union.
Prerequisites
- EUR currency must be enabled for the site.
- The customer's
billing_address.countrymust be in a SEPA-supported region.
Japan Automated Bank Transfer scheme for Japan-based customers.
Prerequisites
- JPY currency must be enabled for the site.
- The customer's
billing_address.countrymust beJP.
Mexico Automated Bank Transfer scheme for Mexico-based customers.
Prerequisites
- MXN currency must be enabled for the site.
- The customer's
billing_address.countrymust beMX.