---
title: "Retrieve a profit and loss report"
method: GET
path: "/platform/v1/entities/{entityId}/reports/profit-and-loss"
tags: ["reports"]
---

# Retrieve a profit and loss report

`GET /platform/v1/entities/{entityId}/reports/profit-and-loss`

Returns the entity's profit and loss for the period between `startDate` and `endDate` (inclusive), on the basis given by `ledgerBasis`. Each section carries its total and its account lines, already flattened out of the nested report groups.

## Path parameters

- `entityId` string, uuid, required

## Query parameters

- `startDate` string, required
- `endDate` string, required
- `ledgerBasis` 'cash' | 'accruals'
- `groupBy` 'total' | 'week' | 'month' | 'quarter' | 'year'

## Response `200`

200

- object
  - `report` object, required
    - `endDate` string, required
    - `entityId` string, uuid, required
    - `groupBy` 'total' | 'week' | 'month' | 'quarter' | 'year', required
    - `ledgerBasis` 'cash' | 'accruals', required
    - `periods` object[], required
      - `endDate` string, required
      - `startDate` string, required
    - `sections` object[], required
      - `lines` object[], required
        - `accountCode` string, nullable, required
        - `accountName` string, required
        - `amount` number, required
        - `amountsByPeriod` number[], required
      - `section` 'income' | 'cogs' | 'grossProfit' | 'expenses' | 'netOperatingIncome' | 'otherIncome' | 'otherExpenses' | 'netOtherIncome' | 'netIncome' | 'cashBalance', required
      - `total` number, required
      - `totalsByPeriod` number[], required
    - `startDate` string, required

## Other responses

- `400` — 400
- `401` — 401
- `404` — 404
- `429` — 429

---

[API](https://skmtc.net/kick/apis/kick-platform-api.md) · [All operations](https://skmtc.net/kick/apis/kick-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kick/kick-platform-api/revisions/e4ceb0dc32d4/schema)
