
Finance · accounting_create_invoice
Créer une facture (brouillon)
Facture client en brouillon dans le logiciel comptable ou ERP connecté, validée ensuite par un humain.
- Prix
- inclus
- Prérequis
- Pennylane ou Odoo ou Xero ou QuickBooks ou Sage Business Cloud
- à brancher dans Paramètres → Intégrations
- Validation humaine
- Oui, par défaut
- écriture vers l'extérieur : un humain valide
- Fiabilité
- Vérifié
- pas encore mesuré
Entrée
| Champ | Type | Description |
|---|---|---|
| customer * | object | Customer: id from accounting_search, or exact name (created if unknown, Odoo only). |
| lines * | array | |
| date | string | YYYY-MM-DD, default today. |
| dueDate | string | YYYY-MM-DD. |
| currency | string | ISO code, default the provider default. |
| reference | string | Your reference (PO number, contract…). |
| itemId | string | QuickBooks only: Item id for the lines. |
| ledgerAccountId | string | Sage only: sales ledger account id. |
| taxRateId | string | Sage only: tax rate id. |
| provider | pennylane | odoo | xero | quickbooks | sage |
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":"accounting_create_invoice","input":{"customer":"…","lines":[],"date":"…","dueDate":"…"}}'$
run({ "tool": "accounting_create_invoice", "input": {"customer":"…","lines":[],"date":"…","dueDate":"…"} })