Transactions
Tasks and triggers for querying Mercury bank transactions.
Connect to Mercury business banking to inspect and orchestrate accounts, transactions, payment recipients, corporate cards, statements, and triggers.
Integrate Kestra with the Mercury business banking API to query account balances, inspect account details, list transactions, list payment recipients, list corporate cards, list and download statements, trigger workflows on balance thresholds or new transactions, and orchestrate financial operations.
Connect to Mercury, the digital business bank, to manage and inspect bank accounts within Kestra workflows using the Mercury API.
Mercury uses Bearer token authentication. Your apiToken is sensitive and should be stored securely as a secret.
The baseUrl parameter is optional and defaults to https://api.mercury.com/api/v1. For sandbox testing, set baseUrl to https://api-sandbox.mercury.com/api/v1 either on the task or globally via plugin defaults.
io.kestra.plugin.mercury.accounts.ListList all Mercury bank accounts with automatic cursor-based pagination.
apiTokenbaseUrl (default: https://api.mercury.com/api/v1)fetchType (default: FETCH; options: FETCH, FETCH_ONE, STORE, NONE)limit (default: 1000, min: 1, max: 1000)order (default: ASC; options: ASC, DESC)pageCap (default: 100, min: 1)io.kestra.plugin.mercury.accounts.GetRetrieve full details of a single Mercury bank account by its unique identifier.
apiTokenaccountId (UUID)baseUrl (default: https://api.mercury.com/api/v1)io.kestra.plugin.mercury.transactions.ListRetrieve transactions for a specific Mercury bank account with automatic offset-based pagination and filtering.
apiTokenaccountId (UUID)baseUrl (default: https://api.mercury.com/api/v1)fetchType (default: FETCH; options: FETCH, FETCH_ONE, STORE, NONE)limit (default: 1000, min: 1, max: 1000)order (options: ASC, DESC; defaults to DESC in Mercury API)pageCap (default: 100, min: 1)start (date format: YYYY-MM-DD or ISO 8601 string; defaults to 30 days prior in Mercury API)end (date format: YYYY-MM-DD or ISO 8601 string; defaults to current date in Mercury API)status (options: PENDING, SENT, CANCELLED, FAILED, REVERSED, BLOCKED)searchio.kestra.plugin.mercury.transactions.GetRetrieve full details for a single Mercury bank transaction by its ID.
apiTokenaccountId (UUID)transactionId (UUID)baseUrl (default: https://api.mercury.com/api/v1)io.kestra.plugin.mercury.recipients.ListList payment recipients from Mercury with automatic cursor-based pagination. Output records contain sensitive banking information such as account and routing numbers, IBANs, and presigned attachment URLs.
apiTokenbaseUrl (default: https://api.mercury.com/api/v1)fetchType (default: FETCH; options: FETCH, FETCH_ONE, STORE, NONE)limit (default: 1000, min: 1, max: 1000)order (default: ASC; options: ASC, DESC)pageCap (default: 100, min: 1)io.kestra.plugin.mercury.cards.ListRetrieve credit and debit cards across an organization from Mercury with automatic cursor-based pagination and filtering.
apiTokenaccountId (UUID)baseUrl (default: https://api.mercury.com/api/v1)fetchType (default: FETCH; options: FETCH, FETCH_ONE, STORE, NONE)isAgentCard (boolean)kind (options: DEBIT, CREDIT)limit (default: 500, min: 1, max: 1000)order (default: ASC; options: ASC, DESC)pageCap (default: 100, min: 1)status (options: ACTIVE, FROZEN, CANCELLED, INACTIVE, EXPIRED, SUSPENDED)cardType (options: VIRTUAL, PHYSICAL)userIdio.kestra.plugin.mercury.statements.ListRetrieve statements for a specific Mercury depository bank account with automatic cursor-based pagination and filtering. Output records contain sensitive banking information such as account and routing numbers, EINs, legal addresses, and document download URLs.
accountId (UUID)apiTokenbaseUrl (default: https://api.mercury.com/api/v1)end (date format: YYYY-MM-DD; filter on period start date; max 3-month range between start and end)fetchType (default: FETCH; options: FETCH, FETCH_ONE, STORE, NONE)limit (default: 1000, min: 1, max: 1000)order (default: DESC; options: ASC, DESC)pageCap (default: 100, min: 1)start (date format: YYYY-MM-DD; filter on period start date; max 3-month range between start and end)io.kestra.plugin.mercury.statements.DownloadDownload an official statement PDF for a Mercury depository bank account directly to internal storage. Returns the internal storage URI, file size in bytes, and sanitized file name. Never logs statement details.
apiTokenstatementId (UUID)baseUrl (default: https://api.mercury.com/api/v1)io.kestra.plugin.mercury.transactions.TransactionTriggerPeriodically polls the Mercury API for new transactions in a specific bank account, deduplicating records across polling intervals using a lookback window and the namespace KV store.
accountId (UUID)apiTokenbaseUrl (default: https://api.mercury.com/api/v1)fetchType (default: FETCH; options: FETCH, FETCH_ONE, STORE, NONE)interval (default: PT5M)limit (default: 1000, min: 1, max: 1000)lookback (default: PT24H)pageCap (default: 100, min: 1)searchstatus (options: PENDING, SENT, CANCELLED, FAILED, REVERSED, BLOCKED)size, rows (FETCH), row (FETCH_ONE), uri (STORE), transaction (first new transaction), account.id. fetchType only shapes the output: every new transaction is fetched and marked as seen. The watermark advances on every successful poll.io.kestra.plugin.mercury.accounts.BalanceThresholdTriggerPeriodically polls Mercury bank account balances and triggers an execution when an account drops below a configured minimum threshold.
apiTokenminBalance (USD amount)accountId (UUID; when omitted, all active Mercury accounts are evaluated)balanceType (default: AVAILABLE; options: AVAILABLE, CURRENT)baseUrl (default: https://api.mercury.com/api/v1)interval (default: PT5M)pageCap (default: 100, min: 1)size, account (id, name, balance, minBalance of the first account below threshold), balance, accounts[] (all accounts newly below threshold). Accounts with an unknown balance are skipped.