Retrieve an assignment of a legal entity to an accounting book

Operation ID: getBookEntityAssignment

Group: Accounting › Books

Open in the interactive reference

GET /accounting/books/entity-assignments/{id}

Read-only: Reads and returns; changes nothing.

Retrieves an assignment of a legal entity to an accounting book: the chart of accounts, fiscal calendar and currency the entity uses in that book.

Parameters

Name In Type Required Description
Api-Version header string · v1 yes The API version this request targets, named by its public identifier. Required on every request; omitting it, or naming a version this company does not have, is answered with 400. This document describes version v1.
id path string yes The unique identifier for the entity assignment to return.

Response

200 Success

Under data (getBookEntityAssignmentOutput):

Field Type Required Description
id string yes The unique identifier for the entity assignment.
bookId string yes The accounting book. See id on GET accounting/books/:id.
bookName string no The display name of the accounting book.
entityId string yes The legal entity assigned to the book. See id on GET base/entities.
entityName string no The name of the assigned legal entity.
chartOfAccountsId string no The chart of accounts used for this entity on this book. Absent when none is assigned. See id on GET accounting/chart-of-accounts/:id.
chartOfAccountsName string no The name of the chart of accounts. Absent when none is assigned.
fiscalCalendarId string no The fiscal calendar used for this entity on this book. Absent when none is assigned. See id on GET accounting/fiscal-calendars/:id.
fiscalCalendarName string no The name of the fiscal calendar. Absent when none is assigned.
currency string no The currency for this entity on this book. Format ISO 4217, for example 'USD'. Absent when none is set.
lastModifiedDate date-time yes When the entity assignment last changed. ISO 8601 UTC (YYYY-MM-DDTHH:mm:ss.sssZ).
{
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "bookId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "bookName": "<bookName>",
    "entityId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "entityName": "<entityName>",
    "chartOfAccountsId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "chartOfAccountsName": "<chartOfAccountsName>",
    "fiscalCalendarId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "fiscalCalendarName": "<fiscalCalendarName>",
    "currency": "<currency>",
    "lastModifiedDate": "2026-01-15T09:30:00.000Z"
  },
  "diagnostics": [
    {
      "code": "<code>",
      "message": "<message>",
      "severity": "error",
      "path": [
        "<path>"
      ],
      "details": "<details>"
    }
  ]
}

Errors

Code Status
NOT_FOUND 400

Statuses