Finance · detect_duplicate_invoice
Detect duplicate invoice
Detect whether an invoice is a duplicate.
- Price
- included
- Requirements
- No connector
- runs on platform keys
- Human approval
- No
- read or internal write
Input
| Field | Type | Description |
|---|---|---|
| invoices | array | Batch: the FULL list of invoices to check in one call (preferred whenever there is more than one). When provided, the top-level single fields are ignored. |
| invoiceNumber | string | Invoice number to check |
| counterparty | string | Supplier or customer name |
| amountTtc | number | Total amount including VAT |
| issueDate | string | Invoice issue date (ISO 8601) |
| invoiceId | string | UUID of the row being checked (from parse_invoice) — excluded from the search so it is not reported as its own duplicate; gets flagged if a duplicate is found. |
Call this tool
Through the HTTP API, or from the MCP server with the run meta-tool.
curl https://api.ezyagents.fr/gateway/v1/run \
-H "Authorization: Bearer ezk_…" -H "Content-Type: application/json" \
-d '{"tool":"detect_duplicate_invoice","input":{"invoices":[],"invoiceNumber":"…","counterparty":"…","amountTtc":1}}'$
run({ "tool": "detect_duplicate_invoice", "input": {"invoices":[],"invoiceNumber":"…","counterparty":"…","amountTtc":1} })