---
title: "Retrieve a profitloss"
method: GET
path: "/accounting/{connection_id}/profitloss/{id}"
tags: ["accounting", "profitloss"]
---

# Retrieve a profitloss

`GET /accounting/{connection_id}/profitloss/{id}`

## Path parameters

- `connection_id` string, required
- `id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Response `200`

Successful

- AccountingProfitloss
  - `id` string
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `category_ids` string[]
  - `start_at` string, date-time
  - `end_at` string, date-time
  - `name` string
  - `currency` string
  - `income_total_amount` number
  - `net_income_amount` number
  - `expenses_total_amount` number
  - `cost_of_goods_sold_total_amount` number
  - `income_sections` AccountingProfitlossSection[]
    - `section_type` string
    - `section_name` string
    - `total_amount` number
    - `accounts` AccountingProfitlossAccount[]
      - `account_id` string
      - `account_name` string
      - `total_amount` number
      - `transaction_ids` string[]
  - `expenses_sections` AccountingProfitlossSection[]
    - `section_type` string
    - `section_name` string
    - `total_amount` number
    - `accounts` AccountingProfitlossAccount[]
      - `account_id` string
      - `account_name` string
      - `total_amount` number
      - `transaction_ids` string[]
  - `cost_of_goods_sold_sections` AccountingProfitlossSection[]
    - `section_type` string
    - `section_name` string
    - `total_amount` number
    - `accounts` AccountingProfitlossAccount[]
      - `account_id` string
      - `account_name` string
      - `total_amount` number
      - `transaction_ids` string[]
  - `raw` object

## Changes

- **2026-09-09** `3bea28547cc7` — 5 breaking, 5 warning
  - removed the enum value `cost_of_goods_sold` from the property `items/` of the `query` request parameter `fields`
  - removed the enum value `expenses` from the property `items/` of the `query` request parameter `fields`
  - removed the enum value `gross_profit_amount` from the property `items/` of the `query` request parameter `fields`
  - removed the enum value `income` from the property `items/` of the `query` request parameter `fields`
  - …6 more

[Change history](https://skmtc.dev/unified/apis/unified-to-api/changes/accounting/:connection_id/profitloss/:id/get.md)

---

[API](https://skmtc.dev/unified/apis/unified-to-api.md) · [All operations](https://skmtc.dev/unified/apis/unified-to-api/llms.txt) · [OpenAPI document](https://skmtc.dev/unified/apis/unified-to-api/revisions/e0a7ff925921?raw)
