Create a bank account
POST/payment-methods/bank-accounts
Creates a bank-account payment method. By default the bank account is owned by the authenticated account. Optionally pass account_id to create the bank account on behalf of an account you onboarded (e.g. a player your platform created); authorization is the onboarding relationship.
Request
- application/json
Body
required
- Bank account (account number)
- Bank account (IBAN)
oneOf
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Optional client-supplied id for the new payment method.
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Optional. Create the bank account on behalf of an account you onboarded (e.g. a player). Defaults to the authenticated account. Authorized via the onboarding relationship.
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Optional customer to own the payment method (instead of the account).
Possible values: [individual, business]
Whether the account holder is a natural person or a business.
Full legal name on the bank account.
Possible values: [cash, checking, general_ledger, loan, non_resident, other, overdraft, savings]
Bank account type. checking and savings are typical; other is the catch-all.
Name of the bank.
Possible values: Value must match regular expression ^[A-Z]{3}$
ISO 4217 currency code.
Possible values: Value must match regular expression ^[A-Z]{2}$
ISO 3166-1 alpha-2 country code.
Local bank account number (e.g. US ACH). Provide this OR iban.
IBAN for EU/international accounts. Provide this OR account_number.
US ABA routing number (used with account_number).
UK sort code (used with account_number).
SWIFT/BIC (used with iban for international transfers).
Request same-day credit (only valid for credit-capable accounts).
billing_details
object
Optional holder details. The address is stored as the payment method's billing details and forwarded to providers that validate a beneficiary address (e.g. Bridge).
address
object
Possible values: Value must match regular expression ^[A-Z]{2}$
ISO 3166-1 alpha-2.
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Optional client-supplied id for the new payment method.
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Optional. Create the bank account on behalf of an account you onboarded (e.g. a player). Defaults to the authenticated account. Authorized via the onboarding relationship.
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Optional customer to own the payment method (instead of the account).
Possible values: [individual, business]
Whether the account holder is a natural person or a business.
Full legal name on the bank account.
Possible values: [cash, checking, general_ledger, loan, non_resident, other, overdraft, savings]
Bank account type. checking and savings are typical; other is the catch-all.
Name of the bank.
Possible values: Value must match regular expression ^[A-Z]{3}$
ISO 4217 currency code.
Possible values: Value must match regular expression ^[A-Z]{2}$
ISO 3166-1 alpha-2 country code.
Local bank account number (e.g. US ACH). Provide this OR iban.
IBAN for EU/international accounts. Provide this OR account_number.
US ABA routing number (used with account_number).
UK sort code (used with account_number).
SWIFT/BIC (used with iban for international transfers).
Request same-day credit (only valid for credit-capable accounts).
billing_details
object
Optional holder details. The address is stored as the payment method's billing details and forwarded to providers that validate a beneficiary address (e.g. Bridge).
address
object
Possible values: Value must match regular expression ^[A-Z]{2}$
ISO 3166-1 alpha-2.
Responses
- 200
- 401
- 403
- 409
- 422
- 500
Bank account creation accepted. Returns the standard success envelope with no resource body.
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [success]
Possible values: [200]
Possible values: [Successful request]
{
"status": "success",
"code": 200,
"message": "Successful request"
}
Access token is missing or invalid
Access denied — the named account was not onboarded by the requester
This bank account is already on file for the account
Bank account could not be linked due to a validation failure
Server error