POST
/
api
/
external
/
v2
/
ledger_entry_lines
/
lettering
Letter ledger entry lines
curl --request POST \
  --url https://app.pennylane.com/api/external/v2/ledger_entry_lines/lettering \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "unbalanced_lettering_strategy": "none",
  "ledger_entry_lines": [
    {
      "id": 3455
    }
  ]
}'
[
  {
    "id": 1
  }
]

Authorizations

Authorization
string
header
required

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

Body

application/json
unbalanced_lettering_strategy
enum<string>
required
  • none: the API won't let you create an unbalanced lettering and will respond with an error.
  • partial: a potentially unbalanced lettering will be created.
Available options:
none,
partial
ledger_entry_lines
object[]
required

The list of ledger entry lines you want to letter together.

You can provide ledger entry lines already lettered and they don't have to be part of the same lettering.

All received entry lines will be lettered together. If a passed entry line is already lettered, then the lettering will be applied to its lettered entry lines as well. For example: Ledger entry lines A and B are already lettered together. C in not lettered. When requesting [A, C] to be lettered, the final lettering will be [A, B, C].

Minimum length: 2

Response

Returns all the ledger entry lines of the new lettering

An array containing all the ledger entry lines of the new lettering

id
integer
required

Id of the ledger entry line

Example:

1