Skip to main content
POST
/
core
/
companies
/
{company_id}
/
bank-accounts
Create Bank Account
curl --request POST \
  --url https://api.integrations.commenda.io/v4/core/companies/{company_id}/bank-accounts \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '
{
  "data": {
    "institution_name": "Example Bank",
    "account_name": "Savings Account",
    "account_number": "1234567890",
    "balance": 1000,
    "currency_id": "USD",
    "updated_at": "2024-01-25T10:30:00Z"
  }
}
'
{
  "data": {
    "rootfi_id": 123,
    "rootfi_deleted_at": null,
    "rootfi_created_at": "2024-01-25T09:00:00Z",
    "rootfi_updated_at": "2024-01-25T09:30:00Z",
    "rootfi_company_id": 456,
    "platform_id": "123456_1",
    "institution_name": "RootFi Investment Bank",
    "account_name": "RootFi Asset Account",
    "account_number": "xxxx1234",
    "balance": 5500.75,
    "currency_id": "USD",
    "category": "checking",
    "updated_at": "2024-01-25T10:30:00Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://integrations.docs.commenda.io/llms.txt

Use this file to discover all available pages before exploring further.

The Bank Accounts Data Model streamlines access of bank account information across various accounting platforms, providing a consistent and unified representation of bank account data.

Additional Required Fields

To successfully create a bank account, certain fields must be included in the raw_data object of the request body. The required fields are as follows:
IntegrationFieldDescription
MYOB_BUSINESSnominal_codeThe nominal code of the bank account.
MYOB_BUSINESSdescriptionThe description of the bank account.
MYOB_BUSINESSparent_account_idThe parent account ID of the bank account.
MYOB_BUSINESStax_idThe tax ID of the bank account.
SAGE_ZA_CLOUD_ACCOUNTINGsub_category_idThe sub-category ID associated to the account.

Authorizations

api_key
string
header
required

Path Parameters

company_id
integer
required

RootFi company ID for the company connection to read or write.

Body

application/json
data
accountingBankAccountFields · object
required

Single record for synchronous writes (default). For two or more records, pass an array and set query parameter run_async=true.

Response

data
accountingBankAccountObject · object

The data of the created bank transaction

sync_id
string | null

The sync id of the request