---
title: "Retrieves a ProfitAndLoss resource."
method: GET
path: "/profit_and_loss"
tags: ["ProfitAndLoss"]
---

# Retrieves a ProfitAndLoss resource.

`GET /profit_and_loss`

## Request

- Base URL: `https://example.myintranetapps.com/api`
- URL: `https://example.myintranetapps.com/api/profit_and_loss`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/bossinsights/apis/boss-insights/docs/profit_and_loss/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves a ProfitAndLoss resource.

## Query parameters

- `start` string, date-time, required
- `end` string, date-time, required
- `accounting_method` 'cash' | 'accrual', required

## Response `200`

ProfitAndLoss resource

- ProfitAndLoss
  - `id` string
  - `integration` string: The key of the integration source e.g. "quickbooks", or "xero"
  - `reportTitle` string, nullable: e.g: ProfitAndLoss
  - `companyName` string, nullable: e.g: the company legal name
  - `columns` string[], nullable: columns in profit and loss statement
  - `rows` string[], nullable: rows in profit and loss statement
  - `accountingMethod` string, nullable: accounting method: a set of rules under which revenues and expenses are reported in financial statements e.g: cash
  - `start` string, date-time, nullable: start datetime of the profit and loss statement coverage
  - `end` string, date-time, nullable: end datetime of the profit and loss statement coverage
  - `currencyCode` string, nullable
  - `totalIncome` integer, nullable: Total income in cents
  - `totalExpenses` integer, nullable: Total expenses in cents

## Other responses

- `404`: Resource not found

---

[API](https://skmtc.dev/bossinsights/apis/boss-insights.md) - [All operations](https://skmtc.dev/bossinsights/apis/boss-insights/llms.txt) - [OpenAPI document](https://skmtc.dev/bossinsights/apis/boss-insights/revisions/d08a107895ad?raw)
