Preview Ledger Opening Balance Import
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.
Matches each row to a customer (Tillor customer number or id) and an existing opening balance (same ledger and reference), without writing anything. Returns the status per row and the total per ledger.
ApiKeyAuthx-api-key<token>API key for authentication
organizationId*stringThe ID or slug of the organization
application/json- body
rows*array<>1 <= items <= 2000ledgerBalanceOverride?OK
application/json- response
curl -X POST 'https://api.tillor.eu/orgs//ledger-opening-balances/import/preview' \ -H 'Content-Type: application/json' \ -d '{ "rows": [ { "ledger": -9007199254740991, "amount": 0, "asOfDate": "2019-08-24", "reference": "string", "customer": "string" } ]}'nullDelete 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.
Import Ledger Opening Balances POST
Creates opening balances and updates the ones whose reference already exists; rows without a matching customer or repeated in the file are skipped. Refused as a whole (409, `INVOICE_LEDGER_BALANCE_EXCEEDED`) when a row would take a guarded ledger below zero. 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.