Skip to content

Mercury

Fetch transactions from Mercury business banking accounts.

Generate an API token at Mercury Dashboard > Settings > API tokens.

Terminal window
export MERCURY_API_KEY=secret-token:mercury_...
Terminal window
vgrid fetch mercury --from 2026-01-01 --to 2026-02-01 --out mercury.csv

If you have multiple active accounts, specify one with --account:

Terminal window
vgrid fetch mercury --account acc_1234 --from 2026-01-01 --to 2026-02-01 --out mercury.csv
FlagDescriptionDefault
--fromStart date inclusive (YYYY-MM-DD)required
--toEnd date exclusive (YYYY-MM-DD)required
--api-keyMercury API tokenMERCURY_API_KEY env
--accountMercury account ID (acc_...)auto-detected
--outOutput CSV pathstdout
-q / --quietSuppress progress messagesoff
Mercury kindCanonical type
externalTransferdeposit (positive) or withdrawal (negative)
internalTransfertransfer
outgoingPaymentwithdrawal
incomingDomesticWire, incomingInternationalWiredeposit
debitCardTransaction, cardTransactionexpense
feefee
checkwithdrawal (negative) or deposit (positive)
anything elsesign-based: deposit or withdrawal
  • effective_datecreatedAt truncated to YYYY-MM-DD
  • posted_datepostedAt if present, otherwise falls back to createdAt

Account auto-detection. If --account is omitted, VisiGrid lists all accounts and selects the single active one. If there are zero or multiple active accounts, it errors with a list of account names and IDs.

Status filtering. Only transactions with status sent or pending are included. Cancelled and failed transactions are excluded.

Description priority. bankDescription > counterpartyName > note.

Pagination. Offset-based (500 items per page) with stuck-pagination detection.

Sort order. createdAt ascending, then source_id ascending.