Bank accounts
The bank_account object
A bank account owned by an account. Your own account's bank account is where your payouts go; a connected account's bank account records where that account is paid, by a payout from your own payout provider or by a transfer you make yourself.
Attributes
idstringRequiredUnique identifier for the object.
objectstringRequiredString naming the object's type.
livemodebooleanRequiredtruewhen the object exists in live mode,falsein test mode.createdtimestampRequiredTime the object was created, in Unix seconds.
updatedtimestampRequiredTime the object last changed, in Unix seconds.
accountstringRequiredID of the account (
acct_…) that owns the bank account.account_holder_namestringRequiredName of the account holder.
last4stringRequiredLast four digits of the account number, or of the PromptPay phone number or ID. The full number is never returned.
routing_numberstringRequiredRouting number of the bank account, where the country uses one: an ABA routing number, sort code, BSB, IFSC, SWIFT code, or the bank and branch codes joined as Stripe does. Empty otherwise.
bank_codestringRequiredLocal code of the bank; empty for PromptPay accounts.
bankobjectNullableThe bank from Paycose's bank directory, for a
bookbankaccount whose code the directory knows. Omitted otherwise.Show child attributes
bank.objectstringRequiredString naming the object's type: always
bank.bank.codestringRequiredThe bank's local bank code, for example
004in Thailand.bank.namestringRequiredThe bank's display name.
bank.slugstringRequiredShort lowercase name of the bank, for example
kbank.bank.logo_urlstringPublic, versioned URL of the bank's logo image. Omitted when the bank has no logo.
branch_codestringRequiredBranch code of the bank account; empty when none was given.
branchobjectNullableThe branch of the bank account. Omitted when no branch code was given.
Show child attributes
branch.objectstringRequiredString naming the object's type: always
bank_branch.branch.codestringRequiredBranch code given when the bank account was created.
branch.namestringBranch name from the bank directory, looked up when the bank account was created. Omitted when the directory did not know the code.
account_typestringRequiredKind of bank account at the bank, such as
savingsorcurrent; empty when not given.countrystringRequiredTwo-letter ISO 3166-1 code of the country the bank account is in.
currencystringRequiredThree-letter ISO 4217 currency code, in lowercase.
typeenumRequiredKind of bank account.
bookbankA bank account identified the way its country does: by bank code and account number, a routing number and account number, or an IBAN, CLABE, CBU or CCI.
promptpay_phoneA Thai PromptPay ID registered to a mobile number.
promptpay_primary_identify_idA Thai PromptPay ID registered to a 13-digit national ID number.
activebooleanRequiredtruewhen the bank account can receive payouts.verifiedbooleanRequiredtruewhen the bank account has been verified, by a payout provider or by Paycose. PromptPay accounts are verified when added. Payouts from your own balance need a verified bank account.reference_idstringRequiredID of the bank account's main recipient at its payout provider; empty when there is none.
providerstringRequiredPayout provider that holds the main recipient; empty when there is none, as for PromptPay and connected accounts' bank accounts.
recipientsarray of objectsRequiredThe bank account's recipients at payout providers.
Show child attributes
recipients.idstringRequiredUnique identifier for the object.
recipients.providerstringRequiredPayout provider that holds this recipient.
recipients.reference_idstringRequiredThe recipient's ID at the provider.
recipients.is_defaultbooleanRequiredtruewhen this is the bank account's default recipient.
metadataobjectRequiredKey-value pairs you attach to the object for your own use. Paycose never reads or changes them.