Skip to main content

Bank Sync Inbox Payees

Editing the payee of one downloaded transaction with PATCH .../bank-sync/inbox/{importedTransactionID} stages that payee on that one row. These two endpoints let a client carry the same choice to every other unreviewed row from the same merchant, without sending each row's ID.

How rows are matched​

The server finds the targets, so a client cannot widen the set. Another item matches the one you name when its bank payee, after Budget Thing's usual cleanup, is the same. Differences in capitalization, spacing, processor prefixes such as SQ *, reference codes and store numbers are ignored (short numbers that are part of the name, such as ROUTE 66 DINER, are kept), so VENMO PAYMENT 1234 and venmo payment match. When a bank gives no usable payee, the bank description is compared instead. Generic text such as PAYMENT THANK YOU never matches.

Only items in the same workspace that are still waiting in the Inbox can change. Approved, matched, rejected, pending and provider-removed items are never touched. An item that already carries the same staged payee is left as it is and isn't counted.

Count the matches​

GET /api/v1/workspaces/{workspaceID}/bank-sync/inbox/{importedTransactionID}/payee-match-count

Returns how many other items an apply request would change, given the payee currently staged on the item. Use it to word a prompt such as "Apply Venmo to 3 other transactions?". The count covers the whole Inbox, not one page.

{ "matchCount": 3 }

It is 0 when the item has no staged payee. This is a read, so it needs bank-sync:read.

Apply the payee​

POST /api/v1/workspaces/{workspaceID}/bank-sync/inbox/{importedTransactionID}/apply-payee-to-matching

Send exactly one of payeeId (an existing payee in this workspace) or payeeName (a name to resolve when each item is approved). The rules match the single-item edit: a blank payeeName and sending both fields are rejected.

{ "payeeName": "Venmo" }

The response lists the updated items, in the same shape as the Inbox list, so their suggestions and ready state are current:

{ "updatedCount": 3, "importedTransactions": [ { "id": "bsi_…", "payeeName": "Venmo", "payeeOverridden": true } ] }

This stages the payee exactly as if you had edited each item yourself. It doesn't create a payee and doesn't save a remembered payee: both still happen when each item is approved. The named item itself isn't changed; edit it with the single-item endpoint.

The call runs as one transaction, so it applies to all matching items or to none.

Remembered payees in exports, backups and clones​

Remembered payees (/payee-aliases) are part of the workspace's data. The data export (data.json) has a payeeAliases array and the archive has a payee-aliases.csv; each entry has id, matchKey, sampleDescription, payeeId, an optional categoryId, source (learned or manual), useCount, lastUsedAt and timestamps. Backups carry them and a restore points each at the restored payee and category, and a clone does the same for its own copies. Deleting the payee or the workspace removes them, and a payee merge repoints them. Changes are recorded in the audit log as payee_alias.created, payee_alias.updated and payee_alias.deleted.

Scopes, roles and limits​

Scopebank-sync:write to apply, bank-sync:read to count
RoleApplying needs a role that can review bank activity, the same as editing one item. Members who can only view can count.
Maximum200 items changed per call
Rate limitApplying draws on api.bulk-write at a cost of 3

Errors​

StatusWhen
404The item isn't in this workspace.
409The item you named is no longer in the Inbox, for example already approved or pending at the bank.
422Both or neither of payeeId and payeeName were sent, payeeName is blank, the payeeId doesn't exist in this workspace, or more than 200 items would change (bankSyncApplyPayeeTooManyItems). Edit a few rows individually and try again.
403The token lacks the scope, or the role can't review bank activity.