A company within the account (some care provider are structured as multiple companies).
A unique Id for the company.
The date/time the company was created.
A unique legal entity code for the company.
The date/time the company was modified.
The name of the company.
{
"_id": "6931813005ceb967bdd0fdc1",
"created": "2025-12-04 12:40:16",
"legal_entity_code": "100",
"modified": "2025-12-04 12:40:16",
"name": "Marshall Care Limited"
}
Return a list of companies 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; legal_entity_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 companies.
var companies = apiClient.Request(
HttpMethod.Get,
"companies",
new MultiValueDict()
.Add("attributes", "name", "legal_entity_code")
);
<?php
$companies = $api_client->request(
'GET',
'companies',
[
'attributes'=>['name', 'legal_entity_code']
]
);
companies = api_client(
'GET',
'companies',
params={
'attributes': ['name', 'legal_entity_code']
}
)
companies = api_client.request(
'GET',
'companies',
params: {
'attributes' => ['name', 'legal_entity_code']
}
)
{
"item_count": 1,
"items": [
{
"_id": "6931813005ceb967bdd0fdc1",
"legal_entity_code": "100",
"name": "Marshall Care Limited"
}
],
"page": 1,
"page_count": 1,
"per_page": 10
}
var company = apiClient.Request(
HttpMethod.Get,
$"companies/{companyId}"
);
<?php
$company = $api_client->request(
'GET',
'companies/' . $company_id
);
company = api_client('GET', f'companies/{company_id}')
company = api_client.request('GET', "companies/#{company_id}")
{
"_id": "6931813005ceb967bdd0fdc1",
"created": "2025-12-04 12:40:16",
"legal_entity_code": "100",
"modified": "2025-12-04 12:40:16",
"name": "Marshall Care Limited"
}