Skip to main content
GET
/
payments
/
bank_accounts
import cobo_waas2
from cobo_waas2.models.bank_account import BankAccount
from cobo_waas2.rest import ApiException
from pprint import pprint

# See configuration.py for a list of all supported configurations.
configuration = cobo_waas2.Configuration(
    # Replace `<YOUR_PRIVATE_KEY>` with your private key
    api_private_key="<YOUR_PRIVATE_KEY>",
    # Select the development environment. To use the production environment, change the URL to https://api.cobo.com/v2.
    host="https://api.dev.cobo.com/v2",
)
# Enter a context with an instance of the API client
with cobo_waas2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cobo_waas2.PaymentApi(api_client)

    try:
        # List all bank accounts
        api_response = api_instance.list_bank_accounts()
        print("The response of PaymentApi->list_bank_accounts:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PaymentApi->list_bank_accounts: %s\n" % e)

[
  {
    "bank_account_id": "123e4567-e89b-12d3-a456-426614174003",
    "info": {
      "beneficiary_name": "John Doe",
      "beneficiary_address": "123 Main St, Anytown, USA",
      "account_number": "4111111111111111",
      "bank_name": "ABC Bank",
      "bank_country": "USA",
      "bank_address": "456 Bank Ave, Cityville, USA",
      "swift_or_bic": "ABCDEFGH"
    },
    "created_timestamp": 1744689600,
    "updated_timestamp": 1744689600
  }
]
import cobo_waas2
from cobo_waas2.models.bank_account import BankAccount
from cobo_waas2.rest import ApiException
from pprint import pprint

# See configuration.py for a list of all supported configurations.
configuration = cobo_waas2.Configuration(
    # Replace `<YOUR_PRIVATE_KEY>` with your private key
    api_private_key="<YOUR_PRIVATE_KEY>",
    # Select the development environment. To use the production environment, change the URL to https://api.cobo.com/v2.
    host="https://api.dev.cobo.com/v2",
)
# Enter a context with an instance of the API client
with cobo_waas2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cobo_waas2.PaymentApi(api_client)

    try:
        # List all bank accounts
        api_response = api_instance.list_bank_accounts()
        print("The response of PaymentApi->list_bank_accounts:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling PaymentApi->list_bank_accounts: %s\n" % e)

Authorizations

BIZ-API-KEY
string
header
required

The API key. For more details, refer to API key.

In the API playground, enter your API secret, and your API key will be accordingly calculated.

Response

The request was successful.

bank_account_id
string<uuid>
required

The bank account ID.

Example:

"123e4567-e89b-12d3-a456-426614174003"

info
object
required

JSON-formatted bank account details.

Example:
{
"beneficiary_name": "John Doe",
"beneficiary_address": "123 Main St, Anytown, USA",
"account_number": "4111111111111111",
"bank_name": "ABC Bank",
"bank_country": "USA",
"bank_address": "456 Bank Ave, Cityville, USA",
"swift_or_bic": "ABCDEFGH"
}
created_timestamp
integer

The creation time of the bank account, represented as a UNIX timestamp in seconds.

Example:

1744689600

updated_timestamp
integer

The last update time of the bank account, represented as a UNIX timestamp in seconds.

Example:

1744689600