Lexware Office MCP by usefulapi
v1.33.1Read Lexware Office contacts, articles, invoices and vouchers; create contacts and draft invoices.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
lexware_get_profile Get the company profile
The connected Lexware Office organization: organizationId, company name, the user who created the API key, tax type (net/gross/vatfree), small-business flag (Kleinunternehmer), distance-sales principle and the plan's business features (INVOICING, INVOICING_PRO, BOOKKEEPING). Good first call. GET /v1/profile.
lexware_list_contacts List or search contacts
List customers and vendors, optionally filtered (filters combine with AND). name and email match as case-insensitive substrings (at least 3 characters; _ and % are wildcards). Paged: pass next_page as page. GET /v1/contacts.
| Parameter | Type | Description |
|---|---|---|
customer | boolean | true = only contacts with the customer role, false = only contacts without it. |
email | string | Part of any of the contact's email addresses (min 3 characters). |
name | string | Part of the contact's name (min 3 characters). |
number | integer | Customer or vendor number. |
page | integer | Page index, 0-based (default 0). Use next_page from the previous reply. |
size | integer | Results per page, 1-250 (default 25). |
vendor | boolean | true = only contacts with the vendor role, false = only contacts without it. |
lexware_list_articles List articles
List articles (products and services usable as invoice line items), with price, tax rate and unit. Optional exact filters by article number, GTIN or type. Paged: pass next_page as page. GET /v1/articles.
| Parameter | Type | Description |
|---|---|---|
article_number | string | Exact article number. |
gtin | string | GTIN (EAN) of the article. |
page | integer | Page index, 0-based (default 0). Use next_page from the previous reply. |
size | integer | Results per page, 1-250 (default 25). |
type | string | Only products or only services. |
lexware_list_vouchers List vouchers (invoices, quotations, receipts...)
Search the voucher list: metadata (id, type, status, number, dates, contact, total and open amount) of sales documents (invoice, quotation, creditnote, orderconfirmation, deliverynote, downpaymentinvoice) and bookkeeping vouchers (salesinvoice, salescreditnote, purchaseinvoice, purchasecreditnote). Omit voucher_types / voucher_statuses for all. Then fetch details with the matching get tool (invoice → lexware_get_invoice, quotation → lexware_get_quotation, creditnote → lexware_get_credit_note, orderconfirmation → lexware_get_order_confirmation, deliverynote → lexware_get_delivery_note…
| Parameter | Type | Description |
|---|---|---|
archived | boolean | true = only archived, false = only not archived. |
contact_id | string | Only vouchers of this contact. |
created_date_from | string | Created from (yyyy-mm-dd, inclusive). |
created_date_to | string | Created to (yyyy-mm-dd, inclusive). |
direction | string | Sort direction (default DESC). |
page | integer | Page index, 0-based (default 0). Use next_page from the previous reply. |
size | integer | Results per page, 1-250 (default 25). |
sort | string | Sort field (default voucherDate). |
updated_date_from | string | Last changed from (yyyy-mm-dd, inclusive). |
updated_date_to | string | Last changed to (yyyy-mm-dd, inclusive). |
voucher_date_from | string | Voucher date from (yyyy-mm-dd, inclusive). |
voucher_date_to | string | Voucher date to (yyyy-mm-dd, inclusive). |
voucher_number | string | Exact voucher number, e.g. RE1019. |
voucher_statuses | array | Statuses to include (default: all). overdue cannot be combined with other statuses; accepted/rejected apply to quotations, unchecked to bookkeeping vouchers. |
voucher_types | array | Voucher types to include (default: all). |
lexware_get_invoice Get an invoice
Get one invoice by id: status (draft/open/paid/voided), line items, totals, tax amounts, payment and shipping conditions, related vouchers. Includes lexwareAppUrl, a link that opens it in Lexware Office. GET /v1/invoices/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The invoice id (from lexware_list_vouchers). |
lexware_get_quotation Get a quotation
Get one quotation by id: status (draft/open/accepted/rejected), expiration date, line items, totals. Includes lexwareAppUrl, a link that opens it in Lexware Office. GET /v1/quotations/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The quotation id (from lexware_list_vouchers). |
lexware_get_credit_note Get a credit note
Get one credit note by id: status, line items, totals, related invoice. Includes lexwareAppUrl, a link that opens it in Lexware Office. GET /v1/credit-notes/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The credit note id (from lexware_list_vouchers). |
lexware_get_order_confirmation Get an order confirmation
Get one order confirmation by id: status, line items, totals, delivery terms. Includes lexwareAppUrl, a link that opens it in Lexware Office. GET /v1/order-confirmations/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The order confirmation id (from lexware_list_vouchers). |
lexware_get_delivery_note Get a delivery note
Get one delivery note by id: status, line items, shipping conditions. Includes lexwareAppUrl, a link that opens it in Lexware Office. GET /v1/delivery-notes/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The delivery note id (from lexware_list_vouchers). |
lexware_get_down_payment_invoice Get a down payment invoice
Get one down payment invoice (Abschlagsrechnung) by id: status, amounts, related closing invoice. Includes lexwareAppUrl, a link that opens it in Lexware Office. GET /v1/down-payment-invoices/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The down payment invoice id (from lexware_list_vouchers). |
lexware_get_dunning Get a dunning
Get one dunning (payment reminder) by id: status, the dunned invoice in relatedVouchers, line items, totals. Includes lexwareAppUrl, a link that opens it in Lexware Office. GET /v1/dunnings/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The dunning id (from lexware_list_vouchers). |
lexware_get_bookkeeping_voucher Get a bookkeeping voucher
Get one bookkeeping voucher (salesinvoice, salescreditnote, purchaseinvoice or purchasecreditnote from the voucher list) by id: status, voucher items with posting category ids, tax amounts, contact, file ids. Includes lexwareAppUrl, a link that opens it in Lexware Office. GET /v1/vouchers/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The bookkeeping voucher id (from lexware_list_vouchers). |
lexware_get_article Get an article
Get one article (product or service) by id: title, type, article number, GTIN, unit, net/gross price and tax rate. GET /v1/articles/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The article id (from lexware_list_vouchers / lexware_list_articles). |
lexware_get_contact Get a contact
Get one contact (customer and/or vendor) by id: customer/vendor numbers, company or person, contact persons, addresses, emails, phones, note. Includes lexwareAppUrl, a link that opens it in Lexware Office. GET /v1/contacts/{id}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The contact id (from lexware_list_vouchers / lexware_list_contacts). |
lexware_get_payments Get a voucher's payments
Payment status of an invoice, credit note, down payment invoice or bookkeeping voucher: open amount, payment status (balanced/openRevenue/openExpense), paid date and the payment items (bank transactions, cash, credit notes, Skonto). Not available for quotations or drafts. GET /v1/payments/{voucherId}.
| Parameter | Type | Description |
|---|---|---|
voucher_id * | string | The voucher id (from lexware_list_vouchers). |
lexware_list_countries List countries
Countries known to Lexware Office with their code, English and German name and tax classification (de, intraCommunity, thirdPartyCountry). GET /v1/countries.
lexware_list_payment_conditions List payment conditions
The payment conditions configured in Lexware Office (days until due, early-payment discount, label template, which is the organization default). GET /v1/payment-conditions.
lexware_list_posting_categories List posting categories
Bookkeeping posting categories (id, name, group, income or outgo, whether a contact is required and split tax rates are allowed), used by bookkeeping vouchers' categoryId. Optionally only income or outgo. Paged: pass next_offset as offset. count and total are the number of matching categories; returned is the number on this page. GET /v1/posting-categories.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Categories per page, 1-100 (default 25). |
offset | integer | Categories to skip, 0-based (default 0). Use next_offset from the previous reply. |
type | string | Only income (revenue) or outgo (expense) categories. |
lexware_create_contact Create a contact
WRITE: creates a new customer and/or vendor in Lexware Office (Lexware assigns the customer/vendor number). Give company_name for a company OR person_last_name for a private person. One billing and one shipping address, one email and one phone at most. Check lexware_list_contacts first to avoid duplicates. POST /v1/contacts.
| Parameter | Type | Description |
|---|---|---|
allow_tax_free_invoices | boolean | Company: allow tax-free invoices. |
billing_address | object | |
company_name | string | Company name (for a company contact). |
contact_person_email | string | |
contact_person_first_name | string | |
contact_person_last_name | string | Company: last name of the (primary) contact person. |
contact_person_phone | string | |
contact_person_salutation | string | |
email | string | Business email address. |
note | string | Internal note (max 1000 characters). |
person_first_name | string | Private person: first name. |
person_last_name | string | Private person: last name. |
person_salutation | string | Private person: salutation, e.g. Frau, Herr. |
phone | string | Business phone number. |
roles | array | Roles of the new contact (default customer). |
shipping_address | object | |
tax_number | string | Company tax number (Steuernummer). |
vat_registration_id | string | Company VAT id (USt-IdNr.), e.g. DE123456789. |
xrechnung_buyer_reference | string | German public authority: Leitweg-ID (needs xrechnung_vendor_number_at_customer). |
xrechnung_vendor_number_at_customer | string | Your vendor number at that customer (with the Leitweg-ID). |
lexware_create_draft_invoice Create a draft invoice
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).
| Parameter | Type | Description |
|---|---|---|
line_items * | array | 1-300 line items. |
shipping_type * | string | Leistungs-/Lieferdatum type: service or delivery (needs shipping_date), serviceperiod or deliveryperiod (needs shipping_date and shipping_end_date), none. |
voucher_date * | string | Invoice date (yyyy-mm-dd). |
city | string | One-time address city. |
contact_id | string | An existing Lexware contact with the customer role (from lexware_list_contacts). Give this OR name + country_code. |
country_code | string | ISO 3166 alpha-2 country code, e.g. DE, AT, CH (lexware_list_countries lists the supported codes). |
introduction | string | Introduction text (max 2000). |
language | string | Document language (default de; en needs the INVOICING_PRO feature). |
name | string | One-time recipient name (no contact is created). Required without contact_id. |
payment_term_duration | integer | Days until payment is due (the organization's or contact's default when omitted). |
payment_term_label | string | Payment terms text shown on the document. |
remark | string | Closing remark (max 2000). |
shipping_date | string | Service/delivery date, or the start of the period (yyyy-mm-dd). |
shipping_end_date | string | End of the service/delivery period (yyyy-mm-dd). |
street | string | One-time address street and number. |
supplement | string | One-time address supplement. |
tax_type | string | Tax type (default net): net, gross, vatfree, intraCommunitySupply, constructionService13b, externalService13b, thirdPartyCountryService, thirdPartyCountryDelivery. |
tax_type_note | string | Note for a vat-free tax type (Lexware uses the organization's default when omitted). |
title | string | Document title (max 25 characters; default from Lexware). |
total_discount_percentage | number | Total discount in percent. |
zip | string | One-time address ZIP code. |
lexware_create_draft_quotation Create a draft quotation
WRITE: creates a quotation (Angebot) in Lexware Office as a DRAFT (never finalized or sent). 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/quotations (without finalize).
| Parameter | Type | Description |
|---|---|---|
expiration_date * | string | Valid until (yyyy-mm-dd), on or after voucher_date. |
line_items * | array | 1-300 line items. |
voucher_date * | string | Quotation date (yyyy-mm-dd). |
city | string | One-time address city. |
contact_id | string | An existing Lexware contact with the customer role (from lexware_list_contacts). Give this OR name + country_code. |
country_code | string | ISO 3166 alpha-2 country code, e.g. DE, AT, CH (lexware_list_countries lists the supported codes). |
introduction | string | Introduction text (max 2000). |
language | string | Document language (default de; en needs the INVOICING_PRO feature). |
name | string | One-time recipient name (no contact is created). Required without contact_id. |
payment_term_duration | integer | Days until payment is due (the organization's or contact's default when omitted). |
payment_term_label | string | Payment terms text shown on the document. |
remark | string | Closing remark (max 2000). |
street | string | One-time address street and number. |
supplement | string | One-time address supplement. |
tax_type | string | Tax type (default net): net, gross, vatfree, intraCommunitySupply, constructionService13b, externalService13b, thirdPartyCountryService, thirdPartyCountryDelivery. |
tax_type_note | string | Note for a vat-free tax type (Lexware uses the organization's default when omitted). |
title | string | Document title (max 25 characters; default from Lexware). |
total_discount_percentage | number | Total discount in percent. |
zip | string | One-time address ZIP code. |