Live webinar What's new in Sodium: Information Requests, plus Q&A. Thu 19 Nov, 12 noon Information Requests + Q&A, Thu 19 Nov Reserve your place

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 'financialPeriod' (one of the client's own financial years, worked out from their key dates, or the tax year when they have no year end), 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.

Requires: ViewAll on ClientBooks.

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 TodayOnwards Last12Months Last12FullMonths CustomDateRange

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

dateTo query string (date)
financialPeriod query enum

FinancialYearToDate LastFinancialYear

FinancialYearToDate LastFinancialYear

Responses

400 Bad Request
401 Unauthorized – Invalid or missing API key
403 Forbidden – the caller lacks the permissions this endpoint requires; the detail lists every one missing
application/problem+json
404 Not Found