Skip to main content
Glama

SmartAccounts MCP by usefulapi

Create a sales invoice

smartaccounts_create_sales_invoice
Destructive

Post a new sales (client) invoice (purchasesales/clientinvoices:add). The invoice number is generated by SmartAccounts, totals and VAT are calculated from the rows, and the invoice is booked to the ledger at once (it is not a draft). The client must exist (smartaccounts_list_clients); each row's code must be an article code (smartaccounts_list_articles) and vat_pc a VAT code (smartaccounts_list_vat_rates). Fails if the period is locked. Returns invoiceId, number and the totals. This creates a real accounting record in the company's books. This server cannot edit or delete it; correct it in SmartAccounts. It never retries: if a reply is unclear, look in SmartAccounts before calling again. The vendor limit is 60 requests per minute and 1000 per 24 hours; every call here is one request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesInvoice date, yyyy-mm-dd.
rowsYesInvoice rows.
commentNoInternal comment.
currencyNoCurrency code (default EUR).
due_dateNoDue date, yyyy-mm-dd (default from the client's settings).
client_idYesThe client id (from smartaccounts_list_clients).
invoice_noteNoAdditional text printed on the invoice PDF.
exchange_rateNoExchange rate; only for a currency without an ECB rate.
reference_numberNoReference number for payment orders (default generated).

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.