Skip to navigation

Switch new-transaction pushes for one bank account

View as Markdown

Idempotent. 422 when the account is not connected over the bank API, so a client can never believe it configured an account that will stay silent. 404 for an account outside the workspace, and for a caller who is not an owner of it.

Authentication

AuthorizationBearer

JWT issued via POST /api/v1/auth/sign_in. Used by mobile and SPA clients. Revoked tokens are rejected.

OR
AuthorizationBearer

Lucanto API key. Two prefixes:

  • lct_pat_<random><checksum> — personal access token (owner: User)
  • lct_live_<random><checksum> — workspace token, live data

Issue keys at /settings/api_keys (personal) or /:workspace_id/settings/api_keys (workspace). Plaintext token is shown once and never again.

Path parameters

workspace_idlongRequired>=1
Workspace ID. The numeric ID shown in your URLs.
bank_account_idlong or stringRequired

Bank account the switch belongs to. Either the numeric id or the public_id (ba_…).

Request

This endpoint expects an object.
enabledbooleanRequired

Response

OK
bank_account_idlong
enabledboolean

The per-account switch on its own — it does not fold in the new_transaction category switch from /notification_preferences. A push fires only when both are on; keeping them separate here means a write is echoed back as written instead of being masked by the other gate.

namestring or nullOptional
The account's display name.
ibanstring or nullOptional
currencystring or nullOptional

ISO-4217 currency code.

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error