Lexware Office MCP by usefulapi

v1.33.1
io.usefulapi/lexware-office Checked 2 days ago Published 1 day ago

Read 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.

ParameterTypeDescription
customerbooleantrue = only contacts with the customer role, false = only contacts without it.
emailstringPart of any of the contact's email addresses (min 3 characters).
namestringPart of the contact's name (min 3 characters).
numberintegerCustomer or vendor number.
pageintegerPage index, 0-based (default 0). Use next_page from the previous reply.
sizeintegerResults per page, 1-250 (default 25).
vendorbooleantrue = 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.

ParameterTypeDescription
article_numberstringExact article number.
gtinstringGTIN (EAN) of the article.
pageintegerPage index, 0-based (default 0). Use next_page from the previous reply.
sizeintegerResults per page, 1-250 (default 25).
typestringOnly 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…

ParameterTypeDescription
archivedbooleantrue = only archived, false = only not archived.
contact_idstringOnly vouchers of this contact.
created_date_fromstringCreated from (yyyy-mm-dd, inclusive).
created_date_tostringCreated to (yyyy-mm-dd, inclusive).
directionstringSort direction (default DESC).
pageintegerPage index, 0-based (default 0). Use next_page from the previous reply.
sizeintegerResults per page, 1-250 (default 25).
sortstringSort field (default voucherDate).
updated_date_fromstringLast changed from (yyyy-mm-dd, inclusive).
updated_date_tostringLast changed to (yyyy-mm-dd, inclusive).
voucher_date_fromstringVoucher date from (yyyy-mm-dd, inclusive).
voucher_date_tostringVoucher date to (yyyy-mm-dd, inclusive).
voucher_numberstringExact voucher number, e.g. RE1019.
voucher_statusesarrayStatuses to include (default: all). overdue cannot be combined with other statuses; accepted/rejected apply to quotations, unchecked to bookkeeping vouchers.
voucher_typesarrayVoucher 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}.

ParameterTypeDescription
id *stringThe 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}.

ParameterTypeDescription
id *stringThe 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}.

ParameterTypeDescription
id *stringThe 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}.

ParameterTypeDescription
id *stringThe 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}.

ParameterTypeDescription
id *stringThe 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}.

ParameterTypeDescription
id *stringThe 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}.

ParameterTypeDescription
id *stringThe 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}.

ParameterTypeDescription
id *stringThe 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}.

ParameterTypeDescription
id *stringThe 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}.

ParameterTypeDescription
id *stringThe 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}.

ParameterTypeDescription
voucher_id *stringThe 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.

ParameterTypeDescription
limitintegerCategories per page, 1-100 (default 25).
offsetintegerCategories to skip, 0-based (default 0). Use next_offset from the previous reply.
typestringOnly 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.

ParameterTypeDescription
allow_tax_free_invoicesbooleanCompany: allow tax-free invoices.
billing_addressobject
company_namestringCompany name (for a company contact).
contact_person_emailstring
contact_person_first_namestring
contact_person_last_namestringCompany: last name of the (primary) contact person.
contact_person_phonestring
contact_person_salutationstring
emailstringBusiness email address.
notestringInternal note (max 1000 characters).
person_first_namestringPrivate person: first name.
person_last_namestringPrivate person: last name.
person_salutationstringPrivate person: salutation, e.g. Frau, Herr.
phonestringBusiness phone number.
rolesarrayRoles of the new contact (default customer).
shipping_addressobject
tax_numberstringCompany tax number (Steuernummer).
vat_registration_idstringCompany VAT id (USt-IdNr.), e.g. DE123456789.
xrechnung_buyer_referencestringGerman public authority: Leitweg-ID (needs xrechnung_vendor_number_at_customer).
xrechnung_vendor_number_at_customerstringYour 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).

ParameterTypeDescription
line_items *array1-300 line items.
shipping_type *stringLeistungs-/Lieferdatum type: service or delivery (needs shipping_date), serviceperiod or deliveryperiod (needs shipping_date and shipping_end_date), none.
voucher_date *stringInvoice date (yyyy-mm-dd).
citystringOne-time address city.
contact_idstringAn existing Lexware contact with the customer role (from lexware_list_contacts). Give this OR name + country_code.
country_codestringISO 3166 alpha-2 country code, e.g. DE, AT, CH (lexware_list_countries lists the supported codes).
introductionstringIntroduction text (max 2000).
languagestringDocument language (default de; en needs the INVOICING_PRO feature).
namestringOne-time recipient name (no contact is created). Required without contact_id.
payment_term_durationintegerDays until payment is due (the organization's or contact's default when omitted).
payment_term_labelstringPayment terms text shown on the document.
remarkstringClosing remark (max 2000).
shipping_datestringService/delivery date, or the start of the period (yyyy-mm-dd).
shipping_end_datestringEnd of the service/delivery period (yyyy-mm-dd).
streetstringOne-time address street and number.
supplementstringOne-time address supplement.
tax_typestringTax type (default net): net, gross, vatfree, intraCommunitySupply, constructionService13b, externalService13b, thirdPartyCountryService, thirdPartyCountryDelivery.
tax_type_notestringNote for a vat-free tax type (Lexware uses the organization's default when omitted).
titlestringDocument title (max 25 characters; default from Lexware).
total_discount_percentagenumberTotal discount in percent.
zipstringOne-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).

ParameterTypeDescription
expiration_date *stringValid until (yyyy-mm-dd), on or after voucher_date.
line_items *array1-300 line items.
voucher_date *stringQuotation date (yyyy-mm-dd).
citystringOne-time address city.
contact_idstringAn existing Lexware contact with the customer role (from lexware_list_contacts). Give this OR name + country_code.
country_codestringISO 3166 alpha-2 country code, e.g. DE, AT, CH (lexware_list_countries lists the supported codes).
introductionstringIntroduction text (max 2000).
languagestringDocument language (default de; en needs the INVOICING_PRO feature).
namestringOne-time recipient name (no contact is created). Required without contact_id.
payment_term_durationintegerDays until payment is due (the organization's or contact's default when omitted).
payment_term_labelstringPayment terms text shown on the document.
remarkstringClosing remark (max 2000).
streetstringOne-time address street and number.
supplementstringOne-time address supplement.
tax_typestringTax type (default net): net, gross, vatfree, intraCommunitySupply, constructionService13b, externalService13b, thirdPartyCountryService, thirdPartyCountryDelivery.
tax_type_notestringNote for a vat-free tax type (Lexware uses the organization's default when omitted).
titlestringDocument title (max 25 characters; default from Lexware).
total_discount_percentagenumberTotal discount in percent.
zipstringOne-time address ZIP code.