Skip to content

Brex Bank

Fetch transactions from Brex cash (bank) accounts.

Use the same API token as Brex Card — a single Brex token covers both card and bank.

Terminal window
export BREX_API_KEY=brex_token_...
Terminal window
vgrid fetch brex-bank --from 2026-01-01 --to 2026-02-01 --out brex-bank.csv

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

Terminal window
vgrid fetch brex-bank --account cash_abc --from 2026-01-01 --to 2026-02-01 --out brex-bank.csv
FlagDescriptionDefault
--fromStart date inclusive (YYYY-MM-DD)required
--toEnd date exclusive (YYYY-MM-DD)required
--api-keyBrex API tokenBREX_API_KEY env
--accountBrex cash account IDauto-detected
--outOutput CSV pathstdout
-q / --quietSuppress progress messagesoff
Brex cash typeCanonical type
PAYMENT, PAYMENT_FAILEDwithdrawal
DEPOSIT, RECEIVEDdeposit
TRANSFER, BOOK_TRANSFERtransfer
CARD_SETTLEMENTexpense
FEEfee
INTERESTinterest
RETURN, REVERSALsign-based (deposit or withdrawal)
ACH_TRANSFER, ACHsign-based
WIRE_TRANSFER, WIREsign-based
anything elsesign-based
  • effective_dateinitiated_at_date (when the transaction was initiated)
  • posted_dateposted_at_date (when it settled); falls back to initiated_at_date if absent

The --to flag is exclusive: internally converted to inclusive by subtracting one day.

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

Description fallback. description field, then memo.

source field. brex (shared with other Brex adapters).

Pagination. Cursor-based (next_cursor) with stuck-cursor detection.

Sort order. posted_date ascending, then source_id ascending.