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
| Champ | Type | Description |
|---|---|---|
| invoices | array | Batch: 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. |
| rawText | string | Raw invoice text, email body, or OCR output |
| source | email | pdf | manual | Origin of the text |
| persist | boolean | Save 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). |
| type | payable | receivable | 'payable' = supplier invoice to pay (default) · 'receivable' = your own invoice to a customer |
| counterparty | string | Supplier/customer name override when the text is ambiguous |
| invoiceNumber | string | Invoice number override when the text is ambiguous |
| poNumber | string | Purchase 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} })