Skip to main content

Bank Sync Connections

GET /v1/workspaces/{workspaceID}/bank-sync/connections (bank-sync:read) lists a workspace's bank connections, and GET .../connections/{connectionID} returns one. Each has a status (pending, connected, needs_attention, error or disconnected), the last sync times, and the discovered accounts.

POST .../bank-sync/connections (create-bank-sync-connection), POST .../connections/{connectionID}/repair (start-bank-sync-repair) and POST .../connections/{connectionID}/manage-accounts (start-bank-sync-manage-accounts) accept an optional platform in the request body. It tells Budget Thing which client will open the provider's setup flow, so a native app can finish bank logins that redirect through the bank's own app or site (OAuth institutions).

platformPlaid Link token getsNotes
web (default)nothing extraSame as omitting the field or the whole body.
androidandroid_package_nameThe deployment's Android application ID, for example com.budgetthing.app.
iosredirect_uriThe deployment's registered HTTPS universal link.

repair and manage-accounts previously took no body; sending none still works. SimpleFIN connections ignore platform. Any other value, including an empty string, is rejected by the request schema with the standard 422 validation error on body.platform. If the deployment has no Android package name or iOS redirect URI configured, android or ios fails with 422 (bankSyncPlatformNotConfigured) instead of returning a token that cannot complete OAuth logins; no pending connection is left behind. The field is additive: existing clients are unaffected.

autoRemoveAt​

FieldTypeDescription
autoRemoveAtdate-time, optionalWhen Budget Thing will disconnect the connection automatically unless it is repaired first.

The field is present only while a connection is broken (needs_attention or error) and its setup had completed. It is the later of two dates, so both conditions hold when the removal happens: 30 days after the connection became broken, and 30 days after its last successful sync (after setup, if it never synced). It is absent for a healthy connection however long it has been idle, for a setup that never completed, and for a disconnected connection. A repair or a successful sync clears the broken state, so the field disappears and a later failure starts a new 30 days.

The field is additive: existing clients can ignore it.

What the automatic removal does​

A daily job disconnects a connection once autoRemoveAt has passed. It does exactly what a user's Remove connection does:

  • Plaid is told to remove the item first. If Plaid reports the item as already gone, that counts as done. Any other Plaid error leaves the connection untouched and the job retries on its next run, so Budget Thing never drops the access token of an item Plaid still bills for. SimpleFIN has no provider call; its stored credentials are discarded.
  • The account mappings are removed, so the linked Budget Thing accounts become manual accounts. Every imported and accepted transaction is kept.
  • The banksync.connection.deleted event is published, so webhook subscriptions and the workspace activity log see it. The actor is the system, not a user.

The person who connected the bank (or the workspace owner, if that person has left the workspace) gets an email 7 days before, which follows their Bank connection reminders email preference, and an email after the removal, which is always sent. Neither is sent twice.