# Books

Group: Accounting

[Open in the interactive reference](https://lensing.ai/api-docs/lensing/v1/groups/accountingBooks)

An accounting book is a self-contained ledger within the tenant, to which journal entries, accounts, and legal entities are assigned.

## Endpoints

- [Books](https://lensing.ai/api-docs/reference/lensing/v1/endpoints/books.html): `GET /accounting/books`
- [Create an accounting book](https://lensing.ai/api-docs/reference/lensing/v1/endpoints/createBook.html): `POST /accounting/books`
- [Assign a legal entity to an accounting book](https://lensing.ai/api-docs/reference/lensing/v1/endpoints/createBookEntityAssignment.html): `POST /accounting/books/entity-assignments`
- [Retrieve an assignment of a legal entity to an accounting book](https://lensing.ai/api-docs/reference/lensing/v1/endpoints/getBookEntityAssignment.html): `GET /accounting/books/entity-assignments/{id}`
- [Update an assignment of a legal entity to an accounting book](https://lensing.ai/api-docs/reference/lensing/v1/endpoints/updateBookEntityAssignment.html): `PATCH /accounting/books/entity-assignments/{id}`
- [Remove a legal entity from an accounting book](https://lensing.ai/api-docs/reference/lensing/v1/endpoints/deleteBookEntityAssignment.html): `DELETE /accounting/books/entity-assignments/{id}`
- [List an accounting book's legal entities](https://lensing.ai/api-docs/reference/lensing/v1/endpoints/listBookEntityAssignments.html): `GET /accounting/books/{bookId}/entity-assignments`
- [Retrieve an accounting book](https://lensing.ai/api-docs/reference/lensing/v1/endpoints/getBook.html): `GET /accounting/books/{id}`
- [Update an accounting book](https://lensing.ai/api-docs/reference/lensing/v1/endpoints/updateBook.html): `PATCH /accounting/books/{id}`
- [Delete an accounting book](https://lensing.ai/api-docs/reference/lensing/v1/endpoints/deleteBook.html): `DELETE /accounting/books/{id}`
