WSE · Schnittstellen

Dokumente & Export

Verbinden Sie WSE mit Ihren Anwendungen. Entdecken Sie Endpunkte, Datenmodelle und Schnittstellen – nach Funktionsbereichen und Add-ons geordnet.

OpenAPI herunterladen ↓
REST · JSONBearer-Authentifizierung

Dokumente & Export

ERP API Dokumentation

Get Document

Request

Security
BearerAuth
Path
customer_idstring, (uuid4)(Customer Id)required
document_idstring, (uuid4)(Document Id)required
GET
/customers/{customer_id}/documents/{document_id}
# 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'

Responses

Successful Response

Bodyapplication/json
document_idstring, (uuid4)(Document Id)required

Document ID

customer_idstring, (uuid4)(Customer Id)required

Customer ID of the document

document_type_keystring(DocumentTypeEnum)required

Fixed technical key of the generated document type

Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
source_document_idstring, (uuid4)(Source Document Id)required

Source commercial document ID used during generation

source_document_type_keystring(DocumentTypeEnum)required

Source commercial document type key

Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
has_embedded_xmlboolean(Has Embedded Xml)required

If true, the generated PDF contains an embedded XML attachment

is_einvoice_conformboolean(Is Einvoice Conform)required

If true, the generated document fulfills the additional e-invoice conformance checks

display_namestring(Display Name)required

Display name of the document shown in the UI

last_changestring, (date-time)(Last Change)required
has_active_fileboolean(Has Active File)required

If true, an active PDF file is available for preview or download

has_xml_fileboolean(Has Xml File)required

If true, a separately stored XML file is available for preview or download

has_render_manifestboolean(Has Render Manifest)required

If true, a persisted render dependency snapshot is available

service_idstring or null(Service Id)
Any of:

Optional service ID of the document

string (uuid4)
embedded_xml_filenamestring or null(Embedded Xml Filename)
Any of:

Filename of the embedded XML attachment if present

string
template_idstring or null(Template Id)
Any of:

Template ID used to generate the document

string (uuid4)
descriptionstring or null(Description)
Any of:

Optional description of the document

string
document_datestring or null(Document Date)
Any of:

Business date of the document

string (date)
created_bystring or null(Created By)
Any of:

Username or technical actor who created the document

string
templateTemplateSummary (object) or null
Any of:

Template used to generate the document

active_storage_objectStorageObject (object) or null
Any of:

Currently active PDF storage object of the document

render_manifest_storage_objectStorageObject (object) or null
Any of:

Stored JSON artifact describing the exact template, style and asset inputs used during rendering

render_manifestobject or null(Render Manifest)
Any of:

Decoded render dependency snapshot of the generated document

Response
{ "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 }

Delete Document

Request

Security
BearerAuth
Path
customer_idstring, (uuid4)(Customer Id)required
document_idstring, (uuid4)(Document Id)required
DELETE
/customers/{customer_id}/documents/{document_id}
# 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'

Responses

Successful Response

Bodyapplication/json
messagestring(Message)required
Response
{ "message": "string" }

Get Document By Source Document Id

Request

Security
BearerAuth
Path
source_document_idstring, (uuid4)(Source Document Id)required
GET
/source-documents/{source_document_id}
# 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'

Responses

Successful Response

Bodyapplication/json
document_idstring, (uuid4)(Document Id)required

Document ID

customer_idstring, (uuid4)(Customer Id)required

Customer ID of the document

document_type_keystring(DocumentTypeEnum)required

Fixed technical key of the generated document type

Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
source_document_idstring, (uuid4)(Source Document Id)required

Source commercial document ID used during generation

source_document_type_keystring(DocumentTypeEnum)required

Source commercial document type key

Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
has_embedded_xmlboolean(Has Embedded Xml)required

If true, the generated PDF contains an embedded XML attachment

is_einvoice_conformboolean(Is Einvoice Conform)required

If true, the generated document fulfills the additional e-invoice conformance checks

display_namestring(Display Name)required

Display name of the document shown in the UI

last_changestring, (date-time)(Last Change)required
has_active_fileboolean(Has Active File)required

If true, an active PDF file is available for preview or download

has_xml_fileboolean(Has Xml File)required

If true, a separately stored XML file is available for preview or download

has_render_manifestboolean(Has Render Manifest)required

If true, a persisted render dependency snapshot is available

service_idstring or null(Service Id)
Any of:

Optional service ID of the document

string (uuid4)
embedded_xml_filenamestring or null(Embedded Xml Filename)
Any of:

Filename of the embedded XML attachment if present

string
template_idstring or null(Template Id)
Any of:

Template ID used to generate the document

string (uuid4)
descriptionstring or null(Description)
Any of:

Optional description of the document

string
document_datestring or null(Document Date)
Any of:

Business date of the document

string (date)
created_bystring or null(Created By)
Any of:

Username or technical actor who created the document

string
templateTemplateSummary (object) or null
Any of:

Template used to generate the document

active_storage_objectStorageObject (object) or null
Any of:

Currently active PDF storage object of the document

render_manifest_storage_objectStorageObject (object) or null
Any of:

Stored JSON artifact describing the exact template, style and asset inputs used during rendering

render_manifestobject or null(Render Manifest)
Any of:

Decoded render dependency snapshot of the generated document

Response
{ "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 }

Get Documents

Request

Security
BearerAuth
Query
customer_idstring, (uuid4)(Customer Id)required
service_idstring or null(Service Id)
Any of:
string (uuid4)
document_type_keyDocumentTypeEnum (string) or null(Document Type Key)
Any of:

Supported fixed business document types.

string(DocumentTypeEnum)
Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
skipinteger, >= 0(Skip)
Default:0
limitinteger, [ 1 .. 500 ](Limit)
Default:100
GET
/documents
# 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'

Responses

Successful Response

Bodyapplication/json
total_countinteger(Total Count)required

Total number of documents

itemsArray of objects(Items)required

List of documents

Response
{ "total_count": 0, "items": [ { … } ] }

Create Document

Request

Control the full document-generation flow from type/template resolution to PDF/A upload and API response.

Security
BearerAuth
Bodyapplication/jsonrequired
document_type_keystring(DocumentTypeEnum)required

Fixed document type that should be generated

Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
source_document_idstring, (uuid4)(Source Document Id)required

ID of the commercial core document used to resolve the rendering context

template_idstring or null(Template Id)
Any of:

Optional explicit template ID. If omitted, the active default template of the type is used

string (uuid4)
display_namestring or null(Display Name)
Any of:

Optional display name of the generated document

[ 1 .. 255 ] characters
string
descriptionstring or null(Description)
Any of:

Optional description of the generated document

<= 500 characters
string
document_datestring or null(Document Date)
Any of:

Optional business date stored on the generated document metadata

string (date)
POST
/documents
# 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"
}'

Responses

Successful Response

Bodyapplication/json
document_idstring, (uuid4)(Document Id)required

Document ID

customer_idstring, (uuid4)(Customer Id)required

Customer ID of the document

document_type_keystring(DocumentTypeEnum)required

Fixed technical key of the generated document type

Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
source_document_idstring, (uuid4)(Source Document Id)required

Source commercial document ID used during generation

source_document_type_keystring(DocumentTypeEnum)required

Source commercial document type key

Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
has_embedded_xmlboolean(Has Embedded Xml)required

If true, the generated PDF contains an embedded XML attachment

is_einvoice_conformboolean(Is Einvoice Conform)required

If true, the generated document fulfills the additional e-invoice conformance checks

display_namestring(Display Name)required

Display name of the document shown in the UI

last_changestring, (date-time)(Last Change)required
has_active_fileboolean(Has Active File)required

If true, an active PDF file is available for preview or download

has_xml_fileboolean(Has Xml File)required

If true, a separately stored XML file is available for preview or download

has_render_manifestboolean(Has Render Manifest)required

If true, a persisted render dependency snapshot is available

service_idstring or null(Service Id)
Any of:

Optional service ID of the document

string (uuid4)
embedded_xml_filenamestring or null(Embedded Xml Filename)
Any of:

Filename of the embedded XML attachment if present

string
template_idstring or null(Template Id)
Any of:

Template ID used to generate the document

string (uuid4)
descriptionstring or null(Description)
Any of:

Optional description of the document

string
document_datestring or null(Document Date)
Any of:

Business date of the document

string (date)
created_bystring or null(Created By)
Any of:

Username or technical actor who created the document

string
templateTemplateSummary (object) or null
Any of:

Template used to generate the document

active_storage_objectStorageObject (object) or null
Any of:

Currently active PDF storage object of the document

render_manifest_storage_objectStorageObject (object) or null
Any of:

Stored JSON artifact describing the exact template, style and asset inputs used during rendering

render_manifestobject or null(Render Manifest)
Any of:

Decoded render dependency snapshot of the generated document

Response
{ "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 }

Get All Documents

Request

Security
BearerAuth
Path
customer_idstring, (uuid4)(Customer Id)required
Query
service_idstring or null(Service Id)
Any of:
string (uuid4)
document_type_keyDocumentTypeEnum (string) or null(Document Type Key)
Any of:

Supported fixed business document types.

string(DocumentTypeEnum)
Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
skipinteger, >= 0(Skip)
Default:0
limitinteger, [ 1 .. 500 ](Limit)
Default:100
GET
/customers/{customer_id}/documents
# 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'

Responses

Successful Response

Bodyapplication/json
total_countinteger(Total Count)required

Total number of documents

itemsArray of objects(Items)required

List of documents

Response
{ "total_count": 0, "items": [ { … } ] }

Get Document File

Request

Security
BearerAuth
Path
customer_idstring, (uuid4)(Customer Id)required
document_idstring, (uuid4)(Document Id)required
Query
downloadboolean(Download)

If true, return Content-Disposition attachment instead of inline

Default:false
GET
/customers/{customer_id}/documents/{document_id}/file
# 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'

Responses

Document file download

Bodyapplication/pdf
string, (binary)
Response
string

Get Document Xml

Request

Security
BearerAuth
Path
customer_idstring, (uuid4)(Customer Id)required
document_idstring, (uuid4)(Document Id)required
Query
downloadboolean(Download)

If true, return Content-Disposition attachment instead of inline

Default:false
GET
/customers/{customer_id}/documents/{document_id}/xml
# 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'

Responses

Document XML download

Bodyapplication/xml
string, (binary)
Response
<root>string</root>

Preview Document

Request

Render one preview PDF without committing, numbering or status changes on the source document.

Security
BearerAuth
Bodyapplication/jsonrequired
document_type_keystring(DocumentTypeEnum)required

Fixed document type that should be generated

Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
source_document_idstring, (uuid4)(Source Document Id)required

ID of the commercial core document used to resolve the rendering context

template_idstring or null(Template Id)
Any of:

Optional explicit template ID. If omitted, the active default template of the type is used

string (uuid4)
display_namestring or null(Display Name)
Any of:

Optional display name of the generated document

[ 1 .. 255 ] characters
string
descriptionstring or null(Description)
Any of:

Optional description of the generated document

<= 500 characters
string
document_datestring or null(Document Date)
Any of:

Optional business date stored on the generated document metadata

string (date)
POST
/documents/preview
# 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"
}'

Responses

Rendered preview PDF

Bodyapplication/pdf
string, (binary)
Response
string

Get Document Template Placeholders

Request

Return template placeholders and helper metadata for template editors.

Security
BearerAuth
Query
document_type_keyDocumentTypeEnum (string) or null(Document Type Key)
Any of:

Supported fixed business document types.

string(DocumentTypeEnum)
Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
searchstring or null(Search)
Any of:

Case-insensitive placeholder filter comparable to ILIKE %term%.

>= 3 characters
string
GET
/document-templates/placeholders
# 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'

Responses

Successful Response

Bodyapplication/json
schemastring(Schema)required

Schema class name used as the source of truth for the catalog.

document_type_keyDocumentTypeEnum (string) or null
Any of:

Supported fixed business document types.

string(DocumentTypeEnum)
Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
available_document_typesArray of strings(Available Document Types)

Document types currently supported by the placeholder catalog endpoint.

placeholdersArray of objects(Placeholders)

Resolved placeholder definitions derived from the render schema.

helpersArray of objects(Helpers)

Helper functions available in the Jinja rendering environment.

Response
{ "document_type_key": "invoice", "available_document_types": [ "invoice" ], "schema": "string", "placeholders": [ { … } ], "helpers": [ { … } ] }

Get Document Template Compliance Requirements

Request

Return the configured template compliance requirements for one document type.

Security
BearerAuth
Query
document_type_keystring(DocumentTypeEnum)

Supported fixed business document types.

Default:"invoice"
Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
GET
/document-templates/compliance-requirements
# 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'

Responses

Successful Response

Bodyapplication/json
document_type_keystring(DocumentTypeEnum)required

Supported fixed business document types.

Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
requirementsArray of objects(Requirements)
Response
{ "document_type_key": "invoice", "requirements": [ { … } ] }

Get Document Template Compliance

Request

Check one document template version for compliance by template id.

Security
BearerAuth
Path
template_idstring, (uuid4)(Template Id)required
GET
/document-templates/{template_id}/compliance
# 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'

Responses

Successful Response

Bodyapplication/json
template_idstring, (uuid4)(Template Id)required
template_keystring(Template Key)required
document_type_keystring(DocumentTypeEnum)required

Supported fixed business document types.

Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
is_compliantboolean(Is Compliant)required
required_pathsArray of strings(Required Paths)
alternative_path_groupsArray of items(Alternative Path Groups)
used_pathsArray of strings(Used Paths)
missing_pathsArray of strings(Missing Paths)
missing_alternative_path_groupsArray of items(Missing Alternative Path Groups)
missing_requirementsArray of objects(Missing Requirements)
Response
{ "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": [ { … } ] }

Get Document Template

Request

Return one document template including style, background and active source metadata.

Security
BearerAuth
Path
template_idstring, (uuid4)(Template Id)required
GET
/document-templates/{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' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Responses

Successful Response

Bodyapplication/json
template_family_idstring, (uuid4)(Template Family Id)required
version_nointeger, >= 1(Version No)required
created_atstring, (date-time)(Created At)required
template_idstring, (uuid4)(Template Id)required
document_type_keystring(DocumentTypeEnum)required

Supported fixed business document types.

Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
template_keystring(Template Key)required
is_defaultboolean(Is Default)required
is_activeboolean(Is Active)required
last_changestring, (date-time)(Last Change)required
has_editor_definitionboolean(Has Editor Definition)required

True if an editor_definition is present for this template

previous_template_idstring or null(Previous Template Id)
Any of:
string (uuid4)
style_idstring or null(Style Id)
Any of:
string (uuid4)
background_idstring or null(Background Id)
Any of:
string (uuid4)
backgroundDocumentBackgroundSummary (object) or null
Any of:

Compact document background representation.

styleStyleSummary (object) or null
Any of:

Default style assigned to the template

editor_definitionEditorDefinition (object) or null
Any of:
active_storage_objectStorageObject (object) or null
Any of:

Currently active storage object of the template

Response
{ "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 Document Template

Request

Update mutable metadata for an existing document template.

Security
BearerAuth
Path
template_idstring, (uuid4)(Template Id)required
Bodyapplication/x-www-form-urlencodedrequired
style_idstring or null(Style Id)
Any of:
string
background_idstring or null(Background Id)
Any of:
string
is_defaultboolean or null(Is Default)
Any of:
boolean
is_activeboolean or null(Is Active)
Any of:
boolean
document_type_keyDocumentTypeEnum (string) or null
Any of:

Supported fixed business document types.

string(DocumentTypeEnum)
Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
PATCH
/document-templates/{template_id}
# 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'

Responses

Successful Response

Bodyapplication/json
template_family_idstring, (uuid4)(Template Family Id)required
version_nointeger, >= 1(Version No)required
created_atstring, (date-time)(Created At)required
template_idstring, (uuid4)(Template Id)required
document_type_keystring(DocumentTypeEnum)required

Supported fixed business document types.

Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
template_keystring(Template Key)required
is_defaultboolean(Is Default)required
is_activeboolean(Is Active)required
last_changestring, (date-time)(Last Change)required
has_editor_definitionboolean(Has Editor Definition)required

True if an editor_definition is present for this template

previous_template_idstring or null(Previous Template Id)
Any of:
string (uuid4)
style_idstring or null(Style Id)
Any of:
string (uuid4)
background_idstring or null(Background Id)
Any of:
string (uuid4)
backgroundDocumentBackgroundSummary (object) or null
Any of:

Compact document background representation.

styleStyleSummary (object) or null
Any of:

Default style assigned to the template

editor_definitionEditorDefinition (object) or null
Any of:
active_storage_objectStorageObject (object) or null
Any of:

Currently active storage object of the template

Response
{ "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" } }

Delete Document Template

Request

Security
BearerAuth
Path
template_idstring, (uuid4)(Template Id)required
DELETE
/document-templates/{template_id}
# 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'

Responses

Successful Response

Bodyapplication/json
messagestring(Message)required
Response
{ "message": "string" }

Get Document Template Versions

Request

Return all versions that belong to a template family.

Security
BearerAuth
Path
template_idstring, (uuid4)(Template Id)required
GET
/document-templates/{template_id}/versions
# 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'

Responses

Successful Response

Bodyapplication/json
total_countinteger(Total Count)required

Total number of templates

itemsArray of objects(Items)required

List of templates

Response
{ "total_count": 0, "items": [ { … } ] }

Create Document Template Version

Request

Create a successor version of an active document template.

Security
BearerAuth
Path
template_idstring, (uuid4)(Template Id)required
Bodymultipart/form-datarequired
filestring(File)required
style_idstring or null(Style Id)
Any of:
string
background_idstring or null(Background Id)
Any of:
string
is_defaultboolean or null(Is Default)
Any of:
boolean
editor_definition_jsonstring or null(Editor Definition Json)
Any of:

Optional editor definition serialized as JSON string

string
POST
/document-templates/{template_id}/versions
# 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'

Responses

Successful Response

Bodyapplication/json
template_family_idstring, (uuid4)(Template Family Id)required
version_nointeger, >= 1(Version No)required
created_atstring, (date-time)(Created At)required
template_idstring, (uuid4)(Template Id)required
document_type_keystring(DocumentTypeEnum)required

Supported fixed business document types.

Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
template_keystring(Template Key)required
is_defaultboolean(Is Default)required
is_activeboolean(Is Active)required
last_changestring, (date-time)(Last Change)required
has_editor_definitionboolean(Has Editor Definition)required

True if an editor_definition is present for this template

previous_template_idstring or null(Previous Template Id)
Any of:
string (uuid4)
style_idstring or null(Style Id)
Any of:
string (uuid4)
background_idstring or null(Background Id)
Any of:
string (uuid4)
backgroundDocumentBackgroundSummary (object) or null
Any of:

Compact document background representation.

styleStyleSummary (object) or null
Any of:

Default style assigned to the template

editor_definitionEditorDefinition (object) or null
Any of:
active_storage_objectStorageObject (object) or null
Any of:

Currently active storage object of the template

Response
{ "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" } }

Get Document Template Html

Request

Return the active HTML source of one template.

Security
BearerAuth
Path
template_idstring, (uuid4)(Template Id)required
GET
/document-templates/{template_id}/html
# 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'

Responses

Successful Response

Bodyapplication/json
template_idstring, (uuid4)(Template Id)required

Unique identifier of the template

htmlstring(Html)required

Raw HTML source code of the template

mime_typestring(Mime Type)required

MIME type of the stored template source

original_filenamestring(Original Filename)required

Original filename of the active template source

Response
{ "template_id": "string", "html": "string", "mime_type": "string", "original_filename": "string" }

Get All Document Templates

Request

Return document templates with filtering, sorting and pagination.

Security
BearerAuth
Query
skipinteger, >= 0(Skip)
Default:0
limitinteger, [ 1 .. 1000 ](Limit)
Default:100
sort_bystring(Sort By)
Default:"last_change"
Enum:"template_key""is_default""is_active""last_change"
sort_orderstring(Sort Order)
Default:"asc"
Enum:"asc""desc"
include_inactiveboolean(Include Inactive)
Default:false
document_type_keyDocumentTypeEnum (string) or null(Document Type Key)
Any of:

Supported fixed business document types.

string(DocumentTypeEnum)
Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
background_idstring or null(Background Id)
Any of:
string (uuid4)
style_idstring or null(Style Id)
Any of:
string (uuid4)
GET
/document-templates
# 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'

Responses

Successful Response

Bodyapplication/json
total_countinteger(Total Count)required

Total number of templates

itemsArray of objects(Items)required

List of templates

Response
{ "total_count": 0, "items": [ { … } ] }

Create Document Template

Request

Create a document template for one fixed document type.

Security
BearerAuth
Bodymultipart/form-datarequired
template_keystring(Template Key)required
filestring(File)required
document_type_keystring(DocumentTypeEnum)required

Supported fixed business document types.

Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
style_idstring or null(Style Id)
Any of:
string
background_idstring or null(Background Id)
Any of:
string
is_defaultboolean(Is Default)
Default:false
is_activeboolean(Is Active)
Default:true
editor_definition_jsonstring or null(Editor Definition Json)
Any of:

Optional editor definition serialized as JSON string

string
POST
/document-templates
# 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'

Responses

Successful Response

Bodyapplication/json
template_family_idstring, (uuid4)(Template Family Id)required
version_nointeger, >= 1(Version No)required
created_atstring, (date-time)(Created At)required
template_idstring, (uuid4)(Template Id)required
document_type_keystring(DocumentTypeEnum)required

Supported fixed business document types.

Enum:"invoice""corrective_invoice""order_confirmation""quotation""self_billing_invoice""payment_reminder""delivery_note"
template_keystring(Template Key)required
is_defaultboolean(Is Default)required
is_activeboolean(Is Active)required
last_changestring, (date-time)(Last Change)required
has_editor_definitionboolean(Has Editor Definition)required

True if an editor_definition is present for this template

previous_template_idstring or null(Previous Template Id)
Any of:
string (uuid4)
style_idstring or null(Style Id)
Any of:
string (uuid4)
background_idstring or null(Background Id)
Any of:
string (uuid4)
backgroundDocumentBackgroundSummary (object) or null
Any of:

Compact document background representation.

styleStyleSummary (object) or null
Any of:

Default style assigned to the template

editor_definitionEditorDefinition (object) or null
Any of:
active_storage_objectStorageObject (object) or null
Any of:

Currently active storage object of the template

Response
{ "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" } }

Get Document Style

Request

Return one document style including its active source file.

Security
BearerAuth
Path
style_idstring, (uuid4)(Style Id)required
GET
/document-styles/{style_id}
# 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'

Responses

Successful Response

Bodyapplication/json
style_idstring, (uuid4)(Style Id)required
style_keystring(Style Key)required
is_activeboolean(Is Active)required
last_changestring, (date-time)(Last Change)required
active_storage_objectStorageObject (object) or null
Any of:

Currently active storage object of the style

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 Document Style

Request

Update one document style's key, active state, or CSS file.

Security
BearerAuth
Path
style_idstring, (uuid4)(Style Id)required
Bodymultipart/form-datarequired
style_keystring or null(Style Key)
Any of:
string
is_activeboolean or null(Is Active)
Any of:
boolean
filestring or null(File)
Any of:
string
PATCH
/document-styles/{style_id}
# 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'

Responses

Successful Response

Bodyapplication/json
style_idstring, (uuid4)(Style Id)required
style_keystring(Style Key)required
is_activeboolean(Is Active)required
last_changestring, (date-time)(Last Change)required
active_storage_objectStorageObject (object) or null
Any of:

Currently active storage object of the style

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" } }

Delete Document Style

Request

Security
BearerAuth
Path
style_idstring, (uuid4)(Style Id)required
DELETE
/document-styles/{style_id}
# 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'

Responses

Successful Response

Bodyapplication/json
messagestring(Message)required
Response
{ "message": "string" }

Get Document Style

Request

Return one document style including its active source file.

Security
BearerAuth
Path
style_idstring, (uuid4)(Style Id)required
GET
/styles/{style_id}
# 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'

Responses

Successful Response

Bodyapplication/json
style_idstring, (uuid4)(Style Id)required
style_keystring(Style Key)required
is_activeboolean(Is Active)required
last_changestring, (date-time)(Last Change)required
active_storage_objectStorageObject (object) or null
Any of:

Currently active storage object of the style

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 Document Style

Request

Update one document style's key, active state, or CSS file.

Security
BearerAuth
Path
style_idstring, (uuid4)(Style Id)required
Bodymultipart/form-datarequired
style_keystring or null(Style Key)
Any of:
string
is_activeboolean or null(Is Active)
Any of:
boolean
filestring or null(File)
Any of:
string
PATCH
/styles/{style_id}
# 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'

Responses

Successful Response

Bodyapplication/json
style_idstring, (uuid4)(Style Id)required
style_keystring(Style Key)required
is_activeboolean(Is Active)required
last_changestring, (date-time)(Last Change)required
active_storage_objectStorageObject (object) or null
Any of:

Currently active storage object of the style

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" } }

Delete Document Style

Request

Security
BearerAuth
Path
style_idstring, (uuid4)(Style Id)required
DELETE
/styles/{style_id}
# 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'

Responses

Successful Response

Bodyapplication/json
messagestring(Message)required
Response
{ "message": "string" }

Get All Document Styles

Request

Return document styles with filtering, sorting and pagination.

Security
BearerAuth
Query
skipinteger, >= 0(Skip)
Default:0
limitinteger, [ 1 .. 1000 ](Limit)
Default:100
sort_bystring(Sort By)
Default:"last_change"
Enum:"style_key""is_active""last_change"
sort_orderstring(Sort Order)
Default:"asc"
Enum:"asc""desc"
include_inactiveboolean(Include Inactive)
Default:false
GET
/document-styles
# 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'

Responses

Successful Response

Bodyapplication/json
total_countinteger(Total Count)required

Total number of styles

itemsArray of objects(Items)required

List of styles

Response
{ "total_count": 0, "items": [ { … } ] }

Create Document Style

Request

Create one document style and store its active CSS file.

Security
BearerAuth
Bodymultipart/form-datarequired
style_keystring(Style Key)required
filestring(File)required
is_activeboolean(Is Active)
Default:true
POST
/document-styles
# 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'

Responses

Successful Response

Bodyapplication/json
style_idstring, (uuid4)(Style Id)required
style_keystring(Style Key)required
is_activeboolean(Is Active)required
last_changestring, (date-time)(Last Change)required
active_storage_objectStorageObject (object) or null
Any of:

Currently active storage object of the style

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" } }

Get All Document Styles

Request

Return document styles with filtering, sorting and pagination.

Security
BearerAuth
Query
skipinteger, >= 0(Skip)
Default:0
limitinteger, [ 1 .. 1000 ](Limit)
Default:100
sort_bystring(Sort By)
Default:"last_change"
Enum:"style_key""is_active""last_change"
sort_orderstring(Sort Order)
Default:"asc"
Enum:"asc""desc"
include_inactiveboolean(Include Inactive)
Default:false
GET
/styles
# 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'

Responses

Successful Response

Bodyapplication/json
total_countinteger(Total Count)required

Total number of styles

itemsArray of objects(Items)required

List of styles

Response
{ "total_count": 0, "items": [ { … } ] }

Create Document Style

Request

Create one document style and store its active CSS file.

Security
BearerAuth
Bodymultipart/form-datarequired
style_keystring(Style Key)required
filestring(File)required
is_activeboolean(Is Active)
Default:true
POST
/styles
# 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'

Responses

Successful Response

Bodyapplication/json
style_idstring, (uuid4)(Style Id)required
style_keystring(Style Key)required
is_activeboolean(Is Active)required
last_changestring, (date-time)(Last Change)required
active_storage_objectStorageObject (object) or null
Any of:

Currently active storage object of the style

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" } }

Get Document Asset

Request

Return one document asset including its active source file.

Security
BearerAuth
Path
asset_idstring, (uuid4)(Asset Id)required
GET
/document-assets/{asset_id}
# 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'

Responses

Successful Response

Bodyapplication/json
asset_idstring, (uuid4)(Asset Id)required
asset_keystring(Asset Key)required
is_activeboolean(Is Active)required
last_changestring, (date-time)(Last Change)required
active_storage_objectStorageObject (object) or null
Any of:

Currently active storage object of the asset

preview_availableboolean(Preview Available)

If true, this asset has an active image file that can be loaded through the preview endpoint

Default:false
Response
{ "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 Document Asset

Request

Update one document asset's key, active state, or source file.

Security
BearerAuth
Path
asset_idstring, (uuid4)(Asset Id)required
Bodymultipart/form-datarequired
asset_keystring or null(Asset Key)
Any of:
string
is_activeboolean or null(Is Active)
Any of:
boolean
filestring or null(File)
Any of:
string
PATCH
/document-assets/{asset_id}
# 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'

Responses

Successful Response

Bodyapplication/json
asset_idstring, (uuid4)(Asset Id)required
asset_keystring(Asset Key)required
is_activeboolean(Is Active)required
last_changestring, (date-time)(Last Change)required
active_storage_objectStorageObject (object) or null
Any of:

Currently active storage object of the asset

preview_availableboolean(Preview Available)

If true, this asset has an active image file that can be loaded through the preview endpoint

Default:false
Response
{ "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 }

Delete Document Asset

Request

Security
BearerAuth
Path
asset_idstring, (uuid4)(Asset Id)required
DELETE
/document-assets/{asset_id}
# 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'

Responses

Successful Response

Bodyapplication/json
messagestring(Message)required
Response
{ "message": "string" }

Get Document Asset Preview

Request

Return the active asset image as a secure binary preview.

Security
BearerAuth
Path
asset_idstring, (uuid4)(Asset Id)required
GET
/document-assets/{asset_id}/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'

Responses

Asset image preview

Body
string, (binary)
Response
string

Get All Document Assets

Request

Return document assets with filtering, sorting and pagination.

Security
BearerAuth
Query
skipinteger, >= 0(Skip)
Default:0
limitinteger, [ 1 .. 1000 ](Limit)
Default:100
sort_bystring(Sort By)
Default:"last_change"
Enum:"asset_key""is_active""last_change"
sort_orderstring(Sort Order)
Default:"asc"
Enum:"asc""desc"
include_inactiveboolean(Include Inactive)
Default:false
GET
/document-assets
# 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'

Responses

Successful Response

Bodyapplication/json
total_countinteger(Total Count)required

Total number of assets

itemsArray of objects(Items)required

List of assets

Response
{ "total_count": 0, "items": [ { … } ] }

Create Document Asset

Request

Create one document asset and store its active source file.

Security
BearerAuth
Bodymultipart/form-datarequired
asset_keystring(Asset Key)required
filestring(File)required
is_activeboolean(Is Active)
Default:true
POST
/document-assets
# 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'

Responses

Successful Response

Bodyapplication/json
asset_idstring, (uuid4)(Asset Id)required
asset_keystring(Asset Key)required
is_activeboolean(Is Active)required
last_changestring, (date-time)(Last Change)required
active_storage_objectStorageObject (object) or null
Any of:

Currently active storage object of the asset

preview_availableboolean(Preview Available)

If true, this asset has an active image file that can be loaded through the preview endpoint

Default:false
Response
{ "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 }

Get Document Background

Request

Return one document background including its active source file.

Security
BearerAuth
Path
background_idstring, (uuid4)(Background Id)required
GET
/document-backgrounds/{background_id}
# 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'

Responses

Successful Response

Bodyapplication/json
background_idstring, (uuid4)(Background Id)required
background_keystring(Background Key)required
source_typestring(DocumentBackgroundSourceTypeEnum)required

Supported source types for document background layers.

Enum:"html""pdf"
is_activeboolean(Is Active)required
last_changestring, (date-time)(Last Change)required
style_idstring or null(Style Id)
Any of:
string (uuid4)
styleStyleSummary (object) or null
Any of:

Style assigned to an HTML background

preview_availableboolean(Preview Available)

If true, this background has an active source file that can be rendered through the preview endpoint

Default:false
active_storage_objectStorageObject (object) or null
Any of:

Currently active background source file

Response
{ "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 Document Background

Request

Update metadata, activation state or source file of one document background.

Security
BearerAuth
Path
background_idstring, (uuid4)(Background Id)required
Bodymultipart/form-datarequired
background_keystring or null(Background Key)
Any of:
string
style_idstring or null(Style Id)
Any of:
string
is_activeboolean or null(Is Active)
Any of:
boolean
filestring or null(File)
Any of:
string
PATCH
/document-backgrounds/{background_id}
# 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'

Responses

Successful Response

Bodyapplication/json
background_idstring, (uuid4)(Background Id)required
background_keystring(Background Key)required
source_typestring(DocumentBackgroundSourceTypeEnum)required

Supported source types for document background layers.

Enum:"html""pdf"
is_activeboolean(Is Active)required
last_changestring, (date-time)(Last Change)required
style_idstring or null(Style Id)
Any of:
string (uuid4)
styleStyleSummary (object) or null
Any of:

Style assigned to an HTML background

preview_availableboolean(Preview Available)

If true, this background has an active source file that can be rendered through the preview endpoint

Default:false
active_storage_objectStorageObject (object) or null
Any of:

Currently active background source file

Response
{ "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" } }

Delete Document Background

Request

Deactivate a document background when no active template still uses it.

Security
BearerAuth
Path
background_idstring, (uuid4)(Background Id)required
DELETE
/document-backgrounds/{background_id}
# 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'

Responses

Successful Response

Bodyapplication/json
messagestring(Message)required
Response
{ "message": "string" }

Preview Document Background

Request

Render one document background source as a secure PNG preview.

Security
BearerAuth
Path
background_idstring, (uuid4)(Background Id)required
Bodyapplication/json
Any of:

Request payload for rendering one document background preview.

render_payloadCommonDocumentRenderData (object) or null
Any of:

Required render payload for HTML backgrounds; ignored for PDF backgrounds

POST
/document-backgrounds/{background_id}/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"
    }
  }
}'

Responses

Rendered document background A4 PNG preview

Bodyimage/png
string, (binary)
Response
string

Get All Document Backgrounds

Request

Return document backgrounds with filtering, sorting and pagination.

Security
BearerAuth
Query
skipinteger, >= 0(Skip)
Default:0
limitinteger, [ 1 .. 1000 ](Limit)
Default:100
sort_bystring(Sort By)
Default:"last_change"
Enum:"background_key""source_type""is_active""last_change"
sort_orderstring(Sort Order)
Default:"asc"
Enum:"asc""desc"
include_inactiveboolean(Include Inactive)
Default:false
source_typeDocumentBackgroundSourceTypeEnum (string) or null(Source Type)
Any of:

Supported source types for document background layers.

string(DocumentBackgroundSourceTypeEnum)
Enum:"html""pdf"
style_idstring or null(Style Id)
Any of:
string (uuid4)
GET
/document-backgrounds
# 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'

Responses

Successful Response

Bodyapplication/json
total_countinteger(Total Count)required

Total number of document backgrounds

itemsArray of objects(Items)required

List of document backgrounds

Response
{ "total_count": 0, "items": [ { … } ] }

Create Document Background

Request

Create a reusable document background and store its source file.

Security
BearerAuth
Bodymultipart/form-datarequired
background_keystring(Background Key)required
source_typestring(DocumentBackgroundSourceTypeEnum)required

Supported source types for document background layers.

Enum:"html""pdf"
filestring(File)required
style_idstring or null(Style Id)
Any of:
string
is_activeboolean(Is Active)
Default:true
POST
/document-backgrounds
# 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'

Responses

Successful Response

Bodyapplication/json
background_idstring, (uuid4)(Background Id)required
background_keystring(Background Key)required
source_typestring(DocumentBackgroundSourceTypeEnum)required

Supported source types for document background layers.

Enum:"html""pdf"
is_activeboolean(Is Active)required
last_changestring, (date-time)(Last Change)required
style_idstring or null(Style Id)
Any of:
string (uuid4)
styleStyleSummary (object) or null
Any of:

Style assigned to an HTML background

preview_availableboolean(Preview Available)

If true, this background has an active source file that can be rendered through the preview endpoint

Default:false
active_storage_objectStorageObject (object) or null
Any of:

Currently active background source file

Response
{ "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" } }

Create Invoice Document Job

Request

Queue one worker job that generates invoice PDFs for all eligible invoices of one invoice run.

Security
BearerAuth
Bodyapplication/jsonrequired
invoice_run_idstring, (uuid4)(Invoice Run Id)required

Invoice run whose invoices should be turned into documents

POST
/invoice-document-jobs
# 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"
}'

Responses

Successful Response

Bodyapplication/json
messagestring(Message)required
invoice_document_run_idstring, (uuid4)(Invoice Document Run Id)required
Response
{ "message": "string", "invoice_document_run_id": "string" }

Get Invoice Document Runs

Request

Return the most recent invoice-document runs.

Security
BearerAuth
Query
statusInvoiceDocumentRunStatus (string) or null(Status)
Any of:

Filter by status using exact match

string(InvoiceDocumentRunStatus)
Enum:"pending""running""finished""failed"
total_invoicesinteger or null(Total Invoices)
Any of:

Filter by total_invoices using exact match

>= 0
integer
start_date_fromstring or null(Start Date From)
Any of:

Filter by start_date greater than or equal

string (date-time)
start_date_tostring or null(Start Date To)
Any of:

Filter by start_date less than or equal

string (date-time)
end_date_fromstring or null(End Date From)
Any of:

Filter by end_date greater than or equal

string (date-time)
end_date_tostring or null(End Date To)
Any of:

Filter by end_date less than or equal

string (date-time)
GET
/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'

Responses

Successful Response

Bodyapplication/json
Array [
invoice_document_run_idstring, (uuid4)(Invoice Document Run Id)required
start_datestring, (date-time)(Start Date)required
statusstring(InvoiceDocumentRunStatus)required
Enum:"pending""running""finished""failed"
total_invoicesinteger(Total Invoices)required
processed_invoicesinteger(Processed Invoices)required
failed_invoicesinteger(Failed Invoices)required
end_datestring or null(End Date)
Any of:
string (date-time)
heartbeat_atstring or null(Heartbeat At)
Any of:
string (date-time)
invoice_run_idstring or null(Invoice Run Id)
Any of:
string (uuid4)
commentstring or null(Comment)
Any of:
string
]
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" } ]

Create Datev Export Job

Request

Queue one worker job that builds both DATEV ZIP archives for one month.

Security
BearerAuth
Bodyapplication/jsonrequired
export_yearinteger, [ 2000 .. 2100 ](Export Year)required

Export year

export_monthinteger, [ 1 .. 12 ](Export Month)required

Export month (1-12)

POST
/datev-export-jobs
# 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
}'

Responses

Successful Response

Bodyapplication/json
messagestring(Message)required
datev_export_run_idstring, (uuid4)(Datev Export Run Id)required
Response
{ "message": "string", "datev_export_run_id": "string" }

Get Datev Export Runs

Request

Return the most recent DATEV-export runs.

Security
BearerAuth
Query
statusDatevExportRunStatus (string) or null(Status)
Any of:

Filter by status using exact match

string(DatevExportRunStatus)
Enum:"pending""running""finished""failed"
export_yearinteger or null(Export Year)
Any of:

Filter by export_year using exact match

[ 2000 .. 2100 ]
integer
export_monthinteger or null(Export Month)
Any of:

Filter by export_month using exact match

[ 1 .. 12 ]
integer
total_documentsinteger or null(Total Documents)
Any of:

Filter by total_documents using exact match

>= 0
integer
start_date_fromstring or null(Start Date From)
Any of:

Filter by start_date greater than or equal

string (date-time)
start_date_tostring or null(Start Date To)
Any of:

Filter by start_date less than or equal

string (date-time)
end_date_fromstring or null(End Date From)
Any of:

Filter by end_date greater than or equal

string (date-time)
end_date_tostring or null(End Date To)
Any of:

Filter by end_date less than or equal

string (date-time)
expired_date_fromstring or null(Expired Date From)
Any of:

Filter by expired_date greater than or equal

string (date)
expired_date_tostring or null(Expired Date To)
Any of:

Filter by expired_date less than or equal

string (date)
not_expiredboolean or null(Not Expired)
Any of:

Filter to finished exports whose expired_date has not passed yet

boolean
GET
/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&not_expired=true' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Responses

Successful Response

Bodyapplication/json
Array [
datev_export_run_idstring, (uuid4)(Datev Export Run Id)required
start_datestring, (date-time)(Start Date)required
statusstring(DatevExportRunStatus)required
Enum:"pending""running""finished""failed"
export_yearinteger(Export Year)required
export_monthinteger(Export Month)required
export_period_startstring, (date)(Export Period Start)required
export_period_endstring, (date)(Export Period End)required
total_documentsinteger(Total Documents)required
processed_documentsinteger(Processed Documents)required
failed_documentsinteger(Failed Documents)required
expired_datestring or null(Expired Date)read-onlyrequired
Any of:

Calculated expiration date of the export archives.

string (date)read-only
end_datestring or null(End Date)
Any of:
string (date-time)
heartbeat_atstring or null(Heartbeat At)
Any of:
string (date-time)
documents_zip_filenamestring or null(Documents Zip Filename)
Any of:
string
data_zip_filenamestring or null(Data Zip Filename)
Any of:
string
documents_zip_availableboolean(Documents Zip Available)
Default:false
data_zip_availableboolean(Data Zip Available)
Default:false
commentstring or null(Comment)
Any of:
string
]
Response
[ { "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" } ]

Get Datev Export Job

Request

Return one DATEV export run for polling and history.

Security
BearerAuth
Path
datev_export_run_idstring(Datev Export Run Id)required
GET
/datev-export-jobs/{datev_export_run_id}
# 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'

Responses

Successful Response

Bodyapplication/json
datev_export_run_idstring, (uuid4)(Datev Export Run Id)required
start_datestring, (date-time)(Start Date)required
statusstring(DatevExportRunStatus)required
Enum:"pending""running""finished""failed"
export_yearinteger(Export Year)required
export_monthinteger(Export Month)required
export_period_startstring, (date)(Export Period Start)required
export_period_endstring, (date)(Export Period End)required
total_documentsinteger(Total Documents)required
processed_documentsinteger(Processed Documents)required
failed_documentsinteger(Failed Documents)required
expired_datestring or null(Expired Date)read-onlyrequired
Any of:

Calculated expiration date of the export archives.

string (date)read-only
end_datestring or null(End Date)
Any of:
string (date-time)
heartbeat_atstring or null(Heartbeat At)
Any of:
string (date-time)
documents_zip_filenamestring or null(Documents Zip Filename)
Any of:
string
data_zip_filenamestring or null(Data Zip Filename)
Any of:
string
documents_zip_availableboolean(Documents Zip Available)
Default:false
data_zip_availableboolean(Data Zip Available)
Default:false
commentstring or null(Comment)
Any of:
string
Response
{ "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 Datev Documents Archive

Request

Download the generated documents ZIP archive of one DATEV export run.

Security
BearerAuth
Path
datev_export_run_idstring(Datev Export Run Id)required
GET
/datev-export-jobs/{datev_export_run_id}/downloads/documents
# 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'

Responses

ZIP archive containing exported document files.

Bodyapplication/zip
string, (binary)
Response
string

Download Datev Data Archive

Request

Download the generated data ZIP archive of one DATEV export run.

Security
BearerAuth
Path
datev_export_run_idstring(Datev Export Run Id)required
GET
/datev-export-jobs/{datev_export_run_id}/downloads/data
# 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'

Responses

ZIP archive containing DATEV data files.

Bodyapplication/zip
string, (binary)
Response
string