A bank account managed under the account, typically associated with a location (care home).
A unique Id for the bank account.
The bank account's name eg John Smith.
A unique account number.
The name of the bank the account is held with.
The cash book the bank account is associated with.
The company the bank account is associated with.
The date/time the bank account was created.
A description of the bank account (e.g. Current account).
The location the bank account is associated with.
The date/time the bank account was modified.
The sort code of the bank account.
{
"_id": "6932cdf13550e2b34494c257",
"account_name": "DOUGLAS COURT",
"account_number": "12345678",
"bank_name": "HSBC",
"cash_book": "6932cde23550e2b34494ab9d",
"company": null,
"created": "2025-12-05 12:20:01",
"description": "Current",
"location": "6932cde23550e2b34494abad",
"modified": "2025-12-05 12:20:01",
"sort_code": "121212"
}
Return a list of bank accounts setup for your account on CareHQ.
['_id']
A list of attributes to include for fetched objects.
A filter that accepts a list of Ids and filters the items returned to those with an Id in the list.
A filter that accepts a date/time and filters the items returned to those modified after the date/time.
A filter that accepts a date/time and filters the items returned to those modified before the date/time.
A case insensitive keyword filter applied to the following fields; account_name, account_number, archived, bank_name, cash_book, company, description, location, sort_code.
1
The page number to fetch.
10
The number of items to return per page.
_id
A list of fields the returned items can be sorted by. Fields prefixed with minus (-) sign are sorted in descending order.
Returns a page of bank accounts.
var bankAccounts = apiClient.Request(
HttpMethod.Get,
"bank-accounts",
new MultiValueDict()
.Add("attributes", "name", "description")
);
<?php
$bank_accounts = $api_client->request(
'GET',
'bank-accounts',
[
'attributes'=>['name','description']
]
);
bank_accounts = api_client(
'GET',
'bank-accounts',
params={
'attributes': ['name','description']
}
)
bank_accounts = api_client.request(
'GET',
'bank-accounts',
params: {
'attributes' => ['name','description']
}
)
{
"item_count": 3,
"items": [
{
"_id": "6932cdf13550e2b34494c255",
"description": "Direct debit"
},
{
"_id": "6932cdf13550e2b34494c257",
"description": "Current"
},
{
"_id": "6932cdf13550e2b34494c259",
"description": "Current"
}
],
"page": 1,
"page_count": 1,
"per_page": 10
}
var bankAccount = apiClient.Request(
HttpMethod.Get,
$"bank-accounts/{bankAccountId}"
);
<?php
$bank_account = $api_client->request(
'GET',
'bank-accounts/' . $bank_account_id
);
bank_account = api_client('GET', f'bank-accounts/{bank_account_id}')
bank_account = api_client.request('GET', "bank-accounts/#{bank_account_id}")
{
"_id": "6932cdf13550e2b34494c257",
"account_name": "DOUGLAS COURT",
"account_number": "12345678",
"bank_name": "HSBC",
"cash_book": "6932cde23550e2b34494ab9d",
"company": null,
"created": "2025-12-05 12:20:01",
"description": "Current",
"location": "6932cde23550e2b34494abad",
"modified": "2025-12-05 12:20:01",
"sort_code": "121212"
}