Update a ledger entry

Update a ledger entry

NEW BEHAVIOR : The old ledger scope will only work on the old behavior system. As soon as you opt in to the new version, or when the sunset phase starts and you haven't explicitly opted out of the old behavior, the ledger scope will no longer work. For more details, see our API documentation https://pennylane.readme.io/docs/2026-api-changes-guide for migration instructions.

This endpoint requires one of the following scopes: ledger (DEPRECATED), ledger_entries:all

Path Params
string
required

The unique identifier of the ledger entry

Query Params
boolean
Defaults to true

If you are already using the X-Use-2026-API-Changes header, you can ignore this parameter.

The Pennylane API is introducing important changes, which will be rolled out in three phases: preview, sunset and cleanup.

For new user, please use this parameter with true value to opt in directly to the new version of the API.

Preview phase: From January 14th to April 7th 2026. Opt in by setting this attribute to true to test and migrate to the new behavior.

Sunset phase: From April 8th to June 30th 2026. The new behavior becomes the default. Set this attribute to false if you need additional time to migrate.

Cleanup phase: Starting July 1st 2026 The old behavior will no longer be available. You must have migrated by this point.

For more details, see our API documentation https://pennylane.readme.io/docs/2026-api-changes-guide for migration instructions.

Body Params
date

Date of the ledger entry (ISO 8601)

string

Label that describes the ledger entry

int64

The journal ID where you want to create the ledger entry

int64
deprecated

Ledger attachment ID.

This attribute is deprecated and will be removed soon. Please use file_attachment_id instead.

int64

File attachment ID (replaces deprecated ledger_attachment_id)

string
enum

Currency code of the ledger entry as per ISO 4217. This currency is applicable to all ledger_entry_lines

string

The piece number that was assigned during creation either by you or Pennylane.

ledger_entry_lines
object

Add, update, delete ledger entry lines. The entry lines must be balanced. In total, max number of entry lines that you can create, update or delete using this endpoint is 1000 per request.

Responses

Language
Credentials
OAuth2
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json