Mercoa MCP by usefulapi
v1.41.1Query and manage Mercoa AP/AR bill-pay: entities, invoices, transactions and payment methods.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
mercoa_find_entities Find entities
Find/search entities (buyers, vendors, payors, payees). Use to look up counterparties by name/email/foreignId or list all. GET /entity.
| Parameter | Type | Description |
|---|---|---|
foreignId | Your system's ID(s) for the entity. | |
isCustomer | boolean | If true, only entities with a direct relationship to your organization. |
isPayee | boolean | Filter entities marked as payees. |
isPayor | boolean | Filter entities marked as payors. |
limit | integer | Max entities to return (1-100, default 10). |
paymentMethods | boolean | If true, include payment methods in the response. |
returnMetadata | Metadata key(s) to include in the response. | |
search | string | Search by name, email, emailTo, entity ID, or foreign ID (partial matches). |
startingAfter | string | Entity ID cursor for pagination. |
status | Entity status filter (e.g. verified, pending). |
mercoa_get_entity Get entity
Get a single entity by ID (or foreign ID). GET /entity/{entityId}.
| Parameter | Type | Description |
|---|---|---|
entityId * | string | Entity ID (e.g. ent_...) or foreign ID. |
mercoa_get_entity_events Get entity events
Get the event/audit log for an entity. GET /entity/{entityId}/events.
| Parameter | Type | Description |
|---|---|---|
entityId * | string | Entity ID or foreign ID. |
endDate | string | End date filter (ISO 8601). |
limit | integer | Max events to return (1-100). |
startDate | string | Start date filter (ISO 8601). |
startingAfter | string | Event ID cursor for pagination. |
mercoa_get_entity_invoice_metrics Get entity invoice metrics
Get aggregate invoice metrics (totals/counts, grouped by currency) for an entity's payables/receivables — for AP/AR dashboards and aging. GET /entity/{entityId}/invoice-metrics.
| Parameter | Type | Description |
|---|---|---|
entityId * | string | Entity ID or foreign ID. |
approverId | Filter by assigned approver user ID(s). | |
currency | Currency code(s) to filter on, e.g. USD. | |
dateType | string | Date type to filter by (e.g. CREATED_AT, DUE_DATE). |
endDate | string | End date filter (ISO 8601). |
excludePayables | boolean | Only return receivables (exclude payables). |
excludeReceivables | boolean | Only return payables (exclude receivables). |
groupBy | Additional grouping (e.g. by status). | |
invoiceId | Filter by invoice ID(s) or foreign ID(s). | |
payerId | Filter by payer ID(s). | |
returnByDate | string | Group metrics by date, e.g. CREATION_DATE or DUE_DATE. |
returnByDateFrequency | string | Frequency for date grouping (e.g. DAILY, MONTHLY). |
search | string | Search by vendor name, invoice number, check number, or amount. |
startDate | string | Start date filter (ISO 8601). |
status | Invoice status filter (e.g. NEW, SCHEDULED, PAID). | |
vendorId | Filter by vendor ID(s). |
mercoa_list_entity_payment_methods List entity payment methods
List an entity's payment methods (bank accounts, cards, check, etc.). GET /entity/{entityId}/paymentMethods.
| Parameter | Type | Description |
|---|---|---|
entityId * | string | Entity ID or foreign ID. |
type | string | Filter by payment method type (e.g. bankAccount, card, check). |
mercoa_get_payment_method Get payment method
Get a single payment method for an entity. GET /entity/{entityId}/paymentMethod/{paymentMethodId}.
| Parameter | Type | Description |
|---|---|---|
entityId * | string | Entity ID or foreign ID. |
paymentMethodId * | string | Payment method ID (e.g. pm_...). |
mercoa_list_entity_users List entity users
List the users belonging to an entity (approvers, admins, etc.). GET /entity/{entityId}/users.
| Parameter | Type | Description |
|---|---|---|
entityId * | string | Entity ID or foreign ID. |
mercoa_find_invoices Find invoices
Find/search invoices (bills) across payers and vendors. Filter by status, entity, date, approver and more. GET /invoices (plural list endpoint).
| Parameter | Type | Description |
|---|---|---|
approverAction | Filter by approver action (use with approverId), e.g. APPROVE. | |
approverId | Filter by assigned approver user ID(s). | |
creatorUserId | Filter by the user ID(s) that created the invoice. | |
dateType | string | Date type to filter by (e.g. CREATED_AT, DUE_DATE). |
endDate | string | End date filter (ISO 8601). |
entityGroupId | string | Filter by entity group ID. |
entityId | Filter by entity (payer or vendor) ID(s) or foreign ID(s). | |
invoiceId | Filter by invoice ID(s) or foreign ID(s). | |
invoiceTemplateId | Filter by invoice template ID(s). | |
limit | integer | Max invoices to return (1-100, default 10). |
orderBy | string | Field to order by (e.g. CREATED_AT, AMOUNT, DUE_DATE). |
orderDirection | string | asc or desc. |
payerId | Filter by payer ID(s) or foreign ID(s). | |
paymentType | Filter by payment type (e.g. recurring). | |
returnPayerMetadata | boolean | Include payer metadata in the response. |
returnPaymentTiming | boolean | Include payment timing in the response. |
returnVendorMetadata | boolean | Include vendor metadata in the response. |
search | string | Search by vendor name, invoice number, check number, or amount. |
startDate | string | Start date filter (ISO 8601). |
startingAfter | string | Invoice ID cursor for pagination. |
status | Invoice status filter (e.g. DRAFT, NEW, APPROVED, SCHEDULED, PAID). | |
vendorId | Filter by vendor ID(s) or foreign ID(s). |
mercoa_get_invoice Get invoice
Get a single invoice (bill) by ID. GET /invoice/{invoiceId}.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string | Invoice ID (e.g. in_...) or foreign ID. |
mercoa_get_invoice_events Get invoice events
Get the event/audit log for an invoice (status changes, approvals, payments). GET /invoice/{invoiceId}/events.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string | Invoice ID or foreign ID. |
endDate | string | End date filter (ISO 8601). |
limit | integer | Max events to return (1-100). |
startDate | string | Start date filter (ISO 8601). |
startingAfter | string | Event ID cursor for pagination. |
mercoa_find_transactions Find transactions
List/search payment transactions. Filter by entity, invoice, status, type and date. GET /transactions.
| Parameter | Type | Description |
|---|---|---|
endDate | string | CREATED_AT end date filter (ISO 8601). |
entityGroupId | string | Filter by entity group ID. |
entityId | Filter by entity ID(s) or foreign ID(s). | |
invoiceId | Filter by invoice ID(s) or foreign ID(s). | |
limit | integer | Max transactions to return (1-100, default 10). |
payerId | Filter by payer ID(s). | |
search | string | Search by vendor name, invoice number, check number, or amount. |
startDate | string | CREATED_AT start date filter (ISO 8601). |
startingAfter | string | Transaction ID cursor for pagination. |
status | Transaction status filter. | |
transactionId | Filter by transaction ID(s). | |
transactionType | Filter by transaction type. | |
vendorId | Filter by vendor ID(s). |
mercoa_get_transaction Get transaction
Get a single payment transaction by ID. GET /transaction/{transactionId}.
| Parameter | Type | Description |
|---|---|---|
transactionId * | string | Transaction ID. |
mercoa_get_organization Get organization
Get the caller's Mercoa organization configuration (settings, payment methods enabled, etc.). GET /organization.
mercoa_create_entity Create entity
WRITE — creates a real entity (customer/vendor/payor/payee) in Mercoa. Supply role flags, accountType, and a nested `profile` object (business or individual details). POST /entity.
| Parameter | Type | Description |
|---|---|---|
accountType | string | business or individual. |
email | string | Primary email for the entity. |
foreignId | string | Your system's ID for this entity. |
isCustomer | boolean | Whether this entity has a direct relationship with your organization. |
isPayee | boolean | Whether this entity can receive payments (AR / vendor). |
isPayor | boolean | Whether this entity can pay invoices (AP). |
profile | object | Nested profile object, e.g. { "business": { "legalBusinessName": "Acme Inc.", "email": "ap@acme.com", "businessType": "llc" } } or { "individual": { "name": {...}, "email": "..." } }. |
mercoa_create_invoice Create invoice
WRITE — creates a real invoice/bill in Mercoa. Set status (DRAFT to stage, NEW to submit), amount, currency, payer/vendor, dates and line items. POST /invoice.
| Parameter | Type | Description |
|---|---|---|
amount | number | Total invoice amount. |
creatorEntityId | string | Entity ID on whose behalf the invoice is created. |
creatorUserId | string | User ID creating the invoice. |
currency | string | Currency code, e.g. USD. |
deductionDate | string | Scheduled payment/deduction date (ISO 8601). |
dueDate | string | Due date (ISO 8601). |
invoiceDate | string | Invoice date (ISO 8601). |
invoiceNumber | string | Human-readable invoice number, e.g. INV-123. |
lineItems | array | Line items array, e.g. [{ "amount": 100, "currency": "USD", "description": "Product A", "quantity": 1, "unitPrice": 100 }]. |
metadata | object | Arbitrary key/value metadata. |
noteToSelf | string | Internal note. |
payerId | string | Payer entity ID (who owes). |
paymentDestinationId | string | Payment method ID to pay to (vendor's). |
paymentSourceId | string | Payment method ID to pay from (payer's). |
status | string | Invoice status, e.g. DRAFT, NEW, APPROVED, SCHEDULED. |
vendorId | string | Vendor entity ID (who is paid). |
mercoa_update_invoice Update invoice
WRITE — updates an existing invoice/bill (all fields optional). Commonly used to advance status (e.g. DRAFT→NEW→SCHEDULED) or change amounts, dates, or payment methods. POST /invoice/{invoiceId}.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string | Invoice ID to update. |
amount | number | Total invoice amount. |
currency | string | Currency code, e.g. USD. |
deductionDate | string | Scheduled payment/deduction date (ISO 8601). |
dueDate | string | Due date (ISO 8601). |
invoiceDate | string | Invoice date (ISO 8601). |
invoiceNumber | string | Human-readable invoice number. |
lineItems | array | Replacement line items array. |
metadata | object | Arbitrary key/value metadata. |
noteToSelf | string | Internal note. |
payerId | string | Payer entity ID. |
paymentDestinationId | string | Payment method ID to pay to. |
paymentSourceId | string | Payment method ID to pay from. |
status | string | New invoice status, e.g. NEW, APPROVED, SCHEDULED. |
vendorId | string | Vendor entity ID. |
mercoa_add_invoice_comment Add invoice comment
WRITE — adds a comment to an invoice (visible in its activity log). POST /invoice/{invoiceId}/comment.
| Parameter | Type | Description |
|---|---|---|
invoiceId * | string | Invoice ID to comment on. |
text * | string | Comment text. |
userId | string | ID or foreign ID of the user creating the comment. |