Skip to main content
Glama

Zeno

create_ar_invoice

Create an outgoing (sales) invoice as a draft — nothing is booked yet (accountant role).

A draft changes no ledger balance, gets no invoice number and appears in no VAT return; it exists so it can be edited. Posting happens later, at POST …/ar/invoices/{invoice_id}/issue.

Body: issue_date (required), counterparty_id (the customer — required before it can be issued), currency/language, due_date (filled from the customer's payment terms when omitted), doc_type (invoice, the default — a credit_note draft can never be issued: credit an issued invoice with POST …/ar/invoices/{invoice_id}/credit-note instead), and lines: each line carries quantity, unit_price, a revenue account_code and a vat_code_id (the id from GET …/gl/vat-codes; a line without one declares no VAT). Totals, per-line net/VAT/gross and discounts are computed server-side — do not send them.

Returns the created invoice with its lines and computed totals. Check GET …/ar/invoices/{invoice_id}/readiness for what still blocks issuing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
linesNo
notesNo
currencyNoCHF
doc_typeNoinvoice
due_dateNo
languageNo
company_idYes
issue_dateYes
legal_textNo
footer_textNo
counterparty_idNo
payment_terms_idNo
issuer_profile_idNo
service_period_endNo
credited_invoice_idNo
service_period_startNo
invoice_discount_kindNonone
invoice_discount_valueNo0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources