Mercury stopped working (401 or IP not whitelisted)
Mercury only accepts API calls from IP addresses you whitelist. When the office internet changes, every Mercury call is refused until the new address is added.
Do these first
- Connect Mercury
Explains the token and whitelist.
You will need
- Admin access to the Mercury dashboard
This switches on
- Mercury balances, transfers and cards working again
Steps
Find the address Mercury saw
Card charges → Providers shows the Mercury error. Messages from a Mercury action may end with "whitelist <address> in Mercury". That is the address to add.
Where in the appCard charges → Providers/card-charges?tab=providersAdd it in Mercury
In Mercury, open your organization → All Settings → Tokens, edit the API token and add the address to its IP whitelist. Only Read and Write tokens need a whitelist; a read-only or custom read token does not.
Open docs.mercury.com (opens in a new tab)Check again
Wait for the next sync, or refresh the Providers tab.
Check that it worked
If something goes wrong
Still 401 after whitelisting.
The token may have been revoked, or Mercury deleted it: tokens unused for 45 days are deleted automatically (admins get a notice 7 days before). Create a new token, then have the platform owner save it on your subscriber page (subscribers) or put it in .env (house). Never send a token by email or chat.
Related questions
Mercury stopped working with a 401 error. Why?
Mercury tokens only work from allow-listed IP addresses. If the office internet address changed, add the new one in the Mercury dashboard.
Register the Mercury webhook
Register the Mercury webhook once calls work again.
Continue to the next stepWas this helpful?
If a step did not match what you see in the app, tell us which one and we will fix the guide or help you finish.