Import/Export

Preview or undo the journal entries an import created

Works for freestyle, bank-file and QuickBooks imports. confirmed=false returns the entries and register rows that would be removed plus any blockers; confirmed=true soft-deletes the entries, removes their imported register rows and frees source-row keys so a corrected file can be imported. Reconciled rows, matched feed rows, payment links and closed fiscal years block the undo.

post/imports/{importId}/undo

Request

  • Base URL: https://ledgerhq.pro/api/v1
  • URL: https://ledgerhq.pro/api/v1/imports/{importId}/undo
  • Auth: one of:
    • HTTP bearer and API key in header x-organization-id
    • HTTP bearer and API key in header x-organization-id

Path parameters

importIdstring uuid required

Request body

confirmedboolean
bankAccountIdstring uuid

Only remove imported entries that touch this register

Response

Removal preview or receipt

Changes

No recorded changes to this operation across all 5 revisions of this API.