Mercury API guide

mercury.com

Prepare Mercury reimbursement drafts with receipts, look up bank accounts, and filter transaction history by date, status, or category.

Actions and inputs

mercury reimbursement-plan

Check the receipt file and expense details locally.

Inputs receipt path, amount, currency, date, merchant, category, notes

mercury reimbursement-draft

Attach a receipt and prepare a reimbursement draft for review without submitting it.

Inputs receipt path, amount, currency, date, merchant, category, notes

account get

Look up a bank account by ID.

Inputs account ID

transactions list

List transactions across your accounts with optional filters.

Inputs date range, status, category, pagination cursor

Reimbursement drafts

Create

Prepare your reimbursement draft, attach the receipt, and stop at Review without submitting.

Inputs Receipt, merchant, expense date, amount, currency, category, business purpose

Read

Review your draft and compare the receipt with the extracted expense details.

Inputs Open draft, receipt

Update

Correct receipt extraction errors or revise the business purpose before submission.

Inputs Open draft, corrected fields

Delete

Cancel your unsubmitted draft using the form’s discard control if available. Do not alter submitted expenses.

Inputs Open draft, confirmation