---
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`

## Request

- Base URL: `https://api.app.lastaccountingcompany.com/portal`
- URL: `https://api.app.lastaccountingcompany.com/portal/dimensions/pnl`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lastaccountingcompany/apis/lac-customer-api/docs/dimensions/pnl/get.ts> (a function with typed inputs; its response is checked against the schema)

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.dev/lastaccountingcompany/apis/lac-customer-api.md) - [All operations](https://skmtc.dev/lastaccountingcompany/apis/lac-customer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lastaccountingcompany/apis/lac-customer-api/revisions/52e277b4f031?raw)
