Skip to Content
Ledger opening balances

Update Ledger Opening Balance

Accesso

Membro dell’organizzazione con questo permesso:

  • invoicing:manage-opening-balances

Una chiave API con scope deve avere il permesso anche tra i suoi scope.

PATCH
/orgs/{organizationId}/ledger-opening-balances/{id}

Changes an opening balance. Lowering it below what the customer's guarded ledger still holds is refused (409, INVOICE_LEDGER_BALANCE_EXCEEDED). With ledgerBalanceOverride, users with invoicing:override-ledger-balance may take a guarded ledger below zero; the motivation and the violations are recorded on the customer's timeline.

Authorization

ApiKeyAuth
headerx-api-key<token>

API key for authentication

Path Parameters

organizationId*string

The ID or slug of the organization

id*string

Request Body

application/json
  1. body
ledger?integer
Range-9007199254740991 <= value <= 9007199254740991
amount?number
asOfDate?string
Formatdate
reference?string
Length1 <= length <= 120
note?|null
ledgerBalanceOverride?

Response Body

OK

application/json
  1. response
Example Request
curl -X PATCH 'https://api.tillor.eu/orgs//ledger-opening-balances/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
null