Skip to main content
Glama

Lexware Office MCP by usefulapi

Create a draft invoice

lexware_create_draft_invoice
Destructive

WRITE: creates an invoice in Lexware Office as a DRAFT (never finalized, numbered or sent; Lexware assigns the number when the user finalizes it in the app). Address it to an existing customer (contact_id) or a one-time address (name + country_code). Prices are EUR. Returns the new id and lexwareAppUrl to review and finalize it in Lexware Office. POST /v1/invoices (without finalize).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
zipNoOne-time address ZIP code.
cityNoOne-time address city.
nameNoOne-time recipient name (no contact is created). Required without contact_id.
titleNoDocument title (max 25 characters; default from Lexware).
remarkNoClosing remark (max 2000).
streetNoOne-time address street and number.
languageNoDocument language (default de; en needs the INVOICING_PRO feature).
tax_typeNoTax type (default net): net, gross, vatfree, intraCommunitySupply, constructionService13b, externalService13b, thirdPartyCountryService, thirdPartyCountryDelivery.
contact_idNoAn existing Lexware contact with the customer role (from lexware_list_contacts). Give this OR name + country_code.
line_itemsYes1-300 line items.
supplementNoOne-time address supplement.
country_codeNoISO 3166 alpha-2 country code, e.g. DE, AT, CH (lexware_list_countries lists the supported codes).
introductionNoIntroduction text (max 2000).
voucher_dateYesInvoice date (yyyy-mm-dd).
shipping_dateNoService/delivery date, or the start of the period (yyyy-mm-dd).
shipping_typeYesLeistungs-/Lieferdatum type: service or delivery (needs shipping_date), serviceperiod or deliveryperiod (needs shipping_date and shipping_end_date), none.
tax_type_noteNoNote for a vat-free tax type (Lexware uses the organization's default when omitted).
shipping_end_dateNoEnd of the service/delivery period (yyyy-mm-dd).
payment_term_labelNoPayment terms text shown on the document.
payment_term_durationNoDays until payment is due (the organization's or contact's default when omitted).
total_discount_percentageNoTotal discount in percent.

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.