Admin
Fix Bank Connections
Clean up ghost bank connections and reactivate incorrectly expired ones.
Safe to run — only deactivates duplicates and resets connections that were incorrectly marked expired. Does NOT delete any data.
Steps:
- Reactivate connections marked consent_expired=True whose consent_expires is still in the future.
- For each user, deduplicate accounts by (sort_code, account_number). Keep the account whose parent connection has the most recent last_synced_at; deactivate the parent connections of the rest.
- For connections sharing the same finexer_consent_id within a user, keep the most recently synced one and deactivate the rest.
post/api/admin/fix-bank-connections
Request
- Base URL: https://api.earmarkiq.app (the document declares no server; this is the origin it was published from)
- URL: https://api.earmarkiq.app/api/admin/fix-bank-connections
- Auth: HTTP bearer
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 2 revisions of this API.