Entities
Entities are the companies a business keeps its books for: clinics, properties or subsidiaries under one login, each with its own balance sheet. Read-only; entities are created and archived in the app. Requires entities:read (or the broad reports scope).
The list carries multi_entity_enabled. When it is true, every journal entry line names its entity_id; when it is false, the company has one default entity and lines can leave it out. The default entity comes first, then the rest by name. An archived entity has active false and still answers by id.
The Entity Object
| Field | Type | Description |
|---|---|---|
| id | uuid | Entity UUID |
| object | entity | Always 'entity' |
| name | string | Entity name |
| legal_name | string | null | Legal name, if different from the name |
| abbreviation | string | null | Short code shown on reports (e.g. 'CLA') |
| active | boolean | False for an archived entity |
| default | boolean | Whether this is the company's default entity |
Endpoints
/api/v1/entitiesList entities
Returns the company's entities, the default first, then by name. multi_entity_enabled says whether the company keeps several: when true, every journal entry line names its entity.
Scopes: entities:read or reports·operationId: listEntities
Path & Query Parameters
| Parameter | Type | Description |
|---|---|---|
| active | string | 'true' for active entities only, 'false' for archived only |
| page | integer | Page number (default 1) |
| per_page | integer | Results per page (default 50, max 200) |
curl https://imprest.ai/api/v1/entities \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"{
"entities": [
{
"id": "de1bcf26-486e-5a7f-ab1b-97d51478637b",
"object": "entity",
"name": "Test Business",
"legal_name": null,
"abbreviation": null,
"active": true,
"default": true
},
{
"id": "3c69a03e-b84c-416b-a9ff-bd3d177a3e2c",
"object": "entity",
"name": "Alpha Clinic",
"legal_name": "Alpha Clinic PLLC",
"abbreviation": null,
"active": true,
"default": false
}
],
"multi_entity_enabled": true,
"pagination": {
"page": 1,
"per_page": 50,
"total_count": 3,
"total_pages": 1
}
}Response fields
| Parameter | Type | Description |
|---|---|---|
| entitiesrequired | object[] | Array of entity objects |
| idrequired | uuid | Entity UUID |
| objectrequired | entity | Always 'entity' |
| namerequired | string | Entity name |
| legal_namerequired | string | null | Legal name, if different from the name |
| abbreviationrequired | string | null | Short code shown on reports (e.g. 'CLA') |
| activerequired | boolean | False for an archived entity |
| defaultrequired | boolean | Whether this is the company's default entity |
| multi_entity_enabledrequired | boolean | Whether the company keeps several entities |
| paginationrequired | object | Where this page sits in the whole list |
| pagerequired | integer | This page's number, from 1 |
| per_pagerequired | integer | Results per page (1-200, default 50) |
| total_countrequired | integer | Results across every page |
| total_pagesrequired | integer | Pages in the whole list (at least 1) |
Errors
401No valid access token (invalid_token).403The token or the person behind it can't do this: insufficient_scope names the scope the token lacks; forbidden means the person's role doesn't allow it.422A malformed active filter (invalid_filter)
Every error uses the same envelope: error, message and error_code.
/api/v1/entities/:idShow an entity
Returns one entity, archived or not.
Scopes: entities:read or reports·operationId: getEntity
Path & Query Parameters
| Parameter | Type | Description |
|---|---|---|
| idrequired | uuid | Entity UUID |
curl https://imprest.ai/api/v1/entities/de1bcf26-486e-5a7f-ab1b-97d51478637b \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"{
"entity": {
"id": "de1bcf26-486e-5a7f-ab1b-97d51478637b",
"object": "entity",
"name": "Test Business",
"legal_name": null,
"abbreviation": null,
"active": true,
"default": true
}
}Response fields
| Parameter | Type | Description |
|---|---|---|
| entityrequired | object | The entity |
| idrequired | uuid | Entity UUID |
| objectrequired | entity | Always 'entity' |
| namerequired | string | Entity name |
| legal_namerequired | string | null | Legal name, if different from the name |
| abbreviationrequired | string | null | Short code shown on reports (e.g. 'CLA') |
| activerequired | boolean | False for an archived entity |
| defaultrequired | boolean | Whether this is the company's default entity |
Errors
401No valid access token (invalid_token).403The token or the person behind it can't do this: insufficient_scope names the scope the token lacks; forbidden means the person's role doesn't allow it.404Entity not found (not_found)
Every error uses the same envelope: error, message and error_code.