Tous les outils

Finance · parse_invoice

Analyser une facture

Extrait les données structurées d'une facture.

Prix
usage IA du plan
Prérequis
Aucun connecteur
fonctionne sur les clés plateforme
Validation humaine
Non
lecture ou écriture interne

Entrée

ChampTypeDescription
invoicesarrayBatch: the FULL list of invoices to parse in one call (preferred whenever there is more than one). When provided, the top-level single fields are ignored.
rawTextstringRaw invoice text, email body, or OCR output
sourceemail | pdf | manualOrigin of the text
persistbooleanSave to the Ezyagents ledger (finance_invoices, status draft). Default: true when an invoice number and a total amount were found. Idempotent on (invoice number, counterparty).
typepayable | receivable'payable' = supplier invoice to pay (default) · 'receivable' = your own invoice to a customer
counterpartystringSupplier/customer name override when the text is ambiguous
invoiceNumberstringInvoice number override when the text is ambiguous
poNumberstringPurchase order reference if known

Appeler cet outil

Via l'API HTTP, ou depuis le serveur MCP avec le méta-outil run.

curl https://api.ezyagents.fr/gateway/v1/run \
  -H "Authorization: Bearer ezk_…" -H "Content-Type: application/json" \
  -d '{"tool":"parse_invoice","input":{"invoices":[],"rawText":"…","source":"email","persist":true}}'
$run({ "tool": "parse_invoice", "input": {"invoices":[],"rawText":"…","source":"email","persist":true} })