Update Ledger Opening Balance
Dostęp
Członek organizacji z tym uprawnieniem:
invoicing:manage-opening-balances
Klucz API z zakresami potrzebuje też tego uprawnienia w swoich zakresach.
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.
ApiKeyAuthx-api-key<token>API key for authentication
organizationId*stringThe ID or slug of the organization
id*stringapplication/json- body
ledger?integer-9007199254740991 <= value <= 9007199254740991amount?numberasOfDate?stringdatereference?string1 <= length <= 120note?|nullledgerBalanceOverride?OK
application/json- response
curl -X PATCH 'https://api.tillor.eu/orgs//ledger-opening-balances/string' \ -H 'Content-Type: application/json' \ -d '{}'nullCreate Ledger Opening Balance POST
Adds an opening balance on a ledger for a customer. A negative amount that takes a guarded ledger below zero is refused (409, `INVOICE_LEDGER_BALANCE_EXCEEDED`); a reference the customer already has on that ledger is refused (409, `LEDGER_OPENING_BALANCE_REFERENCE_EXISTS`). 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.
Delete Ledger Opening Balance DELETE
Removes an opening balance. Refused (409, `INVOICE_LEDGER_BALANCE_EXCEEDED`) when the customer's guarded ledger would go below zero, for example when the deposit was refunded since. 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.