API Docs / Operations / Client - Books / Get Books Profit And Loss

Get Books Profit And Loss

GET /tenants/{tenant}/clients/{clientCode}/books/profit-and-loss

Runs a profit and loss report over the client's own books for the period given. Name the period as a 'dateRange' (a PresetDateRange), as dateRange=CustomDateRange with 'dateFrom' and 'dateTo' (inclusive), or as bare 'dateFrom' and 'dateTo' with no dateRange at all. Sections come back as the platform grouped them rather than normalised into fixed totals. Some platforms offer no such report and answer with 400 saying so.

Parameters

NameTypeDescription
tenant* path string

The Tenant.Code

The Tenant.Code

clientCode* path string
dateFrom query string (date)
dateRange query enum

ThisWeek NextWeek Last7Days Next7Days Last30Days Next30Days PreviousMonth ThisMonth NextMonth PreviousQuarter ThisQuarter NextQuarter PreviousYear ThisYear NextYear YearToDate PreviousTaxYear ThisTaxYear NextTaxYear TaxYearToDate Today PreviousWeek CustomDateRange

ThisWeek NextWeek Last7Days Next7Days Last30Days Next30Days PreviousMonth ThisMonth NextMonth PreviousQuarter ThisQuarter NextQuarter PreviousYear ThisYear NextYear YearToDate PreviousTaxYear ThisTaxYear NextTaxYear TaxYearToDate Today PreviousWeek CustomDateRange

dateTo query string (date)

Responses

400 Bad Request
401 Unauthorized – Invalid or missing API key
404 Not Found