---
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` AccountingProfitlossCategory[] — @deprecated – use income_sections instead
    - `name` string
    - `amount` number
    - `sub_items` AccountingProfitlossSubcategory[]
      - `name` string
      - `amount` number
      - `transaction_ids` string[]
  - `expenses` AccountingProfitlossCategory[] — @deprecated – use expenses_sections instead
    - `name` string
    - `amount` number
    - `sub_items` AccountingProfitlossSubcategory[]
      - `name` string
      - `amount` number
      - `transaction_ids` string[]
  - `cost_of_goods_sold` AccountingProfitlossCategory[] — @deprecated – use cost_of_goods_sold_sections instead
    - `name` string
    - `amount` number
    - `sub_items` AccountingProfitlossSubcategory[]
      - `name` string
      - `amount` number
      - `transaction_ids` string[]
  - `gross_profit_amount` number
  - `net_profit_amount` number
  - `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

---

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