sevdesk MCP by usefulapi

v1.48.1
io.usefulapi/sevdesk Checked 7 hours ago Published 12 hours ago

Look up contacts, invoices, vouchers, orders and bank transactions, create drafts and send invoices.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

sevdesk_get_bookkeeping_system_version Get the bookkeeping system version

Return whether the account runs sevdesk bookkeeping 1.0 or 2.0 (2.0 uses taxRule instead of taxType on invoices). Also a cheap way to confirm the API token works. sevdesk: GET /Tools/bookkeepingSystemVersion.

sevdesk_list_contacts List contacts

List contacts (customers, suppliers, partners, prospects). By default sevdesk returns only organisations; set include_persons to also get individual persons. At most 50 contacts per reply (a larger limit is reduced); fields without a value (null or empty) are left out of each row. sevdesk: GET /Contact.

ParameterTypeDescription
category_idintegerOnly contacts in this category: 2 Supplier, 3 Customer, 4 Partner, 28 Prospect customer.
citystringOnly contacts in this city.
count_allbooleanIf true, the response also carries `total`, the full match count.
customer_numberstringOnly the contact with this customer number.
embedstringComma-separated nested resources to expand inline, e.g. contact,category.
include_personsbooleanIf true, return organisations AND persons (sevdesk depth=1). Default: organisations only.
limitintegerMax entries to return, 1-1000 (sevdesk suggests 10-100).
namestringOnly contacts whose name, first name or last name matches.
offsetintegerNumber of entries to skip, for paging.
parent_idintegerOnly persons belonging to this parent organisation's id.
zipstringOnly contacts with this ZIP code.

sevdesk_get_contact Get one contact

Fetch a single contact by id. sevdesk: GET /Contact/{contactId}.

ParameterTypeDescription
contact_id *integerThe contact's numeric id.
embedstringComma-separated nested resources to expand inline, e.g. contact,category.

sevdesk_list_communication_ways List contact emails, phones and websites

List communication ways (email addresses, phone and mobile numbers, websites), optionally for one contact. At most 100 communication ways per reply (a larger limit is reduced); fields without a value (null or empty) are left out of each row. sevdesk: GET /CommunicationWay.

ParameterTypeDescription
contact_idintegerOnly this contact's communication ways.
count_allbooleanIf true, the response also carries `total`, the full match count.
embedstringComma-separated nested resources to expand inline, e.g. contact,category.
limitintegerMax entries to return, 1-1000 (sevdesk suggests 10-100).
main_onlybooleanIf true, only the main communication way(s).
offsetintegerNumber of entries to skip, for paging.
typestringOnly this type.

sevdesk_list_communication_way_keys List communication way keys

List the labels a communication way can carry (1 Privat, 2 Arbeit, 3 Fax, 4 Mobil, 6 Autobox, 7 Newsletter, 8 Rechnungsadresse). Needed for sevdesk_add_communication_way. sevdesk: GET /CommunicationWayKey.

sevdesk_list_invoices List invoices

List invoices, filterable by status, number, date range and contact. Status: 50 deactivated recurring, 100 draft, 200 open/due, 750 partially paid, 1000 paid. At most 15 invoices per reply (a larger limit is reduced); fields without a value (null or empty) are left out of each row. sevdesk: GET /Invoice.

ParameterTypeDescription
contact_idintegerOnly invoices for this contact id.
count_allbooleanIf true, the response also carries `total`, the full match count.
delinquentbooleanIf true, only overdue (delinquent) invoices.
embedstringComma-separated nested resources to expand inline, e.g. contact,category.
end_dateintegerOnly invoices dated on or before this, as a Unix timestamp in seconds.
invoice_numberstringOnly the invoice with this number.
invoice_typestringOnly this type: RE normal, WKR recurring, SR cancellation, MA reminder, TR partial, AR advance, ER final.
limitintegerMax entries to return, 1-1000 (sevdesk suggests 10-100).
offsetintegerNumber of entries to skip, for paging.
start_dateintegerOnly invoices dated on or after this, as a Unix timestamp in seconds.
statusstringOnly invoices with this status code.

sevdesk_get_invoice Get one invoice

Fetch a single invoice by id — totals, status, dates, contact and contact person. sevdesk: GET /Invoice/{invoiceId}.

ParameterTypeDescription
invoice_id *integerThe invoice's numeric id.
embedstringComma-separated nested resources to expand inline, e.g. contact,category.

sevdesk_get_invoice_positions Get an invoice's line items

List the positions (line items) of one invoice: name, quantity, price, tax rate, sums. sevdesk: GET /Invoice/{invoiceId}/getPositions.

ParameterTypeDescription
invoice_id *integerThe invoice's numeric id.
embedstringComma-separated nested resources to expand inline, e.g. contact,category.
limitintegerMax entries to return, 1-1000 (sevdesk suggests 10-100).
offsetintegerNumber of entries to skip, for paging.

sevdesk_list_vouchers List vouchers (receipts)

List vouchers — receipts and incoming/outgoing bills. Status: 50 draft, 100 unpaid/due, 1000 paid. credit_debit C = credit (revenue), D = debit (expense). At most 25 vouchers per reply (a larger limit is reduced); fields without a value (null or empty) are left out of each row. sevdesk: GET /Voucher.

ParameterTypeDescription
contact_idintegerOnly vouchers for this contact id.
count_allbooleanIf true, the response also carries `total`, the full match count.
credit_debitstringC for credit (revenue) or D for debit (expense) vouchers.
description_likestringOnly vouchers whose description contains this text.
embedstringComma-separated nested resources to expand inline, e.g. contact,category.
end_dateintegerOnly vouchers dated on or before this, as a Unix timestamp in seconds.
limitintegerMax entries to return, 1-1000 (sevdesk suggests 10-100).
offsetintegerNumber of entries to skip, for paging.
start_dateintegerOnly vouchers dated on or after this, as a Unix timestamp in seconds.
statusstringOnly vouchers with this status code.

sevdesk_get_voucher Get one voucher

Fetch a single voucher (receipt) by id. sevdesk: GET /Voucher/{voucherId}.

ParameterTypeDescription
voucher_id *integerThe voucher's numeric id.
embedstringComma-separated nested resources to expand inline, e.g. contact,category.

sevdesk_set_draft_voucher_supplier Set the supplier on a draft voucher

Assign an existing sevdesk contact as the supplier on an unlocked draft voucher (status 50). Use sevdesk_list_contacts or sevdesk_get_contact for the contact id. The tool verifies the saved supplier.

ParameterTypeDescription
supplier_id *integerThe supplier contact's numeric id.
voucher_id *integerThe voucher's numeric id.

sevdesk_list_credit_notes List credit notes

List credit notes (Gutschriften), filterable by status, number, date range and contact. Status: 100 draft, 200 open/delivered, 750 partially paid, 1000 paid. sevdesk: GET /CreditNote.

ParameterTypeDescription
contact_idintegerOnly credit notes for this contact id.
count_allbooleanIf true, the response also carries `total`, the full match count.
credit_note_numberstringOnly the credit note with this number.
embedstringComma-separated nested resources to expand inline, e.g. contact,category.
end_dateintegerOnly credit notes dated on or before this, as a Unix timestamp in seconds.
limitintegerMax entries to return, 1-1000 (sevdesk suggests 10-100).
offsetintegerNumber of entries to skip, for paging.
start_dateintegerOnly credit notes dated on or after this, as a Unix timestamp in seconds.
statusstringOnly credit notes with this status code.

sevdesk_list_orders List orders and quotes

List orders — quotes (Angebote), order confirmations and delivery notes — filterable by status, number, date range and contact. Status: 100 draft, 200 delivered, 300 rejected, 500 accepted, 750 partially calculated, 1000 calculated. sevdesk: GET /Order.

ParameterTypeDescription
contact_idintegerOnly orders for this contact id.
count_allbooleanIf true, the response also carries `total`, the full match count.
embedstringComma-separated nested resources to expand inline, e.g. contact,category.
end_dateintegerOnly orders dated on or before this, as a Unix timestamp in seconds.
limitintegerMax entries to return, 1-1000 (sevdesk suggests 10-100).
offsetintegerNumber of entries to skip, for paging.
order_numberstringOnly the order with this number.
start_dateintegerOnly orders dated on or after this, as a Unix timestamp in seconds.
statusstringOnly orders with this status code.

sevdesk_list_parts List parts (products)

List parts — the products and services in the sevdesk inventory, with prices, tax rate and stock. sevdesk: GET /Part.

ParameterTypeDescription
count_allbooleanIf true, the response also carries `total`, the full match count.
embedstringComma-separated nested resources to expand inline, e.g. contact,category.
limitintegerMax entries to return, 1-1000 (sevdesk suggests 10-100).
namestringOnly parts with this name.
offsetintegerNumber of entries to skip, for paging.
part_numberstringOnly the part with this part number.

sevdesk_list_check_accounts List payment accounts

List check accounts — the bank accounts, cash registers and clearing accounts sevdesk tracks payments on, with IBAN, type and sync status. sevdesk: GET /CheckAccount.

ParameterTypeDescription
count_allbooleanIf true, the response also carries `total`, the full match count.
embedstringComma-separated nested resources to expand inline, e.g. contact,category.
limitintegerMax entries to return, 1-1000 (sevdesk suggests 10-100).
offsetintegerNumber of entries to skip, for paging.

sevdesk_get_check_account_balance Get a payment account's balance at a date

Balance of one check account as the sum of every transaction sevdesk knows up to and including the given date. May differ from the real bank balance if older transactions were never imported. sevdesk: GET /CheckAccount/{checkAccountId}/getBalanceAtDate.

ParameterTypeDescription
check_account_id *integerThe check account's numeric id.
date *stringConsider transactions up to this date (YYYY-MM-DD, inclusive to 23:59:59).

sevdesk_list_transactions List bank transactions

List check-account transactions (bank payments in and out), filterable by account, booking state, date range, payee/payer and purpose. At most 50 transactions per reply (a larger limit is reduced); fields without a value (null or empty) are left out of each row. sevdesk: GET /CheckAccountTransaction.

ParameterTypeDescription
check_account_idintegerOnly transactions on this check account id.
count_allbooleanIf true, the response also carries `total`, the full match count.
embedstringComma-separated nested resources to expand inline, e.g. contact,category.
end_datestringOnly transactions up to this date (ISO 8601).
is_bookedbooleanIf true, only transactions already booked against a document.
limitintegerMax entries to return, 1-1000 (sevdesk suggests 10-100).
offsetintegerNumber of entries to skip, for paging.
only_creditbooleanIf true, only incoming (credit) transactions.
only_debitbooleanIf true, only outgoing (debit) transactions.
payee_payer_namestringOnly transactions with this payee / payer name.
payment_purposestringOnly transactions with this payment purpose (Verwendungszweck).
start_datestringOnly transactions from this date on (ISO 8601, e.g. 2026-01-01).

sevdesk_create_contact Create a contact

Create a contact. Give `name` for an organisation, or `surename`/`familyname` for a person. Addresses and emails are separate (use sevdesk_add_communication_way). sevdesk: POST /Contact.

ParameterTypeDescription
category_id *integerRequired category: 2 Supplier, 3 Customer, 4 Partner, 28 Prospect customer.
customer_numberstringCustomer number. Omit to let sevdesk leave it unset.
default_time_to_payintegerDefault payment term in days for this contact's invoices.
descriptionstringFree-text description.
familynamestringLast name of a PERSON.
namestringOrganisation name. Setting it makes the contact an ORGANISATION — leave empty for a person.
parent_idintegerFor a person: the id of the organisation they belong to.
status100 Lead, 500 Pending, 1000 Active.
surenamestringFirst name of a PERSON (sevdesk's field is really spelled 'surename').
tax_numberstringTax number (Steuernummer).
vat_numberstringVAT id (USt-IdNr.).

sevdesk_update_contact Update a contact

Update fields on an existing contact; only the fields you pass are sent. sevdesk: PUT /Contact/{contactId}.

ParameterTypeDescription
contact_id *integerThe contact's numeric id.
category_idintegerMove to category: 2 Supplier, 3 Customer, 4 Partner, 28 Prospect.
customer_numberstringCustomer number. Omit to let sevdesk leave it unset.
default_time_to_payintegerDefault payment term in days for this contact's invoices.
descriptionstringFree-text description.
familynamestringLast name of a PERSON.
namestringOrganisation name. Setting it makes the contact an ORGANISATION — leave empty for a person.
parent_idintegerFor a person: the id of the organisation they belong to.
status100 Lead, 500 Pending, 1000 Active.
surenamestringFirst name of a PERSON (sevdesk's field is really spelled 'surename').
tax_numberstringTax number (Steuernummer).
vat_numberstringVAT id (USt-IdNr.).

sevdesk_add_communication_way Add an email, phone or website to a contact

Attach an email address, phone/mobile number or website to a contact. key_id labels it (2 Arbeit/work is a good default; see sevdesk_list_communication_way_keys). sevdesk: POST /CommunicationWay.

ParameterTypeDescription
contact_id *integerThe contact's numeric id.
type *stringWhat kind of value this is.
value *stringThe email address, number or URL.
key_idintegerCommunication way key id (1 Privat, 2 Arbeit, 3 Fax, 4 Mobil, 8 Rechnungsadresse). Default 2.
mainbooleanMake this the contact's main communication way of its type.

sevdesk_create_draft_invoice Create a draft invoice

Create a normal invoice (type RE) with its line items, ALWAYS saved as a DRAFT (status 100): it is not sent, not booked and stays editable in sevdesk. contact_person_id is the sevdesk USER responsible for it — copy contactPerson.id from any existing invoice (sevdesk_get_invoice). Bookkeeping 2.0 accounts use tax_rule_id (1 = taxable sales in Germany, the usual choice); 1.0 accounts pass tax_type instead (check sevdesk_get_bookkeeping_system_version). sevdesk: POST /Invoice/Factory/saveInvoice.

ParameterTypeDescription
contact_id *integerThe contact (customer)'s numeric id.
contact_person_id *integerId of the sevdesk user (SevUser) acting as contact person — e.g. contactPerson.id of an existing invoice.
invoice_date *stringInvoice date as dd.mm.yyyy.
positions *arrayLine items (at least one).
addressstringComplete recipient address with line breaks. Omit to use the contact's first address (sevdesk takeDefaultAddress).
address_country_idintegersevdesk StaticCountry id of the billing address (1 = Germany). Default 1.
currencystringISO-4217 currency code. Default EUR.
customer_internal_notestringReference / order number field.
delivery_datestringDelivery / service date as dd.mm.yyyy (must not be after invoice_date for a normal invoice).
e_invoicebooleanCreate it as an e-invoice (ZUGFeRD PDF with embedded XRechnung XML; propertyIsEInvoice). sevdesk then needs your company data (address, IBAN, BIC, e-mail, phone, tax and VAT number), the contact's buy…
foot_textstringText below the line items (some HTML allowed).
head_textstringText above the line items (some HTML allowed).
headerstringInvoice header/title line.
payment_method_idintegerPayment method id (copy paymentMethod.id from an existing invoice with sevdesk_get_invoice); needed for an e-invoice.
show_netbooleanIf true (default), position prices are net.
small_settlementbooleanTrue if the account uses the small-business scheme (no VAT).
tax_rule_idstringBookkeeping 2.0 VAT rule id. 1 taxable sales (Umsatzsteuerpflichtige Umsätze), 2 exports, 3 intra-EU supplies, 4 tax-free §4 UStG, 5 reverse charge §13b, 11 small business §19 (Kleinunternehmer),…
tax_textstringVAT text printed on the invoice. Default 'Umsatzsteuer 19%'.
tax_typestringBookkeeping 1.0 only — leave unset on 2.0 accounts.
time_to_payintegerPayment term in days.

sevdesk_create_draft_order Create a draft order

WRITE: create an order (estimate / proposal by default) with its line items, ALWAYS saved as a DRAFT (status 100): it is not sent and stays editable in sevdesk. Ask the user before calling this. contact_person_id is the sevdesk USER responsible for it: copy contactPerson.id from an existing order or invoice. Bookkeeping 2.0 accounts use tax_rule_id; 1.0 accounts pass tax_type. sevdesk: POST /Order/Factory/saveOrder.

ParameterTypeDescription
address_country_id *integersevdesk StaticCountry id of the recipient address, required (1 = Germany). Pass it for every order: a default would send Germany for a foreign address.
contact_id *integerThe contact (customer)'s numeric id.
contact_person_id *integerId of the sevdesk user (SevUser) acting as contact person.
order_date *stringOrder date as dd.mm.yyyy.
order_number *stringOrder number, e.g. Angebot-1000. sevdesk requires it.
positions *arrayLine items (at least one).
tax_text *stringVAT text printed on the order and required by sevdesk, matching the VAT rule, e.g. 'Umsatzsteuer 19%' or 'Steuerfrei nach §4 UStG'.
addressstringComplete recipient address with line breaks.
currencystringISO-4217 currency code. Default EUR.
customer_internal_notestringInternal reference note.
delivery_address_country_idintegersevdesk StaticCountry id of the delivery address. Pass it with a One Stop Shop rule (18-20) when the goods go to another country than the address.
foot_textstringText below the line items (some HTML allowed).
head_textstringText above the line items (some HTML allowed).
headerstringOrder header. Default: the order number.
order_typestringAN estimate / proposal (default), AB order confirmation, LI delivery note.
show_netbooleanIf true (default), position prices are net.
small_settlementbooleanTrue if the account uses the small-business scheme (no VAT).
tax_rule_idstringBookkeeping 2.0 VAT rule id, as in sevdesk_create_draft_invoice. Default 1, or 11 when small_settlement is true.
tax_typestringBookkeeping 1.0 only, not 'custom' (that needs a tax set this tool does not take). Leave unset on 2.0 accounts.

sevdesk_get_invoice_pdf Get an invoice PDF

Return the PDF of an invoice (also a draft) to check it before sending: metadata as text, then the PDF as an embedded file. The request always sets preventSendBy=true, so reading the PDF does not mark the invoice as sent and does not change its status. Up to 10 MB. sevdesk: GET /Invoice/{invoiceId}/getPdf.

ParameterTypeDescription
invoice_id *integerThe invoice's numeric id.

sevdesk_list_document_layouts List document templates and letterpapers

List the document templates (for one document type) and the letterpapers of the account, with id, name and default flag. Use the ids with sevdesk_update_draft_invoice (template_id, letterpaper_id). Page breaks, margins and footer spacing are part of a template and are edited only in the sevdesk app. sevdesk: GET /DocServer/getTemplatesWithThumb and GET /DocServer/getLetterpapersWithThumb.

ParameterTypeDescription
typestringDocument type of the templates. Default Invoice.

sevdesk_update_draft_invoice Edit a draft invoice

Change an existing DRAFT invoice (status 100) in place instead of creating a new draft: header fields and texts, dates, payment term, address, line items (change, add, remove) and its template, letterpaper or language. Only the fields you pass change; the tool reads the invoice first and keeps every other value. It refuses an invoice that is not a draft. It never sends, books or finalises the invoice. After saving, it reads the invoice again and reports the result, including any requested change that sevdesk did not apply. Check the result with sevdesk_get_invoice_pdf. Page breaks and margins…

ParameterTypeDescription
invoice_id *integerThe draft invoice's numeric id.
add_positionsarrayNew line items, added after the existing ones.
addressstringNew complete recipient address with line breaks.
address_country_idintegersevdesk StaticCountry id of the address (1 = Germany); pass it when the country changes.
customer_internal_notestringNew reference / order number field.
delete_position_idsarrayIds of line items to remove from the draft.
delivery_datestringNew delivery / service date, dd.mm.yyyy.
e_invoicebooleanTurn the e-invoice flag on or off (propertyIsEInvoice; see sevdesk_create_draft_invoice for the data sevdesk needs).
foot_textstringNew text below the line items (some HTML allowed); an empty string clears it.
head_textstringNew text above the line items (some HTML allowed); an empty string clears it.
headerstringNew header/title line.
invoice_datestringNew invoice date, dd.mm.yyyy.
languagestringDocument language (sevdesk's codes; id_IT is sevdesk's code for Italian).
letterpaper_idstringLetterpaper id (sevdesk_list_document_layouts).
payment_method_idintegerPayment method id (paymentMethod.id of an existing invoice).
template_idstringDocument template id (sevdesk_list_document_layouts).
time_to_payintegerNew payment term in days.
update_positionsarrayLine items to change; only the fields you pass change.

sevdesk_get_invoice_xml Get the e-invoice XML

Return the XML (XRechnung) of an e-invoice: metadata as text, then the XML as an embedded file. It is the same XML that is embedded in the ZUGFeRD PDF. Reading it changes nothing. sevdesk: GET /Invoice/{invoiceId}/getXml.

ParameterTypeDescription
invoice_id *integerThe invoice's numeric id.

sevdesk_render_invoice Render an invoice and show its layout values

Render the invoice PDF (without forcing a re-render) and return its document id and current layout parameters (template, letterpaper, language, ...) with the allowed values. It never re-renders an invoice that was already sent. Get the PDF itself with sevdesk_get_invoice_pdf. sevdesk: POST /Invoice/{invoiceId}/render (forceReload false).

ParameterTypeDescription
invoice_id *integerThe invoice's numeric id.

sevdesk_send_invoice_email Send a draft invoice by e-mail

E-mail a DRAFT invoice to the customer through sevdesk (PDF, or with send_xml the e-invoice XML). Sending finalises it: sevdesk marks it as sent and it cannot be changed afterwards. Without confirm_token it only returns a preview (invoice, totals, recipient, copy, attachment, and whether the address is one of the contact's e-mails) with a confirm_token, and sends nothing. Show the preview to the user; after they agree, call again with the same arguments and that confirm_token. Send once (not in parallel). An invoice that was already sent is refused. sevdesk: POST /Invoice/{invoiceId}/sendViaEm…

ParameterTypeDescription
invoice_id *integerThe draft invoice's numeric id.
subject *stringE-mail subject.
text *stringE-mail text (HTML allowed).
to_email *stringRecipient e-mail address (one).
confirm_tokenstringThe confirm_token from the preview, only after the user approved it. Without it nothing is sent; any change of the invoice or of these arguments after the preview needs a new preview.
copybooleanAlso send a copy to yourself.
send_xmlbooleanAttach the e-invoice XML instead of the PDF (e-invoices only).

sevdesk_mark_invoice_sent Mark a draft invoice as sent

Record that a DRAFT invoice was sent outside sevdesk's e-mail (print, post, e-mail from elsewhere, downloaded PDF). This finalises it: the status changes from draft and sevdesk creates its report bookings. Nothing is delivered to anyone. Without confirm_token it only returns a preview with a confirm_token; call again with it after the user agrees. An invoice already sent is refused. sevdesk: PUT /Invoice/{invoiceId}/sendBy (sendDraft false).

ParameterTypeDescription
invoice_id *integerThe draft invoice's numeric id.
send_type *stringHow it was sent: VPR print, VP post, VM e-mail, VPDF downloaded PDF.
confirm_tokenstringThe confirm_token from the preview, only after the user approved. Without it nothing changes.