---
title: "Get the trial balance of a company"
method: GET
path: "/api/external/firm/v1/companies/{company_id}/trial_balance"
tags: ["Trial balance"]
deprecated: true
---

# Get the trial balance of a company

`GET /api/external/firm/v1/companies/{company_id}/trial_balance`

## Request

- Base URL: `https://app.pennylane.com`
- URL: `https://app.pennylane.com/api/external/firm/v1/companies/{company_id}/trial_balance`
- Auth: OAuth 2
  - Authorization code: `https://app.pennylane.com/oauth/authorize`
  - Token URL: `https://app.pennylane.com/oauth/oauth/token` scopes: `trial_balance:readonly`

> **Deprecated.**

> ⚠️ This endpoint is deprecated. Use [Get the trial balance](https://pennylane.readme.io/reference/gettrialbalance) from the Company API v2 instead. Your firm token can call it for any company of your firm through the `X-Company-Id` header. [Learn how to use your firm token with the Company API v2](https://pennylane.readme.io/docs/firm-api#using-your-firm-token-with-the-company-api-v2).

This endpoint returns the trial balance of the company for the given period.


> ℹ️
> This endpoint requires the following scope: `trial_balance:readonly`

## Path parameters

- `company_id` integer, required

## Query parameters

- `period_start` string, required
- `period_end` string, required
- `is_auxiliary` boolean
- `page` integer
- `per_page` integer

## Response `200`

Returns a list of balances grouped by ledger account.

- object
  - `items` object[], required
    - `number` string, required: Ledger account number
    - `label` string, required: Ledger account label
    - `debits` string, required: Ledger account debits
    - `credits` string, required: Ledger account credits
    - `formatted_number` string, required: Formatted ledger account number
  - `total_pages` integer, required: The total number of pages available
  - `current_page` integer, required: The current page returned
  - `total_items` integer, required: The total number of items available
  - `per_page` integer, required: The number of items per page

## Other responses

- `400`: Bad request
- `401`: Access token is missing or invalid
- `403`: Access to this resource forbidden
- `404`: The resource was not found
- `422`: Unprocessable content

## Changes

- **2026-11-03** `256ecc544f85`: 1 info
  - endpoint deprecated

[Operation history](https://skmtc.dev/pennylane/apis/referentials/changes/api/external/firm/v1/companies/:company_id/trial_balance/get.md)

---

[API](https://skmtc.dev/pennylane/apis/referentials.md) - [All operations](https://skmtc.dev/pennylane/apis/referentials/llms.txt) - [OpenAPI document](https://skmtc.dev/pennylane/apis/referentials/revisions/256ecc544f85?raw)
