GET
/
api
/
external
/
v2
/
ledger_accounts
/
{id}
Get a ledger account
curl --request GET \
  --url https://app.pennylane.com/api/external/v2/ledger_accounts/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": 124,
  "number": "512",
  "label": "Secondary Account",
  "vat_rate": "any",
  "country_alpha2": "FR",
  "enabled": true
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

Ledger Account ID

Example:

123

Response

Returns the ledger account

id
integer
required
Example:

124

number
string
required
Example:

"512"

label
string
required
Example:

"Secondary Account"

vat_rate
string
required

Ledger Account's VAT rate in percentage

Example:

"any"

country_alpha2
string
required

Ledger Account's country code (alpha2)

Example:

"FR"

enabled
boolean
required
Example:

true