Connections

Connect Mercury

Create a read-only Mercury API token and bring your Mercury bank accounts, transactions, counterparties and balances into the books.

One Mercury token brings in every bank account Mercury lists for your company. It takes about five minutes and needs someone Mercury lets create API tokens, and an owner, admin or accountant in LedgerIt.

LedgerIt only reads from Mercury. It never moves money, and the token below cannot either. The connection is direct, with no Plaid in the path.

The short version

  1. In Mercury, open Tokens, select Create an API Token and choose Read Only.
  2. Copy the token.
  3. In LedgerIt, open Add connection at Mercury, paste the token and select Connect Mercury.

What comes in

  • Your Mercury bank accounts, each as a bank account in the books, with the last four digits of its number.
  • Their transactions, dated by the day the money settled. A transaction still pending arrives but does not post until it settles. One Mercury marks failed, cancelled, blocked or reversed is removed, and if it had already posted before it reversed, the close's reconciliation shows the difference.
  • Who the money went to or came from: Mercury's name for them, or the bank's line when Mercury has no name.
  • Balances: today's, and what each account held at the end of every month back to where your books start (up to 400 days), including the months before you connected Mercury. Mercury reports only the balance now, so LedgerIt works out each month-end figure from it, less what has settled since. That figure is what the close reconciles against. The months before last are worked out once per account; an account with more than 30,000 transactions in that time gets last month's only.

Receipts do not come in from Mercury.

LedgerIt reads the list of accounts Mercury gives it, and not Mercury's separate lists of Treasury and credit accounts. If one of those does not appear, upload its statement instead.

The first sync reads up to 400 days of history, or back to the day your books start if that is later. After that, Mercury syncs every 6 hours, and each sync reads the last 30 days again so a pending transaction arrives once it settles. Rows already in the books are recognized, not added twice.

How fast changes arrive

When Mercury tells LedgerIt about a new or changed transaction, LedgerIt syncs straight away, so it reaches the books within about a minute. Otherwise it arrives with the sync every 6 hours.

You do nothing for this. After the first sync, LedgerIt asks Mercury for these notices with your token. Mercury may not let a Read Only token ask, and then the connection keeps syncing every 6 hours, as before. LedgerIt asks again at every sync.

Create a token at Mercury

Mercury's steps are in its API guide.

1. Open the token settings

Sign in to Mercury and open Tokens. To get there yourself, select your organization in the top-left corner, choose All Settings, then open Tokens in the left-hand navigation.

If you do not see the option, your Mercury user does not have the permission. Ask an account admin at Mercury to update it, or to create the token.

2. Create a Read Only token

Select Create an API Token and complete the form. Choose Read Only.

Token typeLedgerIt uses it forWhat to do
Read OnlyReading accounts, transactions and balancesChoose this. It needs no IP allowlist
Read and WriteNothingDo not choose it. It could send money, and Mercury requires an IP allowlist for it
CustomNothingDo not choose it. Read Only already covers what LedgerIt reads

3. Copy the token

Copy the token straight away, because Mercury does not show it again after you close the dialog. If you lose it, create another.

Connect it in LedgerIt

  1. Open Add connection at Mercury. To click your way there, go to Integrations, select Add connection and, under Banks and cards, choose Mercury.
  2. Paste the token into API token.
  3. Optionally, give the connection a Label. You need a different one for each Mercury login you connect.
  4. Select Connect Mercury.

LedgerIt checks the token with Mercury before saving anything, then encrypts it. It is never shown again. The first sync starts from there: see Sync and check a connection.

If something goes wrong

What you seeWhat it meansWhat to do
Mercury rejected that key when connectingThe token is wrong or has been deleted, or it is a type Mercury will not accept from LedgerIt without an IP allowlistCheck you copied it whole. If it is not Read Only, create one that is
Mercury is already connected without a labelA connection with no label exists, and this one would land on itGive this one a Label
Another Mercury connection has this labelTwo connections cannot share a labelPick a new one, or select Reconnect on the existing connection to replace its token
Last sync failedRead the Last error under the connection. The token may have been deleted at MercuryCreate a new Read Only token, select Reconnect and paste it
BehindIt has not synced successfully within 24 hoursSelect the sync icon. If it fails, the badge becomes Last sync failed
An account is missingLedgerIt does not read Mercury's separate Treasury and credit listsUpload its statement

Reconnecting under the same label replaces the old token rather than adding a second connection, and everything already in the books stays.

How long a token lasts

Mercury gives a token no fixed expiry, but it deletes a token that goes unused for 45 days, and emails your account's admins 7 days before.

LedgerIt syncs every 6 hours, so this happens only if you pause the connection for that long. If it does, create a new token and select Reconnect.

Disconnect Mercury

  1. Open Mercury from Integrations.
  2. On the connection's row, open the ⋯ menu and select Disconnect, then confirm.

LedgerIt stops Mercury's notices to it, destroys its copy of the token, and everything Mercury brought in stays in your books. The token itself is yours: to retire it, revoke it at Mercury.