All tools

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

FieldTypeDescription
customer *objectCustomer: id from accounting_search, or exact name (created if unknown, Odoo only).
lines *array
datestringYYYY-MM-DD, default today.
dueDatestringYYYY-MM-DD.
currencystringISO code, default the provider default.
referencestringYour reference (PO number, contract…).
itemIdstringQuickBooks only: Item id for the lines.
ledgerAccountIdstringSage only: sales ledger account id.
taxRateIdstringSage only: tax rate id.
providerpennylane | 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":"…"} })