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_formatof the project's seller config (the config of kindeinvoice), then tozugferdwith profileen16931. 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 (originclientinsources). An array (e.g.lines,payment.credit_transfers) replaces the array read from the PDF as a whole, and Feld assigns thekeyof every element: akeyinoverridesis a400 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 separatereleasecall;released_bynames the API key that created the conversion. A conversion with any error finding staysneeds_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
- 200
- 202
- 400
- 401
- 403
- 404
- 409
- 422
- 429
- 503
The same request was made before; the existing conversion
The new conversion in status processing
The body is malformed, or the invoice values do not fit the schema (code: invalid_data, every failure in errors)
Unauthorized
Forbidden
No such document in the API key's project, or e-invoice conversion is not enabled (code: einvoice_not_enabled)
conversion_exists: the document or client_reference has a conversion that a different request started
document_not_pdf, profile_not_supported or overrides_set_by_config
More requests of this kind in the last minute than the API key may make
Feld could not start reading the invoice or creating the file; the conversion is failed with a retryable error or back in ready