List books
https://api.light.inc/v1/books
Returns the company's books with the entities that post in each, the default book first and the others by name. Each ledger account belongs to one book.
Permissions checked: ledger-accounts:choose and ledger-accounts:read. What a call needs depends on the caller, the record and the request.
Authorization
Send one of these on every request. See Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Query parameters
-
limitinteger · int32Maximum number of items to return. Default is 50, maximum is 200.
-
cursorstringThe cursor position to start returning results from. Omit it, or provide
0, for the initial request. For subsequent requests, usenextCursorfrom the previous response to navigate. Cursor values are opaque and should not be constructed manually. This endpoint paginates by cursor only and has nooffsetparameter.
Response
-
recordsarray of objectList of records for the current page
-
idstring · uuid -
namestring -
groupCurrencystringThe currency the book keeps its group amounts in
-
isDefaultbooleanWhether this is the company's default book. Every company has exactly one
-
entitiesarray of objectThe company entities that post in this book
-
companyEntityIdstring · uuid -
localCurrencystringThe currency the entity's amounts are kept in within this book
-
isPrimarybooleanWhether this book is the entity's primary book
-
-
-
hasMorebooleanBoolean flag indicating if there are more records available
-
nextCursorstringCursor for fetching the next page
-
prevCursorstringCursor for fetching the previous page