> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lovable.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect your app to Lexware

> Connect your app to Lexware, an accounting and invoicing platform, to work with contacts, invoices, vouchers, articles, and accounting events from your Lovable app.

export const connector_0 = "Lexware"

[Lexware](https://www.lexware.de/) is an accounting and invoicing platform for managing business contacts, documents, vouchers, payments, and bookkeeping workflows. The Lexware connector lets your Lovable app call the Lexware API through a connected Lexware account. It is designed for apps that need to read or manage operational accounting data from Lexware.

With Lexware, your app can:

* Read company profile and accounting settings
* Create and retrieve contacts, articles, invoices, quotations, and vouchers
* Download generated accounting documents, such as invoice PDFs
* React to invoice, payment, and contact changes with Lexware event subscriptions
* Build bookkeeping, sales, and finance workflows around Lexware business data

Lexware is a good fit when your app needs accounting data, document workflows, or back-office automation connected to a Lexware account.

## Common use cases and example apps

| Example app                      | Example prompt                                                                                      | Description                                                                                                                                                               |
| :------------------------------- | :-------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Invoice operations dashboard** | *Use Lexware and build a dashboard that lists open invoices, payment status, and customer details.* | **Track invoice work from one internal view.**<br />The app fetches invoice and contact data from Lexware so finance teams can review outstanding work.                   |
| **Customer accounting portal**   | *Use Lexware and build a customer portal that shows invoices, quotations, and downloadable PDFs.*   | **Give customers access to accounting documents.**<br />The app retrieves the right documents from Lexware and presents them in a branded portal.                         |
| **Voucher intake workflow**      | *Use Lexware and build a voucher upload and review workflow for incoming expenses.*                 | **Move expense intake into a guided app.**<br />The app creates or retrieves voucher records in Lexware and helps operators review missing details.                       |
| **Contact management tool**      | *Use Lexware and build an internal tool for searching and updating business contacts.*              | **Keep customer and supplier records accessible.**<br />The app reads contact records from Lexware and gives teams a focused interface for finance-related customer data. |
| **Sales quote tracker**          | *Use Lexware and build a quotation tracker that shows quote status and related contacts.*           | **Monitor quotes before they become invoices.**<br />The app retrieves quotations and related contact data from Lexware for sales and finance follow-up.                  |
| **Accounting event monitor**     | *Use Lexware and build an event monitor for invoice, payment, and contact changes.*                 | **React to Lexware changes in app workflows.**<br />The app uses event subscriptions to receive change notifications and then fetches updated resources from Lexware.     |

## How to connect Lexware

Workspace **admins** and **owners** can connect Lexware.

You can create multiple Lexware connections using different API keys, which is useful for separating environments (for example, development and production) or connecting different Lexware accounts.

When the connection is created, Lexware becomes available across all projects in the workspace. Anyone building in a project can ask Lovable in chat to link their project to it.

### Prerequisites

Before connecting Lexware, make sure you have:

* A Lexware account with access to the public API
* A Lexware public API key
* Lovable workspace owner or admin role

<Note>
  All API requests made through this connector use your Lexware API key. API usage, plan limits, and billing are handled directly by Lexware, not Lovable.
</Note>

### Step 1: Get a Lexware API key

A Lexware public API key lets your Lovable app authenticate with the Lexware API. You can create separate keys for different environments or apps.

To create a Lexware API key:

<Steps>
  <Step title="Open the Lexware public API page">
    Sign in to Lexware and open the [Public API page](https://app.lexware.de/addons/public-api). If Lexware asks you to sign in first, complete the sign-in and then open the link again.
  </Step>

  <Step title="Create an API key">
    Create or generate a public API key. Give it a descriptive name, for example `Lovable integration`, if Lexware asks for one.
  </Step>

  <Step title="Copy the key">
    Copy the API key and store it securely. You need it in the next step.
  </Step>
</Steps>

<Warning>
  Your API key functions like a password. Keep it secure and never share it publicly.
</Warning>

See Lexware documentation for more: [Lexware API documentation](https://developers.lexware.io/docs/).

### Step 2: Connect Lexware to Lovable

You can create multiple connections using different API keys.

<Steps>
  <Step title="Open Lexware in Connectors">
    Go to **Connectors → App connectors** and select **Lexware**.
  </Step>

  <Step title="Add a connection">
    Click **Add connection**.
  </Step>

  <Step title="Configure the connection">
    1. **Display name**: name the connection, for example `Lexware Prod`.
    2. **API key**: paste your Lexware public API key.
  </Step>

  <Step title="Choose who can access this connection">
    Under **Who can access this connection**, decide who in your workspace can use the connection:

    * **Only you** (default): only the person creating the connection can use it and its associated data.
    * **Invite specific people**: only you and explicitly added workspace members can use the connection and its associated data.
    * **Invite entire workspace**: click **Invite entire workspace** to make the connection available to everyone in your Lovable workspace.

    See [Connection-level access](/integrations/introduction#connection-level-access) for more information.
  </Step>

  <Step title="Connect">
    Click **Connect**.
  </Step>
</Steps>

When connected, anyone building in a project can ask Lovable in chat to link their project to Lexware (based on configured connection-level access). Your Lovable apps can then work with Lexware accounting, contact, invoice, quotation, voucher, and article data.

## Working with Lexware event subscriptions

Lexware supports event subscriptions for change notifications, including invoice, payment, contact, article, voucher, quotation, and related document events.

When you ask Lovable to build webhook-based Lexware workflows, your app needs a public HTTPS callback endpoint. Lexware sends event notifications to that endpoint, and the app fetches the changed resource from Lexware after validating the callback signature.

<Note>
  Lexware applies a low global rate limit of about 2 requests per second. Use pagination where available, avoid unnecessary parallel requests, and retry rate-limit responses with backoff.
</Note>

## Limitations

The Lexware connector cannot:

* Create a Lexware account or API key for you
* Automatically rotate API keys. To rotate a key, generate a new key in Lexware and update the Lovable connection
* Preserve event subscriptions after the Lexware API key changes. Re-create Lexware event subscriptions after reconnecting with a new key
* Support per-end-user Lexware authentication. Each connection represents a single Lexware account shared across projects linked to it

## How to unlink projects from a {connector_0} connection

Editors and above can remove specific projects from a connection without deleting the connection entirely. The connection will remain available for other projects.

To unlink projects:

<Steps>
  <Step title="Open Connectors">
    Open **Connectors**, then go to **App connectors**, and select **{connector_0}**.
  </Step>

  <Step title="Open the connection">
    Open the connection you want to manage.
  </Step>

  <Step title="Select projects">
    Under **Linked projects**, check the projects you want to unlink.
  </Step>

  <Step title="Confirm">
    Click **Unlink projects** and confirm.
  </Step>
</Steps>

When unlinked, those projects will no longer have access to {connector_0} through this connection. If a project needs {connector_0} again, you can link it to any available connection.

## How to delete a {connector_0} connection

Workspace admins and owners can delete {connector_0} connections. Other members can delete a connection if they created it, or if they have been explicitly granted access to it.

<Warning>
  Deleting a connection is permanent and cannot be undone. It will remove the credentials from all linked projects, and any apps using this connection will stop working until a new connection is added.
</Warning>

Before deleting, review the **Linked projects** section to see which projects are currently using the connection.

To delete a connection:

<Steps>
  <Step title="Open Connectors">
    Open **Connectors**, then go to **App connectors**, and select **{connector_0}**.
  </Step>

  <Step title="Open the connection">
    Open the connection you want to remove.
  </Step>

  <Step title="Review linked projects">
    Review the **Linked projects** section.
  </Step>

  <Step title="Delete">
    Under **Delete this connection**, click **Delete** and confirm.
  </Step>
</Steps>
