A cash book for recording receipts and payments against (via a bank account).
A unique Id for the cash book.
The cash books code.
The date/time the cash book was created.
The date/time the cash book was modified.
The name of the cash book.
{
"_id": "6932cde23550e2b34494ab9d",
"code": "1000",
"created": "2025-12-05 12:19:46",
"modified": "2025-12-05 12:19:46",
"name": "Douglas House CB"
}
Return a list of cash books 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; code, name.
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 cash books.
var cashBooks = apiClient.Request(
HttpMethod.Get,
"cash-books",
new MultiValueDict()
.Add("attributes", "name", "code")
);
<?php
$cash_books = $api_client->request(
'GET',
'cash-books',
[
'attributes'=>['name', 'code']
]
);
cash_books = api_client(
'GET',
'cash-books',
params={
'attributes': ['name', 'code']
}
)
cash_books = api_client.request(
'GET',
'cash-books',
params: {
'attributes' => ['name', 'code']
}
)
{
"item_count": 3,
"items": [
{
"_id": "6932cde23550e2b34494ab9b",
"code": "3000",
"name": "Direct debit"
},
{
"_id": "6932cde23550e2b34494ab9d",
"code": "1000",
"name": "Douglas House CB"
},
{
"_id": "6932cde23550e2b34494ab9f",
"code": "2000",
"name": "Upton Court CB"
}
],
"page": 1,
"page_count": 1,
"per_page": 10
}
var cash_book = apiClient.Request(
HttpMethod.Get,
$"cash-books/{cashBookId}"
);
<?php
$cash_book = $api_client->request(
'GET',
'cash-books/' . $cash_book_id
);
cash_book = api_client('GET', f'cash-books/{cash_book_id}')
cash_book = api_client.request('GET', "cash-books/#{cash_book_id}")
{
"_id": "6932cde23550e2b34494ab9d",
"code": "1000",
"created": "2025-12-05 12:19:46",
"modified": "2025-12-05 12:19:46",
"name": "Douglas House CB"
}