API

Update account

Update a box’s AccountLink (any source) and/or alerts.

Patches the AccountLink on a box. Replace the linked account (source + accountId / manual create fields), edit manual balances/names, change paymentMode, and/or set alertSettings (pass null to clear). Bank/crypto snapshot balances stay sync-owned — replace accountId to change which account funds the box.

PATCH/v1/update_account

Body

FieldTypeRequiredDefaultDescription
budgetIdstringYes—Budget that owns the box.
boxIdstringYes—Box whose AccountLink to patch.
sourcestringNo—When replacing: manual, bank, or crypto.
accountIdstringNo—Replace payment account id for this source (manual id or snapshot id).
creditAccountIdstringNo—Replace bank credit snapshot (with accountId as payment).
namestringNo—Manual: new payment display name, or create fields when replacing with source manual.
currencystringNo—Manual: payment currency.
balancenumberNo—Manual: new payment balance (does not create a transaction).
accountKindstringNo—Manual: payment kind.
paymentModestringNo—account or creditCard.
creditNamestringNo—Manual: credit account display name.
creditCurrencystringNo—Manual: credit account currency.
creditBalancenumberNo—Manual: credit account balance.
creditCycleEndDaynumberNo—Credit cycle end day 1–31.
alertSettingsobjectNo—Set alert rules (see alertSettings below), or null to clear all alerts.

alertSettings

Optional object of box account alerts (same rules as in-app Accounts setup). Omit to leave alerts unset on link_account. On update_account, pass null to clear all alerts. Only rules with enabled: true are stored; disabled-only objects are dropped.

FieldTypeRequiredDefaultDescription
balanceThresholdobjectNo—Fire when the funding balance crosses a threshold.
balanceThreshold.enabledbooleanNofalseTurn the threshold alert on.
balanceThreshold.amountnumberConditional—Threshold amount in the account currency (required when enabled).
balanceThreshold.directionstringNobelowbelow (balance drops under amount) or above (balance rises over amount).
insufficientForPlanobjectNo—Fire when the funding balance cannot cover upcoming planned expenses in the box.
insufficientForPlan.enabledbooleanNofalseTurn the insufficient-for-plan alert on.
creditExceedsPaymentobjectNo—Credit-card links only: fire when the card balance exceeds the linked payment account balance.
creditExceedsPayment.enabledbooleanNofalseTurn the credit-exceeds-payment alert on.

Response data

FieldTypeDescription
budgetIdstringId of the budget this resource belongs to.
boxIdstringId of the parent expense box.
accountLinkIdstringAccountLink id on the box.
sourcestringmanual, bank, or crypto after the update.
updatedbooleanTrue on patch-only success.
alertSettingsobjectPresent when alertSettings was sent (same shape as request).