
Finance · accounting_create_invoice
Create draft invoice
Draft customer invoice in the connected accounting software or ERP, validated by a human afterwards.
- Price
- included
- Requirements
- Pennylane or Odoo or Xero or QuickBooks or Sage Business Cloud
- set it up in Settings → Integrations
- Human approval
- Yes, by default
- outside-facing write: a human validates
- Reliability
- Verified
- not measured yet
Input
| Field | 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 |
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":"accounting_create_invoice","input":{"customer":"…","lines":[],"date":"…","dueDate":"…"}}'$
run({ "tool": "accounting_create_invoice", "input": {"customer":"…","lines":[],"date":"…","dueDate":"…"} })