by ElevenFifty Labs
Banking

Mercury integration

Spark reads Mercury balances and transactions into your cash forecast and ledger reconciliations, and can create customers and invoices in Mercury.

The connector

Category: Banking. Status: Available on all plans. How Spark connects: direct, through the Mercury API with a read-only token, or a custom token with invoicing scopes, which Mercury requires to come from an allow-listed IP.

What you can do with Mercury in Spark

Read accounts, balances and transactions daily, categorize them with mapping tables, and send them to the cash plan, warehouse or BI. Create Mercury customers and invoices from billing data. Money movement stays out.

Spark reads 4 kinds of data from Mercury:

  • 1 row per Mercury account, with its current and available balance
  • 1 row per transaction across all accounts
  • 1 row per accounts-receivable invoice
  • 1 row per accounts-receivable customer

What Spark writes to Mercury

Writes only happen when you tick the permission as you add the Spark. Leave them unticked for a read-only connection. Creating customers and invoices needs the Fixed IP add-on, because Mercury only accepts write tokens from an allow-listed IP.

  • Creates 1 accounts-receivable customer per row. A customer whose email is already in Mercury is left out.
  • Creates 1 accounts-receivable invoice per invoice number, from 1 row per line item. An invoice number already in Mercury is left out, so a Circuit can run again safely.

Common use cases for Mercury data, and why each matters

Daily cash in the forecast

Balances and transactions feed the 13-week cash plan, so the forecast starts from today's cash.

Bank reconciliation

Transactions go to the warehouse to match against the ledger.

Invoicing from billing data

Invoices are created in Mercury from your billing or CRM data, with every run logged.

Spend categorization

Transactions mapped to plan accounts show spend by category before the books close.

Why it's hard without Spark

Cash forecasts often start from a CSV download and a copy-paste. Write tokens in Mercury need an IP allow list, which most tools can't offer per customer. Spark offers a fixed outbound IP as an add-on (the Fixed IP add-on) and keeps money movement out entirely.

How Spark handles Mercury data

  • Spark does not store the business data it moves: rows pass through memory during a run.
  • Each customer has its own isolated tenant.
  • Credentials are sealed in your company's own vault, never shown again or logged.
  • Anything that writes to a system needs the permission ticked when the Spark is added.

More on the Spark trust center.

Teams that use it

Finance and FP&A and treasury.

Questions

How does Spark connect to Mercury?

An API token. You need a Mercury admin who can create API tokens.

Can Spark write to Mercury?

Yes, when you allow it and have the Fixed IP add-on. Spark can create accounts-receivable customers and invoices. Customers and invoice numbers already in Mercury are left out, so a Circuit can run again safely.

Do I need the Fixed IP add-on to read from Mercury?

No. A Read Only token works without it. The add-on is needed only for the Custom token that creates customers and invoices.

Can Spark move money?

No. Payments and transfers are out by default. Spark reads balances and transactions, and can create customers and invoices.

How often can Spark read transactions?

On any schedule your plan's run limits allow, such as hourly or daily.

Where are the credentials kept?

Sealed in your company's own vault in your isolated tenant. Spark never shows them again or writes them to logs.

Connection essentials

  • Method: An API token.
  • What you need: A Mercury admin who can create API tokens; the Fixed IP add-on, only to create customers and invoices
  • Vendor documentation: docs.mercury.com
  • Change detection: transactions posted since the last run
  • Limits to know: write tokens need an IP allow list that names your Spark's fixed outbound IP, which comes with the Fixed IP add-on

Set it up in 4 steps

  1. In Mercury, open Settings, then API tokens. To read only, create a Read Only token. To create customers and invoices too, create a Custom token with the accounts-receivable write scopes, and add your Spark's fixed outbound IP (shown in Spark once the Fixed IP add-on is on) to its IP allow list.
  2. Copy the token, including its "secret-token:" prefix. Mercury shows it once.
  3. In Spark, add a Mercury Spark, paste the token and tick what it may do. Spark keeps it in your company's own vault and never shows it again.
  4. Spark reads your accounts to check the token works.

Optional permissions

Ticked when you add the Spark, and off unless marked default.

  • Read (on by default): Accounts, transactions, customers and invoices. A Read Only token.
  • Create customers and invoices: A Custom token with the accounts-receivable write scopes, or Read and Write. Mercury requires the token's IP allow list to name your Spark's fixed outbound IP (the Fixed IP add-on).

Everything Spark reads from Mercury

  • 1 row per Mercury account, with its current and available balance
  • 1 row per transaction across all accounts
  • 1 row per accounts-receivable invoice
  • 1 row per accounts-receivable customer

What Spark writes

  • Creates 1 accounts-receivable customer per row. A customer whose email is already in Mercury is left out.
  • Creates 1 accounts-receivable invoice per invoice number, from 1 row per line item. An invoice number already in Mercury is left out, so a Circuit can run again safely.

Example Circuit: Mercury cash into the cash forecast

Each mapping is written in Excel syntax, so finance can read and change it.

  • Date: =[Posted At], the cash date
  • Category: =XLOOKUP([Counterparty],VendorMap[Name],VendorMap[Category],"Other"), the plan category
  • Account: =[Account Name], the bank account
  • Amount: =[Amount], signed inflow or outflow

Checks to set on this feed

  • Closing balance tied out against Mercury's account balance
  • Alert if a large transaction has no category
  • Freshness: alert if no transactions arrive on a business day

How setup works

  1. Start a Spark. Sign in or paste a key. Spark checks the access the key grants and warns before it expires. If someone else owns the system, Spark sends them a setup request with the security context they need.
  2. Build a Circuit with Ask Spark. Describe the feed in plain English. Ask Spark drafts the mapping in Excel syntax and waits for your approval.
  3. Let it run. On a schedule, when a file lands, or when the source changes, with checks before anything is written and alerts by email, Slack, Teams or the Spark mobile app.

Security

Each customer runs in its own isolated tenant with its own encryption key and credential vault. Business data passes through memory during a run and is never stored. Writes to systems of record need their own permission, and ERP journals arrive as drafts by default. See Spark security.

See it with your own systems

Book a 30-minute demo built around the systems you use. Spark starts at $5,000 a year, with every connector on every plan. See pricing, security and the connector library.