Undo a match
https://api.light.inc/v1/bank-accounts/{bankAccountId}/matching-groups/{matchingGroupId}
Unmatches a matching group of this bank account, made by reconcile-transactions, clear-and-reconcile or in the app: its bank transactions are UNMATCHED again and its ledger lines unmatched. For a match made by clear-and-reconcile, the bank payments are reversed, so the invoices and bills are open again. A BANK_FEES match keeps its bank fees journal entry; its line on the bank account's ledger account is unmatched again, so match it with the bank transactions instead of sending BANK_FEES a second time. When the fee itself was wrong, archive that journal entry through POST /v1/journal-entries/{journalEntryId}/archive, using the fee line's accountingDocumentId. A matching group with no bank transaction belongs to the bank account its ledger lines are on. Fails with 400 and ACCOUNTING_PERIOD_CLOSED, changing nothing, when a bank payment to reverse is in a closed period; the period has to be reopened to undo it. Fails with 404 and BANK_RECONCILIATION_MATCHING_GROUP_NOT_FOUND when the matching group doesn't exist, is already undone, or belongs to another bank account.
Permission: bank-transactions:reconcile (COMPANY_ADMIN, CONTROLLER)
Authorization
Send one of these on every request. See Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Path parameters
-
bankAccountIdstring · uuidrequired -
matchingGroupIdstring · uuidrequired
Response
application/json;charset=UTF-8This endpoint returns no content.