AFI AFI

Lexoffice

Estimated reading: 2 minutes Updated August 1, 2026

Lexoffice is a accounting platform. Advanced Form Integration sends form submissions to Lexoffice, so every form entry on your WordPress site can create or update records automatically without manual data entry.

What you’ll need

  • An active Lexoffice account.
  • An API token from Lexoffice (see below).
  • The Advanced Form Integration plugin installed and activated.

Get your Lexoffice API token

Lexoffice authenticates with a bearer token.

  1. Sign in to your Lexoffice account.
  2. Open Settings → API or the developer/integrations section.
  3. Generate or copy your API Token (sometimes called a Personal Access Token).
  4. Paste it in AFI → Settings → Lexoffice.

Connect Lexoffice to AFI

  1. In WordPress, go to AFI → Settings and open the Lexoffice tab.
  2. Click Add New Account and paste the API key or token.
  3. Give the account a name you will recognise.
  4. Click Save.

Create the integration

  1. Go to AFI → Add New.
  2. Give the integration a name, for example Form to Lexoffice.
  3. Under Trigger, pick the form plugin and the specific form you want to listen on.
  4. Under Action → Platform, select Lexoffice.
  5. In Task, choose Create Contact.
  6. Pick the saved account in the Lexoffice Account dropdown.
  7. Map your form fields onto the Lexoffice fields listed below.
  8. Optional: open Conditional Logic to limit which submissions are sent.
  9. Click Save Integration.

Tasks supported

Create Contact

Creates a new contact record. The contact appears in your dashboard immediately.

Field Field key Required Notes
Company Name (required for Company companyName No
VAT Registration ID (e.g. DE123456789 vatRegistrationId No
Salutation (e.g. Herr salutation No
First Name firstName Yes
Last Name (required for Person lastName Yes
Email email Yes
Phone phone No
Mobile Phone mobile No
Street + Number street No
Address Supplement (apt supplement No
Postal Code zip No
City city No
Country Code (ISO-2 countryCode No
Note note No

Conditional logic example

Only send data to Lexoffice when the form’s email field is not empty, so test submissions or incomplete entries do not create records. Add a condition: Email is not empty.

Troubleshooting

Nothing arrives in Lexoffice

Open AFI → Log and find the most recent entry for this integration. AFI stores the request it sent and the raw response it got back. If there is no log entry at all, the trigger never fired: re-check the form selection and submit a real test entry from the front end.

API key rejected

Copy the key directly from Lexoffice with no leading or trailing spaces. If the key was revoked or regenerated, update it in AFI → Settings → Lexoffice.

Related docs