WSE · Schnittstellen
Dokumente & Export
Verbinden Sie WSE mit Ihren Anwendungen. Entdecken Sie Endpunkte, Datenmodelle und Schnittstellen – nach Funktionsbereichen und Add-ons geordnet.
Dokumente & Export
ERP API Dokumentation
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/customers/string/documents/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Successful Response
Fixed technical key of the generated document type
Source commercial document ID used during generation
Source commercial document type key
If true, the generated PDF contains an embedded XML attachment
If true, the generated document fulfills the additional e-invoice conformance checks
If true, an active PDF file is available for preview or download
If true, a separately stored XML file is available for preview or download
If true, a persisted render dependency snapshot is available
Filename of the embedded XML attachment if present
Template ID used to generate the document
Username or technical actor who created the document
Currently active PDF storage object of the document
Stored JSON artifact describing the exact template, style and asset inputs used during rendering
{ "document_id": "string", "customer_id": "string", "service_id": "string", "document_type_key": "invoice", "source_document_id": "string", "source_document_type_key": "invoice", "has_embedded_xml": true, "embedded_xml_filename": "string", "is_einvoice_conform": true, "template_id": "string", "display_name": "string", "description": "string", "document_date": "2019-08-24", "created_by": "string", "last_change": "2019-08-24T14:15:22Z", "template": { "template_family_id": "string", "version_no": 1, "previous_template_id": "string", "created_at": "2019-08-24T14:15:22Z", "template_id": "string", "document_type_key": "invoice", "style_id": "string", "background_id": "string", "background": { … }, "template_key": "string", "is_default": true, "is_active": true, "last_change": "2019-08-24T14:15:22Z" }, "active_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" }, "render_manifest_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" }, "render_manifest": {}, "has_active_file": true, "has_xml_file": true, "has_render_manifest": true }
# Example only: replace the instance URL, token and sample values before use.
curl --request DELETE \
--url 'https://your-instance.example.invalid/customers/string/documents/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/source-documents/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Successful Response
Fixed technical key of the generated document type
Source commercial document ID used during generation
Source commercial document type key
If true, the generated PDF contains an embedded XML attachment
If true, the generated document fulfills the additional e-invoice conformance checks
If true, an active PDF file is available for preview or download
If true, a separately stored XML file is available for preview or download
If true, a persisted render dependency snapshot is available
Filename of the embedded XML attachment if present
Template ID used to generate the document
Username or technical actor who created the document
Currently active PDF storage object of the document
Stored JSON artifact describing the exact template, style and asset inputs used during rendering
{ "document_id": "string", "customer_id": "string", "service_id": "string", "document_type_key": "invoice", "source_document_id": "string", "source_document_type_key": "invoice", "has_embedded_xml": true, "embedded_xml_filename": "string", "is_einvoice_conform": true, "template_id": "string", "display_name": "string", "description": "string", "document_date": "2019-08-24", "created_by": "string", "last_change": "2019-08-24T14:15:22Z", "template": { "template_family_id": "string", "version_no": 1, "previous_template_id": "string", "created_at": "2019-08-24T14:15:22Z", "template_id": "string", "document_type_key": "invoice", "style_id": "string", "background_id": "string", "background": { … }, "template_key": "string", "is_default": true, "is_active": true, "last_change": "2019-08-24T14:15:22Z" }, "active_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" }, "render_manifest_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" }, "render_manifest": {}, "has_active_file": true, "has_xml_file": true, "has_render_manifest": true }
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/documents?customer_id=string&service_id=string&document_type_key=invoice&skip=0&limit=100' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Control the full document-generation flow from type/template resolution to PDF/A upload and API response.
Fixed document type that should be generated
ID of the commercial core document used to resolve the rendering context
Optional explicit template ID. If omitted, the active default template of the type is used
Optional display name of the generated document
Optional description of the generated document
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
--url 'https://your-instance.example.invalid/documents' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"document_type_key": "invoice",
"template_id": "string",
"source_document_id": "string",
"display_name": "string",
"description": "string",
"document_date": "2026-03-18"
}'Successful Response
Fixed technical key of the generated document type
Source commercial document ID used during generation
Source commercial document type key
If true, the generated PDF contains an embedded XML attachment
If true, the generated document fulfills the additional e-invoice conformance checks
If true, an active PDF file is available for preview or download
If true, a separately stored XML file is available for preview or download
If true, a persisted render dependency snapshot is available
Filename of the embedded XML attachment if present
Template ID used to generate the document
Username or technical actor who created the document
Currently active PDF storage object of the document
Stored JSON artifact describing the exact template, style and asset inputs used during rendering
{ "document_id": "string", "customer_id": "string", "service_id": "string", "document_type_key": "invoice", "source_document_id": "string", "source_document_type_key": "invoice", "has_embedded_xml": true, "embedded_xml_filename": "string", "is_einvoice_conform": true, "template_id": "string", "display_name": "string", "description": "string", "document_date": "2019-08-24", "created_by": "string", "last_change": "2019-08-24T14:15:22Z", "template": { "template_family_id": "string", "version_no": 1, "previous_template_id": "string", "created_at": "2019-08-24T14:15:22Z", "template_id": "string", "document_type_key": "invoice", "style_id": "string", "background_id": "string", "background": { … }, "template_key": "string", "is_default": true, "is_active": true, "last_change": "2019-08-24T14:15:22Z" }, "active_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" }, "render_manifest_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" }, "render_manifest": {}, "has_active_file": true, "has_xml_file": true, "has_render_manifest": true }
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/customers/string/documents?service_id=string&document_type_key=invoice&skip=0&limit=100' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/customers/string/documents/string/file?download=false' \
--header 'Accept: application/pdf' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/customers/string/documents/string/xml?download=false' \
--header 'Accept: application/xml' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Render one preview PDF without committing, numbering or status changes on the source document.
Fixed document type that should be generated
ID of the commercial core document used to resolve the rendering context
Optional explicit template ID. If omitted, the active default template of the type is used
Optional display name of the generated document
Optional description of the generated document
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
--url 'https://your-instance.example.invalid/documents/preview' \
--header 'Accept: application/pdf' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"document_type_key": "invoice",
"template_id": "string",
"source_document_id": "string",
"display_name": "string",
"description": "string",
"document_date": "2026-03-18"
}'Return template placeholders and helper metadata for template editors.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/document-templates/placeholders?document_type_key=invoice&search=string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Successful Response
Supported fixed business document types.
Document types currently supported by the placeholder catalog endpoint.
Resolved placeholder definitions derived from the render schema.
{ "document_type_key": "invoice", "available_document_types": [ "invoice" ], "schema": "string", "placeholders": [ { … } ], "helpers": [ { … } ] }
Return the configured template compliance requirements for one document type.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/document-templates/compliance-requirements?document_type_key=invoice' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'{ "document_type_key": "invoice", "requirements": [ { … } ] }
Check one document template version for compliance by template id.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/document-templates/string/compliance' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Successful Response
Supported fixed business document types.
{ "template_id": "string", "template_key": "string", "document_type_key": "invoice", "is_compliant": true, "required_paths": [ "string" ], "alternative_path_groups": [ [ … ] ], "used_paths": [ "string" ], "missing_paths": [ "string" ], "missing_alternative_path_groups": [ [ … ] ], "missing_requirements": [ { … } ] }
Return one document template including style, background and active source metadata.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/document-templates/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Successful Response
Supported fixed business document types.
True if an editor_definition is present for this template
Compact document background representation.
{ "template_family_id": "string", "version_no": 1, "previous_template_id": "string", "created_at": "2019-08-24T14:15:22Z", "template_id": "string", "document_type_key": "invoice", "style_id": "string", "background_id": "string", "background": { "background_id": "string", "background_key": "string", "source_type": "html", "style_id": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z" }, "template_key": "string", "is_default": true, "is_active": true, "last_change": "2019-08-24T14:15:22Z", "style": { "style_id": "string", "style_key": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z" }, "has_editor_definition": true, "editor_definition": { "schema_version": "string", "editor_kind": "string", "state": { … } }, "active_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" } }
Update mutable metadata for an existing document template.
# Example only: replace the instance URL, token and sample values before use.
curl --request PATCH \
--url 'https://your-instance.example.invalid/document-templates/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-raw 'style_id=string&background_id=string&is_default=true&is_active=true&document_type_key=invoice'Successful Response
Supported fixed business document types.
True if an editor_definition is present for this template
Compact document background representation.
{ "template_family_id": "string", "version_no": 1, "previous_template_id": "string", "created_at": "2019-08-24T14:15:22Z", "template_id": "string", "document_type_key": "invoice", "style_id": "string", "background_id": "string", "background": { "background_id": "string", "background_key": "string", "source_type": "html", "style_id": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z" }, "template_key": "string", "is_default": true, "is_active": true, "last_change": "2019-08-24T14:15:22Z", "style": { "style_id": "string", "style_key": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z" }, "has_editor_definition": true, "editor_definition": { "schema_version": "string", "editor_kind": "string", "state": { … } }, "active_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" } }
# Example only: replace the instance URL, token and sample values before use.
curl --request DELETE \
--url 'https://your-instance.example.invalid/document-templates/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Return all versions that belong to a template family.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/document-templates/string/versions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Create a successor version of an active document template.
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
--url 'https://your-instance.example.invalid/document-templates/string/versions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--form-string 'file=string' \
--form-string 'style_id=string' \
--form-string 'background_id=string' \
--form-string 'is_default=true' \
--form-string 'editor_definition_json=string'Successful Response
Supported fixed business document types.
True if an editor_definition is present for this template
Compact document background representation.
{ "template_family_id": "string", "version_no": 1, "previous_template_id": "string", "created_at": "2019-08-24T14:15:22Z", "template_id": "string", "document_type_key": "invoice", "style_id": "string", "background_id": "string", "background": { "background_id": "string", "background_key": "string", "source_type": "html", "style_id": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z" }, "template_key": "string", "is_default": true, "is_active": true, "last_change": "2019-08-24T14:15:22Z", "style": { "style_id": "string", "style_key": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z" }, "has_editor_definition": true, "editor_definition": { "schema_version": "string", "editor_kind": "string", "state": { … } }, "active_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" } }
Return the active HTML source of one template.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/document-templates/string/html' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Successful Response
{ "template_id": "string", "html": "string", "mime_type": "string", "original_filename": "string" }
Return document templates with filtering, sorting and pagination.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/document-templates?skip=0&limit=100&sort_by=template_key&sort_order=asc&include_inactive=false&document_type_key=invoice&background_id=string&style_id=string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Create a document template for one fixed document type.
Supported fixed business document types.
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
--url 'https://your-instance.example.invalid/document-templates' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--form-string 'template_key=string' \
--form-string 'file=string' \
--form-string 'document_type_key=invoice' \
--form-string 'style_id=string' \
--form-string 'background_id=string' \
--form-string 'is_default=false' \
--form-string 'is_active=true' \
--form-string 'editor_definition_json=string'Successful Response
Supported fixed business document types.
True if an editor_definition is present for this template
Compact document background representation.
{ "template_family_id": "string", "version_no": 1, "previous_template_id": "string", "created_at": "2019-08-24T14:15:22Z", "template_id": "string", "document_type_key": "invoice", "style_id": "string", "background_id": "string", "background": { "background_id": "string", "background_key": "string", "source_type": "html", "style_id": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z" }, "template_key": "string", "is_default": true, "is_active": true, "last_change": "2019-08-24T14:15:22Z", "style": { "style_id": "string", "style_key": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z" }, "has_editor_definition": true, "editor_definition": { "schema_version": "string", "editor_kind": "string", "state": { … } }, "active_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" } }
Return one document style including its active source file.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/document-styles/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Successful Response
{ "style_id": "string", "style_key": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z", "active_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" } }
Update one document style's key, active state, or CSS file.
# Example only: replace the instance URL, token and sample values before use.
curl --request PATCH \
--url 'https://your-instance.example.invalid/document-styles/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--form-string 'style_key=string' \
--form-string 'is_active=true' \
--form-string 'file=string'Successful Response
{ "style_id": "string", "style_key": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z", "active_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" } }
# Example only: replace the instance URL, token and sample values before use.
curl --request DELETE \
--url 'https://your-instance.example.invalid/document-styles/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Return one document style including its active source file.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/styles/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Successful Response
{ "style_id": "string", "style_key": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z", "active_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" } }
Update one document style's key, active state, or CSS file.
# Example only: replace the instance URL, token and sample values before use.
curl --request PATCH \
--url 'https://your-instance.example.invalid/styles/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--form-string 'style_key=string' \
--form-string 'is_active=true' \
--form-string 'file=string'Successful Response
{ "style_id": "string", "style_key": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z", "active_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" } }
# Example only: replace the instance URL, token and sample values before use.
curl --request DELETE \
--url 'https://your-instance.example.invalid/styles/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Return document styles with filtering, sorting and pagination.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/document-styles?skip=0&limit=100&sort_by=style_key&sort_order=asc&include_inactive=false' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Create one document style and store its active CSS file.
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
--url 'https://your-instance.example.invalid/document-styles' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--form-string 'style_key=string' \
--form-string 'file=string' \
--form-string 'is_active=true'Successful Response
{ "style_id": "string", "style_key": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z", "active_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" } }
Return document styles with filtering, sorting and pagination.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/styles?skip=0&limit=100&sort_by=style_key&sort_order=asc&include_inactive=false' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Create one document style and store its active CSS file.
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
--url 'https://your-instance.example.invalid/styles' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--form-string 'style_key=string' \
--form-string 'file=string' \
--form-string 'is_active=true'Successful Response
{ "style_id": "string", "style_key": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z", "active_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" } }
Return one document asset including its active source file.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/document-assets/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Successful Response
Currently active storage object of the asset
{ "asset_id": "string", "asset_key": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z", "active_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" }, "preview_available": false }
Update one document asset's key, active state, or source file.
# Example only: replace the instance URL, token and sample values before use.
curl --request PATCH \
--url 'https://your-instance.example.invalid/document-assets/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--form-string 'asset_key=string' \
--form-string 'is_active=true' \
--form-string 'file=string'Successful Response
Currently active storage object of the asset
{ "asset_id": "string", "asset_key": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z", "active_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" }, "preview_available": false }
# Example only: replace the instance URL, token and sample values before use.
curl --request DELETE \
--url 'https://your-instance.example.invalid/document-assets/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Return the active asset image as a secure binary preview.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/document-assets/string/preview' \
--header 'Accept: image/jpeg' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Return document assets with filtering, sorting and pagination.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/document-assets?skip=0&limit=100&sort_by=asset_key&sort_order=asc&include_inactive=false' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Create one document asset and store its active source file.
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
--url 'https://your-instance.example.invalid/document-assets' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--form-string 'asset_key=string' \
--form-string 'file=string' \
--form-string 'is_active=true'Successful Response
Currently active storage object of the asset
{ "asset_id": "string", "asset_key": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z", "active_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" }, "preview_available": false }
Return one document background including its active source file.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/document-backgrounds/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Successful Response
Supported source types for document background layers.
If true, this background has an active source file that can be rendered through the preview endpoint
{ "background_id": "string", "background_key": "string", "source_type": "html", "style_id": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z", "style": { "style_id": "string", "style_key": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z" }, "preview_available": false, "active_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" } }
Update metadata, activation state or source file of one document background.
# Example only: replace the instance URL, token and sample values before use.
curl --request PATCH \
--url 'https://your-instance.example.invalid/document-backgrounds/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--form-string 'background_key=string' \
--form-string 'style_id=string' \
--form-string 'is_active=true' \
--form-string 'file=string'Successful Response
Supported source types for document background layers.
If true, this background has an active source file that can be rendered through the preview endpoint
{ "background_id": "string", "background_key": "string", "source_type": "html", "style_id": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z", "style": { "style_id": "string", "style_key": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z" }, "preview_available": false, "active_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" } }
Deactivate a document background when no active template still uses it.
# Example only: replace the instance URL, token and sample values before use.
curl --request DELETE \
--url 'https://your-instance.example.invalid/document-backgrounds/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Render one document background source as a secure PNG preview.
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
--url 'https://your-instance.example.invalid/document-backgrounds/string/preview' \
--header 'Accept: image/png' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"render_payload": {
"commercial_document": {
"buyer": {
"city": "Kassel",
"customer_description": "Customer 1",
"customer_number": 456789,
"firstname": "John",
"has_active_payment": true,
"house_number": "12",
"name": "Doe",
"payment": {
"account_holder": "Jane Doe",
"bic": "GENODEF1M03",
"iban": "DE02120300000000202051",
"mandate_reference": "MANDATE-2026-0001"
},
"postcode": "34117",
"salutation": "Mr.",
"street": "Main Street",
"tax_identification_no": "DE123456789"
},
"buyer_id": "550e8400-e29b-41d4-a716-446655440003",
"commercial_document_services": [],
"document_data": {
"document_date": "2024-01-01",
"document_id": "550e8400-e29b-41d4-a716-446655440002",
"document_no": 10001,
"document_prefix": "RE",
"document_type": "invoice",
"due_date": "2024-01-31",
"gross_sum": "119.00",
"net_sum": "100.00",
"reference_number": "AB-10001",
"service_date": "2024-01-01",
"tax": [
{
"gross_sum": "119.00",
"net_sum": "100.00",
"tax_rate": "19.00",
"tax_sum": "19.00"
}
],
"tax_sum": "19.00"
},
"positions": [
{
"full_price_gross": "59.38",
"full_price_net": "49.90",
"net_price": "49.90",
"position": 1,
"position_id": "550e8400-e29b-41d4-a716-446655440000",
"product_count": "1.00",
"product_description": "Managed operation and maintenance of the subscription.",
"product_text": "Monthly subscription",
"product_unit": "pcs",
"service_date_from": "2024-01-01",
"service_date_to": "2024-01-31",
"source_service_id": "550e8400-e29b-41d4-a716-446655440001",
"tax": "9.48",
"tax_rate": "19.00"
}
],
"seller": {
"address": {
"city": "Kassel",
"country_code": "DE",
"country_subdivision": "HE",
"line_1": "Example Street 1",
"post_code": "34117"
},
"bank": {
"account_holder": "Example GmbH",
"bank_name": "Musterbank",
"bic": "GENODEF1KAS",
"iban": "DE02120300000000202051"
},
"banks": [
{
"account_holder": "Example GmbH",
"bank_name": "Musterbank",
"bic": "GENODEF1KAS",
"iban": "DE02120300000000202051"
}
],
"business_identification_number": "DE123456789-00001",
"contact": {
"email_address": "support@example.de",
"person_name": "Support",
"telephone_number": "+49 561 12345-0"
},
"electronic_address": {
"scheme_id": "EM",
"value": "rechnung@example.de"
},
"legal_registration": {
"value": "HRB 12345"
},
"name": "Example GmbH",
"seller_identifier": {
"scheme_id": "0088",
"value": "991-1234567890"
},
"tax_representative": {},
"trading_name": "Example Telecom",
"vat_identifier": "DE123456789"
}
},
"document": {
"template_id": "string",
"template_key": "string",
"document_type_key": "invoice",
"display_name": "string",
"description": "string",
"document_date": "2019-08-24",
"created_by": "string"
}
}
}'Return document backgrounds with filtering, sorting and pagination.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/document-backgrounds?skip=0&limit=100&sort_by=background_key&sort_order=asc&include_inactive=false&source_type=html&style_id=string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Create a reusable document background and store its source file.
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
--url 'https://your-instance.example.invalid/document-backgrounds' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--form-string 'background_key=string' \
--form-string 'source_type=html' \
--form-string 'file=string' \
--form-string 'style_id=string' \
--form-string 'is_active=true'Successful Response
Supported source types for document background layers.
If true, this background has an active source file that can be rendered through the preview endpoint
{ "background_id": "string", "background_key": "string", "source_type": "html", "style_id": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z", "style": { "style_id": "string", "style_key": "string", "is_active": true, "last_change": "2019-08-24T14:15:22Z" }, "preview_available": false, "active_storage_object": { "storage_object_id": "string", "storage_profile": "string", "bucket_name": "string", "object_key": "string", "original_filename": "string", "mime_type": "string", "file_size": 0, "etag": "string", "version_id": "string", "sha256_checksum": "string", "is_active": true, "created_at": "2019-08-24T14:15:22Z", "last_change": "2019-08-24T14:15:22Z" } }
Queue one worker job that generates invoice PDFs for all eligible invoices of one invoice run.
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
--url 'https://your-instance.example.invalid/invoice-document-jobs' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"invoice_run_id": "string"
}'Return the most recent invoice-document runs.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/invoice-document-runs?status=pending&total_invoices=0&start_date_from=2019-08-24T14%3A15%3A22Z&start_date_to=2019-08-24T14%3A15%3A22Z&end_date_from=2019-08-24T14%3A15%3A22Z&end_date_to=2019-08-24T14%3A15%3A22Z' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Successful Response
[ { "invoice_document_run_id": "string", "start_date": "2019-08-24T14:15:22Z", "end_date": "2019-08-24T14:15:22Z", "heartbeat_at": "2019-08-24T14:15:22Z", "status": "pending", "invoice_run_id": "string", "total_invoices": 0, "processed_invoices": 0, "failed_invoices": 0, "comment": "string" } ]
Queue one worker job that builds both DATEV ZIP archives for one month.
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
--url 'https://your-instance.example.invalid/datev-export-jobs' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"export_year": 2000,
"export_month": 1
}'Return the most recent DATEV-export runs.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/datev-export-runs?status=pending&export_year=2000&export_month=1&total_documents=0&start_date_from=2019-08-24T14%3A15%3A22Z&start_date_to=2019-08-24T14%3A15%3A22Z&end_date_from=2019-08-24T14%3A15%3A22Z&end_date_to=2019-08-24T14%3A15%3A22Z&expired_date_from=2019-08-24&expired_date_to=2019-08-24¬_expired=true' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Successful Response
Calculated expiration date of the export archives.
[ { "datev_export_run_id": "string", "start_date": "2019-08-24T14:15:22Z", "end_date": "2019-08-24T14:15:22Z", "heartbeat_at": "2019-08-24T14:15:22Z", "status": "pending", "export_year": 0, "export_month": 0, "export_period_start": "2019-08-24", "export_period_end": "2019-08-24", "total_documents": 0, "processed_documents": 0, "failed_documents": 0, "documents_zip_filename": "string", "data_zip_filename": "string", "documents_zip_available": false, "data_zip_available": false, "comment": "string", "expired_date": "2019-08-24" } ]
Return one DATEV export run for polling and history.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/datev-export-jobs/string' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Successful Response
Calculated expiration date of the export archives.
{ "datev_export_run_id": "string", "start_date": "2019-08-24T14:15:22Z", "end_date": "2019-08-24T14:15:22Z", "heartbeat_at": "2019-08-24T14:15:22Z", "status": "pending", "export_year": 0, "export_month": 0, "export_period_start": "2019-08-24", "export_period_end": "2019-08-24", "total_documents": 0, "processed_documents": 0, "failed_documents": 0, "documents_zip_filename": "string", "data_zip_filename": "string", "documents_zip_available": false, "data_zip_available": false, "comment": "string", "expired_date": "2019-08-24" }
Download the generated documents ZIP archive of one DATEV export run.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/datev-export-jobs/string/downloads/documents' \
--header 'Accept: application/zip' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Download the generated data ZIP archive of one DATEV export run.
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
--url 'https://your-instance.example.invalid/datev-export-jobs/string/downloads/data' \
--header 'Accept: application/zip' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'