LexwareOffice icon

LexwareOffice

Node to interact with LexwareOffice

Invoice → Create

AI-generated

Overview

This node operation creates an invoice in LexwareOffice. It allows users to specify detailed invoice information such as organization ID, invoice finalization status, voucher date, language, recipient address, line items, total price, tax conditions, payment and shipping conditions, recurring template, print layout, and textual content like title, introduction, and remarks. This operation is useful for automating invoice generation and management within LexwareOffice, streamlining billing processes for businesses.

Use Case Examples

  1. Automatically create finalized invoices for completed sales orders with detailed line items and tax conditions.
  2. Generate draft invoices with specific payment and shipping terms for review before finalization.
  3. Create invoices using recurring templates for subscription-based services.

Properties

Name Meaning
Organization ID ID of the organization for which the invoice is created.
Finalize Whether to create the invoice as finalized (open status) or as a draft.
Voucher Date Date of the invoice; only the date part is used, time is ignored.
Language Language of the invoice.
Address Address details of the invoice recipient, including optional contact ID, name, street, city, zip, country code, and contact person.
XRechnung Properties for XRechnung enabled invoices, including buyer reference.
Line Items Items included in the invoice, each with ID, type, name, quantity, unit name, and unit price details.
Total Price Total price details of the invoice including currency, total net amount, total gross amount, and total tax amount.
Tax Conditions Tax calculation type for the invoice, such as net, gross, VAT free, or specific EU-related tax types.
Payment Conditions Payment terms including label, duration until due, and discount conditions.
Shipping Conditions Shipping details including type, shipping date, and shipping end date.
Recurring Template ID ID of the recurring template used for the invoice.
Print Layout ID ID of the print layout used for the invoice.
Title Title of the invoice; defaults to organization's default if not provided.
Introduction Introductory text or header; defaults to organization's default if not provided.
Remark Closing text note; defaults to organization's default if not provided.
Request Options Node settings for request batching, SSL handling, proxy, and timeout.

Output

JSON

  • id - Unique identifier of the created invoice.
  • status - Status of the created invoice (e.g., draft or finalized).
  • voucherDate - Date of the invoice voucher.
  • totalPrice - Total price details of the invoice including net, gross, and tax amounts.
  • lineItems - List of items included in the invoice with details.
  • address - Address information of the invoice recipient.
  • paymentConditions - Payment terms associated with the invoice.
  • taxConditions - Tax calculation details applied to the invoice.

Dependencies

  • An API key credential for LexwareOffice API authentication

Troubleshooting

  • Ensure the organization ID is valid and the user has permission to create invoices for it.
  • If the invoice is not appearing as finalized, check the 'finalize' boolean property and try setting it to true.
  • Make sure required address fields are provided, especially if using XRechnung options which require contactId, city, and zip.
  • Verify that the API credentials are correctly configured and have sufficient permissions.
  • Timeout errors can be resolved by increasing the 'timeout' request option or checking network connectivity.

Links

Discussion