---
title: "Transaction detail by account"
method: GET
path: "/reports/transaction-detail"
tags: ["Reports"]
---

# Transaction detail by account

`GET /reports/transaction-detail`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/reports/transaction-detail`
- Auth: one of:
  - HTTP bearer and API key in header `x-organization-id`
  - HTTP bearer and API key in header `x-organization-id`

Every Profit & Loss line in the period grouped by income and expense account (sections income, expenses, and Ask Client accounts), with date, type, entry number, journalEntryId, customer or vendor name (the assigned contact, never the raw bank text), bankPayee (the raw bank payee text), memo, and amountCents. Each account totalCents equals the Profit & Loss amount for the same dates and basis; netIncomeCents equals Profit & Loss net income. accountId limits the report to one account (the Profit & Loss drill-down) and omits net income. Amounts are integer cents with income and expense both positive.

## Query parameters

- `basis` 'accrual' | 'cash'
- `startDate` string, date
- `endDate` string, date
- `accountId` string, uuid

## Response `200`

Transaction detail grouped by section and account

## Other responses

- `400`: startDate is after endDate
- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/9a8269f0a586?raw)
