GET
/
api
/
external
/
v2
/
trial_balance
Get the trial balance
curl --request GET \
  --url https://app.pennylane.com/api/external/v2/trial_balance \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "number": "512",
      "formatted_number": "51200000",
      "label": "Capital souscrit - appelé, versé",
      "debits": "45353.95",
      "credits": "2343.05"
    }
  ],
  "total_pages": 5,
  "current_page": 1,
  "total_items": 12,
  "per_page": 40
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

period_start
string<date>
required

The start of the period you want the trial balance for.

Example:

"2022-01-01"

period_end
string<date>
required

The end of the period you want the trial balance for.

Example:

"2022-12-31"

is_auxiliary
boolean

Whether to include auxiliary accounts or not.

Example:

true

page
integer
required

Items are paginated, this is the current page which will be returned. The page index is starting at 1.

Example:

1

per_page
integer
required

The number of items returned per page.

Required range: 1 <= x <= 1000
Example:

20

Response

Returns a list of balances grouped by ledger accounts.

items
object[]
required
total_pages
integer
required

The total number of pages available

Example:

5

current_page
integer
required

The current page returned

Example:

1

total_items
integer
required

The total number of items available

Example:

12

per_page
integer
required

The number of items per page

Example:

40