---
title: "Get Profit & Loss by one dimension axis"
method: GET
path: "/dimensions/pnl"
tags: ["Dimensions"]
---

# Get Profit & Loss by one dimension axis

`GET /dimensions/pnl`

Named values plus the explicit Unallocated row tie to ordinary posted, live P&L for the same dates.

## Query parameters

- `customer_id` string
- `axis_id` string, required
- `date_from` string, date
- `date_to` string, date

## Response `200`

Ledger-backed dimension P&L.

- DimensionProfitAndLoss
  - `axis_id` string, required
  - `axis_name` string, required
  - `date_from` string, date
  - `date_to` string, date
  - `rows` object[], required
    - `value_id` string, required — Canonical value ID, or `__unallocated__`.
    - `value_code` string, required
    - `value_name` string, required
    - `amount_cents` integer, required
    - `unallocated` boolean
  - `total_cents` integer, required

## Other responses

- `401` — Missing or invalid bearer token.
- `403` — Insufficient scope or role — e.g. a read-scoped key on a mutating method, or an API key on an admin/approver-only endpoint.

---

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