Xentral icon

Xentral

Interact with Xentral ERP API

Actions196

Invoice → Create

AI-generated

Summary

Create a new invoice in Xentral by specifying the required Customer ID and optional additional invoice details.

Inputs

  • Customer ID (required) — The ID of the customer (business contact) used as address.id in the API.
  • Additional Fields — Optional collection of fields including body introduction and closing text, cost center, currency, customer order number, delivery date and terms, deviating debtor account number, document address override, document date, dunning settings, editor ID, internal comment and designation, language, master reference number, print settings, project ID, sales representative ID, tags, taxation type, alternative document title usage, and VAT ID.

Output shape

A single record containing details of the created invoice as returned by the Xentral API.

The output includes all invoice properties provided or set by the API, wrapped in a single JSON object. Errors from the API are returned as failure responses.

Examples

Example 1: Create invoice with mandatory customerId and optional fields like currency and internal comment.

Set Customer ID to the target customer's ID, optionally fill additional fields such as currency to 'EUR' and internalComment with notes.

Links

Discussion