Profit and Loss

GET/v1/operations/reports.profit_and_loss

The organisation's Profit and Loss (income statement), read live from Xero or QuickBooks. Choose the period with period (this_month, last_month, this_quarter, last_quarter, ytd, last_year), or set period to custom with from and to. To compare, set comparePeriods (1 to 12) and compareBy (month or year): comparePeriods 2 with compareBy year gives this period and the same period in each of the two years before. The response lists the periods once (current first) and every section, group and account with one amount per period, in that order, plus Gross Profit and Net Profit.

Scope
synced.read · reads only
Roles
Super admin, Admin, Submitter, Custom (by default; an admin can change this per operation)
MCP tool
reports_profit_and_loss

Request

Send the token as Authorization: Bearer. A token approved for several organisations also sends Synced-Organisation: {id} (see Organisations).

Query parameters

NameTypeDescription
periodstringPeriodA preset period, or custom with from and to.

one of this_month, last_month, this_quarter, last_quarter, ytd, last_year, custom · default "this_month"

fromstringFromWith period custom: the first day, yyyy-MM-dd.
tostringToWith period custom: the last day, yyyy-MM-dd.
comparePeriodsintegerComparison periodsHow many earlier periods to compare with.

default 0 · min 0 · max 12

compareBystringCompare bymonth: each comparison is the month before. year: the same period a year earlier.

one of month, year · default "month"

Response

200 with a JSON body. 401 without a valid token, 403 when the scope, role or organisation does not allow it, 429 when rate limited (see Errors and limits).

NameTypeDescription
reportstringReport
organisationstringOrganisation
currencystringCurrency
periodstringPeriod preset
compareBystringCompared by
comparePeriodsintegerComparison periods
periodsobject[]Periods (current first)
labelstring
fromstring (date)
tostring (date)
sectionsobject[]Sections
titlestring
totalnumber[]
groupsobject[]
titlestring
totalnumber[]
accountsobject[]
namestring
amountsnumber[]
summaryobject[]Summary lines
labelstring
amountsnumber[]

Example

curl -X GET 'https://api.syncedhq.com/v1/operations/reports.profit_and_loss' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Try it

Try it

Sign in to send this request as yourself. You choose the organisations on Synced's consent screen; the token stays in this tab and expires within an hour.

A preset period, or custom with from and to.

With period custom: the first day, yyyy-MM-dd.

With period custom: the last day, yyyy-MM-dd.

How many earlier periods to compare with.

month: each comparison is the month before. year: the same period a year earlier.

Request
curl -X GET 'https://api.syncedhq.com/v1/operations/reports.profit_and_loss' \
  -H 'Accept: application/json'
Response
Sign in, then send the request.