---
title: "Profit and Loss"
method: POST
path: "/v6/reports/profitAndLoss"
tags: ["Reports"]
---

# Profit and Loss

`POST /v6/reports/profitAndLoss`

Generate a Profit and Loss Statement

## Request body

- ProfitAndLossRequestDto
  - `exportType` 'JSON' | 'CSV' — Export format for the report
  - `recipients` Recipients — Email recipients for the report
    - `emails` string[] — Primary email recipients
  - `accountingMethod` 'ACCRUAL' | 'CASH' — Accounting method to generate the report in. Defaults to the company's configured accounting method.
  - `filter` FullDateRangeFilters — Filters to apply to the report
    - `beginDate` string, date — Beginning date for the report
    - `endDate` string, date — Ending date for the report
    - `dimensionValues` DimensionValueFiltering[]
      - `dimensionId` string — Dimension ID to filter by
      - `dimensionValueIds` string[] — List of dimension value IDs under dimensionId to filter by
    - `customerIds` string[] — List of customer IDs to filter by
  - `grouping` PeriodWithDimensionValueGrouping — Grouping options for the report
    - `period` 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'YEARLY' | 'NONE' — Date period to group the report by
    - `dimensionId` string — Dimension ID to group the report by
    - `dateGrouping` 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'YEARLY' | 'NONE'

## Response `200`

Success

- SuccessResponseReportDtoAccountingReportDtoProfitAndLossJson
  - `result` 'SUCCESS' | 'FAILURE' — The result of the action performed.
  - `data` ReportDtoAccountingReportDtoProfitAndLossJson — The data generated by the action performed.
    - `json` AccountingReportDtoProfitAndLossJson[] — Report data in JSON format
      - `name` string — Section name
      - `period` Period — Period applicable for this section
        - `beginDate` string, date
        - `endDate` string, date
      - `data` ProfitAndLossJson[] — Report data
        - `name` string — Section name
        - `groupingEntity` GroupingEntity, nullable — Grouped entity for this section, if applicable
          - `id` string
          - `name` string
        - `netIncome` integer — Net income for the period
        - `income` ProfitAndLossSection, nullable — Other expenses section
          - `name` string — Section name
          - `total` integer — Total amount for this section
          - `children` ProfitAndLossLineItem[] — Child line items
            - `name` string — A user-friendly name of this line item
            - `accountId` string, nullable — Id of the associated account, referencing an account in the Chart of Accounts
            - `accountNo` string — Number of the associated account
            - `total` integer — Line item total amount
            - `children` ProfitAndLossLineItem[] — Child line items for this entry
        - `cogs` ProfitAndLossSection, nullable — Other expenses section
          - `name` string — Section name
          - `total` integer — Total amount for this section
          - `children` ProfitAndLossLineItem[] — Child line items
            - `name` string — A user-friendly name of this line item
            - `accountId` string, nullable — Id of the associated account, referencing an account in the Chart of Accounts
            - `accountNo` string — Number of the associated account
            - `total` integer — Line item total amount
            - `children` ProfitAndLossLineItem[] — Child line items for this entry
        - `grossProfit` integer, nullable — Gross profit
        - `profitMargin` number, nullable — Profit margin percentage
        - `expenses` ProfitAndLossSection, nullable — Other expenses section
          - `name` string — Section name
          - `total` integer — Total amount for this section
          - `children` ProfitAndLossLineItem[] — Child line items
            - `name` string — A user-friendly name of this line item
            - `accountId` string, nullable — Id of the associated account, referencing an account in the Chart of Accounts
            - `accountNo` string — Number of the associated account
            - `total` integer — Line item total amount
            - `children` ProfitAndLossLineItem[] — Child line items for this entry
        - `netOperatingIncome` integer, nullable — Net operating income
        - `operatingMargin` number, nullable — Operating margin percentage
        - `otherIncome` ProfitAndLossSection, nullable — Other expenses section
          - `name` string — Section name
          - `total` integer — Total amount for this section
          - `children` ProfitAndLossLineItem[] — Child line items
            - `name` string — A user-friendly name of this line item
            - `accountId` string, nullable — Id of the associated account, referencing an account in the Chart of Accounts
            - `accountNo` string — Number of the associated account
            - `total` integer — Line item total amount
            - `children` ProfitAndLossLineItem[] — Child line items for this entry
        - `otherExpenses` ProfitAndLossSection, nullable — Other expenses section
          - `name` string — Section name
          - `total` integer — Total amount for this section
          - `children` ProfitAndLossLineItem[] — Child line items
            - `name` string — A user-friendly name of this line item
            - `accountId` string, nullable — Id of the associated account, referencing an account in the Chart of Accounts
            - `accountNo` string — Number of the associated account
            - `total` integer — Line item total amount
            - `children` ProfitAndLossLineItem[] — Child line items for this entry
    - `url` string — URL to download the csv report
    - `meta` ReportMeta — Metadata about the generated report
      - `title` string — Report title
      - `generatedOn` string, date-time — Date and time when the report was generated
      - `generatedBy` string — User who generated the report
      - `footerLine` string — Footer line for the report

## Other responses

- `400` — Bad request
- `401` — Not authenticated
- `403` — Not authorized
- `404` — Endpoint not found
- `500` — Internal server error

---

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