Zum Hauptinhalt springen

Create E-Invoice Conversion

POST 

/einvoice/conversions

Starts turning a PDF invoice of the project into an e-invoice. Upload the PDF with POST /documents first and pass its id as document_id; you can create the conversion while Feld is still processing the upload, and it waits for the document (up to 10 minutes, then failed with a retryable error).

Upload outgoing invoices into a project without automatic workflows (Auto-classification, Auto-extraction, Pipeline Workflow, Invoice Processing): every upload starts them, and they would treat the invoice as an incoming one.

  • format / profile: default to the default_format of the project's seller config (the config of kind einvoice), then to zugferd with profile en16931. XRechnung has no profile.
  • overrides: values you already know, as a partial invoice (see GET /einvoice/schema). They replace what Feld reads from the PDF and count as confirmed (origin client in sources). An array (e.g. lines, payment.credit_transfers) replaces the array read from the PDF as a whole, and Feld assigns the key of every element: a key in overrides is a 400 invalid_data. With a seller config, its seller identity (name, VAT id, tax number, address, registration id) and bank accounts cannot be overridden.
  • auto_release: once the invoice has been read without errors (status ready), Feld creates the e-invoice file without a separate release call; released_by names the API key that created the conversion. A conversion with any error finding stays needs_review — for example an open check point or, under ZUGFeRD, a value that differs from the PDF.

Idempotent: a document has one conversion, and client_reference is unique in the project. Repeating the same request returns the existing conversion with 200; a different request for the same document or client_reference is a 409 conversion_exists.

Feld reads the invoice in the background: poll GET /einvoice/conversions/{conversion_id} while status is processing. Limited per API key and minute (429).

Request​

Responses​

The same request was made before; the existing conversion