Skip to Content
Paycose Docs
Bank accounts

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

  • idstringRequired

    Unique identifier for the object.

  • objectstringRequired

    String naming the object's type.

  • livemodebooleanRequired

    true when the object exists in live mode, false in test mode.

  • createdtimestampRequired

    Time the object was created, in Unix seconds.

  • updatedtimestampRequired

    Time the object last changed, in Unix seconds.

  • accountstringRequired

    ID of the account (acct_…) that owns the bank account.

  • account_holder_namestringRequired

    Name of the account holder.

  • last4stringRequired

    Last four digits of the account number, or of the PromptPay phone number or ID. The full number is never returned.

  • routing_numberstringRequired

    Routing 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_codestringRequired

    Local code of the bank; empty for PromptPay accounts.

  • bankobjectNullable

    The bank from Paycose's bank directory, for a bookbank account whose code the directory knows. Omitted otherwise.

    Show child attributes
    • bank.objectstringRequired

      String naming the object's type: always bank.

    • bank.codestringRequired

      The bank's local bank code, for example 004 in Thailand.

    • bank.namestringRequired

      The bank's display name.

    • bank.slugstringRequired

      Short lowercase name of the bank, for example kbank.

    • bank.logo_urlstring

      Public, versioned URL of the bank's logo image. Omitted when the bank has no logo.

  • branch_codestringRequired

    Branch code of the bank account; empty when none was given.

  • branchobjectNullable

    The branch of the bank account. Omitted when no branch code was given.

    Show child attributes
    • branch.objectstringRequired

      String naming the object's type: always bank_branch.

    • branch.codestringRequired

      Branch code given when the bank account was created.

    • branch.namestring

      Branch name from the bank directory, looked up when the bank account was created. Omitted when the directory did not know the code.

  • account_typestringRequired

    Kind of bank account at the bank, such as savings or current; empty when not given.

  • countrystringRequired

    Two-letter ISO 3166-1 code of the country the bank account is in.

  • currencystringRequired

    Three-letter ISO 4217 currency code, in lowercase.

  • typeenumRequired

    Kind of bank account.

    • bookbank

      A 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_phone

      A Thai PromptPay ID registered to a mobile number.

    • promptpay_primary_identify_id

      A Thai PromptPay ID registered to a 13-digit national ID number.

  • activebooleanRequired

    true when the bank account can receive payouts.

  • verifiedbooleanRequired

    true when 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_idstringRequired

    ID of the bank account's main recipient at its payout provider; empty when there is none.

  • providerstringRequired

    Payout provider that holds the main recipient; empty when there is none, as for PromptPay and connected accounts' bank accounts.

  • recipientsarray of objectsRequired

    The bank account's recipients at payout providers.

    Show child attributes
    • recipients.idstringRequired

      Unique identifier for the object.

    • recipients.providerstringRequired

      Payout provider that holds this recipient.

    • recipients.reference_idstringRequired

      The recipient's ID at the provider.

    • recipients.is_defaultbooleanRequired

      true when this is the bank account's default recipient.

  • metadataobjectRequired

    Key-value pairs you attach to the object for your own use. Paycose never reads or changes them.