All tools

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

FieldTypeDescription
invoicesarrayBatch: 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.
invoiceNumberstringInvoice number to check
counterpartystringSupplier or customer name
amountTtcnumberTotal amount including VAT
issueDatestringInvoice issue date (ISO 8601)
invoiceIdstringUUID 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} })