WSE · Schnittstellen

Weitere Schnittstellen

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

OpenAPI herunterladen ↓
REST · JSONBearer-Authentifizierung

Weitere Schnittstellen

ERP API Dokumentation

document-library

List Documents

Authorizations:
BearerAuth
query Parameters
Customer Id (string) or Customer Id (null) (Customer Id)
Service Id (string) or Service Id (null) (Service Id)
DocumentTypeEnum (string) or "correspondence" (string) or Document Type (null) (Document Type)
Origin (string) or Origin (null) (Origin)
Date From (string) or Date From (null) (Date From)
Date To (string) or Date To (null) (Date To)
offset
integer (Offset)
Default: 0
limit
integer (Limit)
Default: 100

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/document-library?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&service_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&document_type=invoice&origin=generated&date_from=2019-08-24&date_to=2019-08-24&offset=0&limit=100' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/json
[
  • {
    }
]

Detail

Authorizations:
BearerAuth
path Parameters
document_id
required
string <uuid> (Document Id)

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/document-library/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/json
{
  • "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
  • "document_type_key": "invoice",
  • "document_date": "2019-08-24",
  • "uploaded_at": "2019-08-24T14:15:22Z",
  • "mime_type": "string",
  • "size_bytes": 0,
  • "allowed_actions": [ ],
  • "domain": "string",
  • "origin": "string",
  • "display_name": "string",
  • "description": "string",
  • "is_final": true,
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "service_id": "641e839f-864e-4cce-98f9-40f6cbb3e9e0"
}

Associations

Authorizations:
BearerAuth
path Parameters
document_id
required
string <uuid> (Document Id)

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/document-library/497f6eca-6276-4993-bfeb-53cbbbba6f08/associations' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/json
[
  • {
    }
]

Download

Authorizations:
BearerAuth
path Parameters
document_id
required
string <uuid> (Document Id)

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/document-library/497f6eca-6276-4993-bfeb-53cbbbba6f08/file' \
  --header 'Accept: application/octet-stream' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/problem+json
{
  • "type": "urn:wse:problem:bad-request",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "string",
  • "parameters": null,
  • "errors": null
}

Preview

Authorizations:
BearerAuth
path Parameters
document_id
required
string <uuid> (Document Id)

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/document-library/497f6eca-6276-4993-bfeb-53cbbbba6f08/preview' \
  --header 'Accept: application/octet-stream' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/problem+json
{
  • "type": "urn:wse:problem:bad-request",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "string",
  • "parameters": null,
  • "errors": null
}

correspondence

List Types

Authorizations:
BearerAuth

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/correspondence/types' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/json
[
  • {
    }
]

Create Type

Authorizations:
BearerAuth
Request Body schema: application/json
required
key
required
string (Key) ^[a-z][a-z0-9_]{0,99}$
name
required
string (Name) [ 1 .. 200 ] characters
Description (string) or Description (null) (Description)
Any of
<= 1000 characters
string (Description) <= 1000 characters
context
string (Context)
Default: "customer"
Enum: "customer" "service"
active
boolean (Active)
Default: true
Revision (integer) or Revision (null) (Revision)
Any of
integer (Revision)

Responses

Request samples

Content type
application/json
{
  • "key": "string",
  • "name": "string",
  • "description": "string",
  • "context": "customer",
  • "active": true,
  • "revision": 0
}

Response samples

Content type
application/json
{
  • "key": "string",
  • "name": "string",
  • "description": "string",
  • "context": "customer",
  • "active": true,
  • "revision": 0,
  • "type_id": "d9779ea4-ba95-4824-86d7-4f1ac083a564"
}

Update Type

Authorizations:
BearerAuth
path Parameters
type_id
required
string <uuid> (Type Id)
Request Body schema: application/json
required
key
required
string (Key) ^[a-z][a-z0-9_]{0,99}$
name
required
string (Name) [ 1 .. 200 ] characters
Description (string) or Description (null) (Description)
Any of
<= 1000 characters
string (Description) <= 1000 characters
context
string (Context)
Default: "customer"
Enum: "customer" "service"
active
boolean (Active)
Default: true
Revision (integer) or Revision (null) (Revision)
Any of
integer (Revision)

Responses

Request samples

Content type
application/json
{
  • "key": "string",
  • "name": "string",
  • "description": "string",
  • "context": "customer",
  • "active": true,
  • "revision": 0
}

Response samples

Content type
application/json
{
  • "key": "string",
  • "name": "string",
  • "description": "string",
  • "context": "customer",
  • "active": true,
  • "revision": 0,
  • "type_id": "d9779ea4-ba95-4824-86d7-4f1ac083a564"
}

Templates

Authorizations:
BearerAuth
path Parameters
type_id
required
string <uuid> (Type Id)
query Parameters
include_versions
boolean (Include Versions)
Default: false

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/correspondence/types/497f6eca-6276-4993-bfeb-53cbbbba6f08/templates?include_versions=false' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/json
[
  • {
    }
]

Create Template

Authorizations:
BearerAuth
path Parameters
type_id
required
string <uuid> (Type Id)
Request Body schema: application/json
required
key
required
string (Key) ^[a-z][a-z0-9_]{0,99}$
source
required
string (Source) [ 1 .. 500000 ] characters
Array of objects (Fields) <= 100 items
Array (<= 100 items)
key
required
string (Key) ^[a-z][a-z0-9_]{0,99}$
label
required
string (Label) [ 1 .. 200 ] characters
type
required
string (Type)
Enum: "text" "rich_text" "date" "number" "boolean" "select"
order
integer (Order) >= 0
Default: 0
required
boolean (Required)
Default: false
default
any (JsonValue)
options
Array of strings (Options) <= 100 items
Array of objects (Sections) <= 100 items
Array (<= 100 items)
key
required
string (Key) ^[a-z][a-z0-9_]{0,99}$
field
required
string (Field)
required
Equals (boolean) or Equals (string) (Equals)
Previous Template Id (string) or Previous Template Id (null) (Previous Template Id)
Any of
string <uuid> (Previous Template Id)
Style Id (string) or Style Id (null) (Style Id)
Any of
string <uuid> (Style Id)
Background Id (string) or Background Id (null) (Background Id)
Any of
string <uuid> (Background Id)
Editor Definition (object) or Editor Definition (null) (Editor Definition)
Any of
property name*
additional property
any
is_default
boolean (Is Default)
Default: false

Responses

Request samples

Content type
application/json
{
  • "key": "string",
  • "source": "string",
  • "fields": [
    ],
  • "sections": [
    ],
  • "previous_template_id": "32d1df89-4273-435f-b6be-b36ee9a18dc6",
  • "style_id": "42816bda-d9c2-4157-9d9c-8806b666d646",
  • "background_id": "6e27a709-633c-4300-9c26-6e6eaf5b6238",
  • "editor_definition": { },
  • "is_default": false
}

Response samples

Content type
application/json
{
  • "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
  • "type_id": "d9779ea4-ba95-4824-86d7-4f1ac083a564",
  • "key": "string",
  • "version": 0,
  • "is_default": true,
  • "fields": [
    ]
}

Template Source

Authorizations:
BearerAuth
path Parameters
template_id
required
string <uuid> (Template Id)

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/correspondence/templates/497f6eca-6276-4993-bfeb-53cbbbba6f08/source' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/json
{
  • "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
  • "key": "string",
  • "version": 0,
  • "previous_template_id": "32d1df89-4273-435f-b6be-b36ee9a18dc6",
  • "style_id": "42816bda-d9c2-4157-9d9c-8806b666d646",
  • "background_id": "6e27a709-633c-4300-9c26-6e6eaf5b6238",
  • "is_default": true,
  • "source": "string",
  • "fields": [
    ],
  • "sections": [
    ],
  • "editor_definition": { }
}

Placeholders

Authorizations:
BearerAuth

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/correspondence/placeholders' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/json
{ }

Drafts

Authorizations:
BearerAuth
query Parameters
Customer Id (string) or Customer Id (null) (Customer Id)
Service Id (string) or Service Id (null) (Service Id)
Type Id (string) or Type Id (null) (Type Id)
Finalized (boolean) or Finalized (null) (Finalized)
offset
integer (Offset)
Default: 0
limit
integer (Limit)
Default: 100

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/correspondence/drafts?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&service_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&type_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&finalized=true&offset=0&limit=100' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/json
[
  • {
    }
]

Create Draft

Authorizations:
BearerAuth
Request Body schema: application/json
required
type_id
required
string <uuid> (Type Id)
template_id
required
string <uuid> (Template Id)
customer_id
required
string <uuid> (Customer Id)
Service Id (string) or Service Id (null) (Service Id)
Any of
string <uuid> (Service Id)
Address Id (string) or Address Id (null) (Address Id)
Any of
string <uuid> (Address Id)
subject
string (Subject) <= 500 characters
Default: ""
document_date
string <date> (Document Date)
object (Values)
property name*
additional property
any (JsonValue)
Revision (integer) or Revision (null) (Revision)
Any of
integer (Revision)

Responses

Request samples

Content type
application/json
{
  • "type_id": "d9779ea4-ba95-4824-86d7-4f1ac083a564",
  • "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "service_id": "641e839f-864e-4cce-98f9-40f6cbb3e9e0",
  • "address_id": "a32b0e3d-a5f5-48d8-a572-6ae561815055",
  • "subject": "",
  • "document_date": "2019-08-24",
  • "values": {
    },
  • "revision": 0
}

Response samples

Content type
application/json
{
  • "type_id": "d9779ea4-ba95-4824-86d7-4f1ac083a564",
  • "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "service_id": "641e839f-864e-4cce-98f9-40f6cbb3e9e0",
  • "address_id": "a32b0e3d-a5f5-48d8-a572-6ae561815055",
  • "subject": "",
  • "document_date": "2019-08-24",
  • "values": {
    },
  • "revision": 0,
  • "draft_id": "d998e5e8-954a-4a68-bb9e-7305e87278c0",
  • "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
  • "preview_digest": "string",
  • "context": {
    }
}

Get Draft

Authorizations:
BearerAuth
path Parameters
draft_id
required
string <uuid> (Draft Id)

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/correspondence/drafts/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/json
{
  • "type_id": "d9779ea4-ba95-4824-86d7-4f1ac083a564",
  • "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "service_id": "641e839f-864e-4cce-98f9-40f6cbb3e9e0",
  • "address_id": "a32b0e3d-a5f5-48d8-a572-6ae561815055",
  • "subject": "",
  • "document_date": "2019-08-24",
  • "values": {
    },
  • "revision": 0,
  • "draft_id": "d998e5e8-954a-4a68-bb9e-7305e87278c0",
  • "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
  • "preview_digest": "string",
  • "context": {
    }
}

Update Draft

Authorizations:
BearerAuth
path Parameters
draft_id
required
string <uuid> (Draft Id)
Request Body schema: application/json
required
type_id
required
string <uuid> (Type Id)
template_id
required
string <uuid> (Template Id)
customer_id
required
string <uuid> (Customer Id)
Service Id (string) or Service Id (null) (Service Id)
Any of
string <uuid> (Service Id)
Address Id (string) or Address Id (null) (Address Id)
Any of
string <uuid> (Address Id)
subject
string (Subject) <= 500 characters
Default: ""
document_date
string <date> (Document Date)
object (Values)
property name*
additional property
any (JsonValue)
Revision (integer) or Revision (null) (Revision)
Any of
integer (Revision)

Responses

Request samples

Content type
application/json
{
  • "type_id": "d9779ea4-ba95-4824-86d7-4f1ac083a564",
  • "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "service_id": "641e839f-864e-4cce-98f9-40f6cbb3e9e0",
  • "address_id": "a32b0e3d-a5f5-48d8-a572-6ae561815055",
  • "subject": "",
  • "document_date": "2019-08-24",
  • "values": {
    },
  • "revision": 0
}

Response samples

Content type
application/json
{
  • "type_id": "d9779ea4-ba95-4824-86d7-4f1ac083a564",
  • "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "service_id": "641e839f-864e-4cce-98f9-40f6cbb3e9e0",
  • "address_id": "a32b0e3d-a5f5-48d8-a572-6ae561815055",
  • "subject": "",
  • "document_date": "2019-08-24",
  • "values": {
    },
  • "revision": 0,
  • "draft_id": "d998e5e8-954a-4a68-bb9e-7305e87278c0",
  • "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
  • "preview_digest": "string",
  • "context": {
    }
}

Delete Draft

Authorizations:
BearerAuth
path Parameters
draft_id
required
string <uuid> (Draft Id)
query Parameters
revision
required
integer (Revision)

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request DELETE \
  --url 'https://your-instance.example.invalid/correspondence/drafts/497f6eca-6276-4993-bfeb-53cbbbba6f08?revision=0' \
  --header 'Accept: application/problem+json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/problem+json
{
  • "type": "urn:wse:problem:bad-request",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "string",
  • "parameters": null,
  • "errors": null
}

Preview

Authorizations:
BearerAuth
path Parameters
draft_id
required
string <uuid> (Draft Id)
Request Body schema: application/json
required
revision
required
integer (Revision) >= 1
Preview Digest (string) or Preview Digest (null) (Preview Digest)
Any of
string (Preview Digest)

Responses

Request samples

Content type
application/json
{
  • "revision": 1,
  • "preview_digest": "string"
}

Response samples

Content type
application/problem+json
{
  • "type": "urn:wse:problem:bad-request",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "string",
  • "parameters": null,
  • "errors": null
}

Finalize

Authorizations:
BearerAuth
path Parameters
draft_id
required
string <uuid> (Draft Id)
Request Body schema: application/json
required
revision
required
integer (Revision) >= 1
Preview Digest (string) or Preview Digest (null) (Preview Digest)
Any of
string (Preview Digest)

Responses

Request samples

Content type
application/json
{
  • "revision": 1,
  • "preview_digest": "string"
}

Response samples

Content type
application/json
{
  • "type_id": "d9779ea4-ba95-4824-86d7-4f1ac083a564",
  • "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "service_id": "641e839f-864e-4cce-98f9-40f6cbb3e9e0",
  • "address_id": "a32b0e3d-a5f5-48d8-a572-6ae561815055",
  • "subject": "",
  • "document_date": "2019-08-24",
  • "values": {
    },
  • "revision": 0,
  • "draft_id": "d998e5e8-954a-4a68-bb9e-7305e87278c0",
  • "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
  • "preview_digest": "string",
  • "context": {
    }
}

File

Authorizations:
BearerAuth
path Parameters
draft_id
required
string <uuid> (Draft Id)

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/correspondence/drafts/497f6eca-6276-4993-bfeb-53cbbbba6f08/file' \
  --header 'Accept: application/pdf' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/problem+json
{
  • "type": "urn:wse:problem:bad-request",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "string",
  • "parameters": null,
  • "errors": null
}

Upload

Authorizations:
BearerAuth
query Parameters
Customer Id (string) or Customer Id (null) (Customer Id)
Service Id (string) or Service Id (null) (Service Id)
Request Body schema: multipart/form-data
required
file
required
string <binary> <application/octet-stream> (File)

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
  --url 'https://your-instance.example.invalid/correspondence/uploads?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&service_id=497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --form 'file=@/path/to/file'

Response samples

Content type
application/json
{
  • "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
  • "document_type_key": "invoice",
  • "document_date": "2019-08-24",
  • "uploaded_at": "2019-08-24T14:15:22Z",
  • "mime_type": "string",
  • "size_bytes": 0,
  • "allowed_actions": [ ],
  • "domain": "string",
  • "origin": "string",
  • "display_name": "string",
  • "description": "string",
  • "is_final": true,
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "service_id": "641e839f-864e-4cce-98f9-40f6cbb3e9e0"
}

Update Upload

Authorizations:
BearerAuth
path Parameters
document_id
required
string <uuid> (Document Id)
Request Body schema: application/json
required
display_name
required
string (Display Name) [ 1 .. 255 ] characters
Description (string) or Description (null) (Description)
Any of
<= 500 characters
string (Description) <= 500 characters
Array of objects (Associations) <= 100 items
Array (<= 100 items)
customer_id
required
string <uuid> (Customer Id)
Service Id (string) or Service Id (null) (Service Id)

Responses

Request samples

Content type
application/json
{
  • "display_name": "string",
  • "description": "string",
  • "associations": [
    ]
}

Response samples

Content type
application/json
{
  • "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
  • "document_type_key": "invoice",
  • "document_date": "2019-08-24",
  • "uploaded_at": "2019-08-24T14:15:22Z",
  • "mime_type": "string",
  • "size_bytes": 0,
  • "allowed_actions": [ ],
  • "domain": "string",
  • "origin": "string",
  • "display_name": "string",
  • "description": "string",
  • "is_final": true,
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "service_id": "641e839f-864e-4cce-98f9-40f6cbb3e9e0"
}

Delete Upload

Authorizations:
BearerAuth
path Parameters
document_id
required
string <uuid> (Document Id)

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request DELETE \
  --url 'https://your-instance.example.invalid/correspondence/uploads/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  --header 'Accept: application/problem+json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/problem+json
{
  • "type": "urn:wse:problem:bad-request",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "string",
  • "parameters": null,
  • "errors": null
}

Preview Template

Authorizations:
BearerAuth
path Parameters
type_id
required
string <uuid> (Type Id)
Request Body schema: application/json
required
key
required
string (Key) ^[a-z][a-z0-9_]{0,99}$
source
required
string (Source) [ 1 .. 500000 ] characters
customer_id
required
string <uuid> (Customer Id)
subject
required
string (Subject) [ 1 .. 500 ] characters
Array of objects (Fields) <= 100 items
Array (<= 100 items)
key
required
string (Key) ^[a-z][a-z0-9_]{0,99}$
label
required
string (Label) [ 1 .. 200 ] characters
type
required
string (Type)
Enum: "text" "rich_text" "date" "number" "boolean" "select"
order
integer (Order) >= 0
Default: 0
required
boolean (Required)
Default: false
default
any (JsonValue)
options
Array of strings (Options) <= 100 items
Array of objects (Sections) <= 100 items
Array (<= 100 items)
key
required
string (Key) ^[a-z][a-z0-9_]{0,99}$
field
required
string (Field)
required
Equals (boolean) or Equals (string) (Equals)
Previous Template Id (string) or Previous Template Id (null) (Previous Template Id)
Any of
string <uuid> (Previous Template Id)
Style Id (string) or Style Id (null) (Style Id)
Any of
string <uuid> (Style Id)
Background Id (string) or Background Id (null) (Background Id)
Any of
string <uuid> (Background Id)
Editor Definition (object) or Editor Definition (null) (Editor Definition)
Any of
property name*
additional property
any
is_default
boolean (Is Default)
Default: false
Service Id (string) or Service Id (null) (Service Id)
Any of
string <uuid> (Service Id)
Address Id (string) or Address Id (null) (Address Id)
Any of
string <uuid> (Address Id)
document_date
string <date> (Document Date)
object (Values)
property name*
additional property
any (JsonValue)

Responses

Request samples

Content type
application/json
{
  • "key": "string",
  • "source": "string",
  • "fields": [
    ],
  • "sections": [
    ],
  • "previous_template_id": "32d1df89-4273-435f-b6be-b36ee9a18dc6",
  • "style_id": "42816bda-d9c2-4157-9d9c-8806b666d646",
  • "background_id": "6e27a709-633c-4300-9c26-6e6eaf5b6238",
  • "editor_definition": { },
  • "is_default": false,
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "service_id": "641e839f-864e-4cce-98f9-40f6cbb3e9e0",
  • "address_id": "a32b0e3d-a5f5-48d8-a572-6ae561815055",
  • "subject": "string",
  • "document_date": "2019-08-24",
  • "values": {
    }
}

Response samples

Content type
application/problem+json
{
  • "type": "urn:wse:problem:bad-request",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "string",
  • "parameters": null,
  • "errors": null
}

Resources

Authorizations:
BearerAuth

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/correspondence/resources' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/json
{
  • "styles": [
    ],
  • "backgrounds": [
    ],
  • "assets": [
    ]
}

delivery-notes

List Notes

Authorizations:
BearerAuth
query Parameters
customer_id
required
string <uuid> (Customer Id)
offset
integer (Offset)
Default: 0
limit
integer (Limit)
Default: 100

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/delivery-notes?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&offset=0&limit=100' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/json
[
  • {
    }
]

Create

Authorizations:
BearerAuth
Request Body schema: application/json
required
order_confirmation_id
required
string <uuid> (Order Confirmation Id)
address_id
required
string <uuid> (Address Id)
delivery_date
required
string <date> (Delivery Date)
required
Array of objects (Positions) [ 1 .. 1000 ] items
Array ([ 1 .. 1000 ] items)
position_id
required
string <uuid> (Position Id)
required
Quantity (number) or Quantity (string) (Quantity)
idempotency_key
required
string (Idempotency Key) [ 1 .. 200 ] characters
Template Id (string) or Template Id (null) (Template Id)
Any of
string <uuid> (Template Id)

Responses

Request samples

Content type
application/json
{
  • "order_confirmation_id": "5ac4f745-d6dc-4e00-bdf0-25c1771c74cd",
  • "address_id": "a32b0e3d-a5f5-48d8-a572-6ae561815055",
  • "delivery_date": "2019-08-24",
  • "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
  • "positions": [
    ],
  • "idempotency_key": "string"
}

Response samples

Content type
application/json
{
  • "delivery_note_id": "f67acc39-150f-4aa9-bc89-72cd8ba38c9d",
  • "order_confirmation_id": "5ac4f745-d6dc-4e00-bdf0-25c1771c74cd",
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "delivery_date": "2019-08-24",
  • "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
  • "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
  • "delivery_note_no": 0,
  • "delivery_note_prefix": "string",
  • "positions": [
    ]
}

Detail

Authorizations:
BearerAuth
path Parameters
note_id
required
string <uuid> (Note Id)

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/delivery-notes/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/json
{
  • "delivery_note_id": "f67acc39-150f-4aa9-bc89-72cd8ba38c9d",
  • "order_confirmation_id": "5ac4f745-d6dc-4e00-bdf0-25c1771c74cd",
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "delivery_date": "2019-08-24",
  • "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
  • "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
  • "delivery_note_no": 0,
  • "delivery_note_prefix": "string",
  • "positions": [
    ]
}

Preview

Authorizations:
BearerAuth
path Parameters
note_id
required
string <uuid> (Note Id)

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
  --url 'https://your-instance.example.invalid/delivery-notes/497f6eca-6276-4993-bfeb-53cbbbba6f08/preview' \
  --header 'Accept: application/pdf' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/problem+json
{
  • "type": "urn:wse:problem:bad-request",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "string",
  • "parameters": null,
  • "errors": null
}

Finalize

Authorizations:
BearerAuth
path Parameters
note_id
required
string <uuid> (Note Id)

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
  --url 'https://your-instance.example.invalid/delivery-notes/497f6eca-6276-4993-bfeb-53cbbbba6f08/finalize' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/json
{
  • "delivery_note_id": "f67acc39-150f-4aa9-bc89-72cd8ba38c9d",
  • "order_confirmation_id": "5ac4f745-d6dc-4e00-bdf0-25c1771c74cd",
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "delivery_date": "2019-08-24",
  • "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
  • "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
  • "delivery_note_no": 0,
  • "delivery_note_prefix": "string",
  • "positions": [
    ]
}

File

Authorizations:
BearerAuth
path Parameters
note_id
required
string <uuid> (Note Id)

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/delivery-notes/497f6eca-6276-4993-bfeb-53cbbbba6f08/file' \
  --header 'Accept: application/pdf' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/problem+json
{
  • "type": "urn:wse:problem:bad-request",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "string",
  • "parameters": null,
  • "errors": null
}

document-delivery

Settings

Authorizations:
BearerAuth

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/document-delivery/settings' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/json
{
  • "revision": 0,
  • "enabled": true,
  • "host": "string",
  • "port": 0,
  • "username": "string",
  • "sender": "string",
  • "sender_name": "string",
  • "reply_to": "string",
  • "password_set": false,
  • "encryption_ready": false
}

Update Settings

Authorizations:
BearerAuth
Request Body schema: application/json
required
revision
required
integer (Revision) >= 1
enabled
required
boolean (Enabled)
host
required
string (Host) [ 1 .. 253 ] characters
port
required
integer (Port)
Enum: 465 587
username
required
string (Username) [ 1 .. 320 ] characters
sender
required
string <email> (Sender)
Password (string) or Password (null) (Password)
Any of
string <password> (Password)
sender_name
string (Sender Name) <= 200 characters
Default: ""
Reply To (string) or Reply To (null) (Reply To)
Any of
string <email> (Reply To)

Responses

Request samples

Content type
application/json
{
  • "revision": 1,
  • "enabled": true,
  • "host": "string",
  • "port": 465,
  • "username": "string",
  • "password": "pa$$word",
  • "sender": "user@example.com",
  • "sender_name": "",
  • "reply_to": "user@example.com"
}

Response samples

Content type
application/json
{
  • "revision": 0,
  • "enabled": true,
  • "host": "string",
  • "port": 0,
  • "username": "string",
  • "sender": "string",
  • "sender_name": "string",
  • "reply_to": "string",
  • "password_set": false,
  • "encryption_ready": false
}

Connection Test

Authorizations:
BearerAuth

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
  --url 'https://your-instance.example.invalid/document-delivery/connection-test' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/json
{ }

Test Mail

Authorizations:
BearerAuth
Request Body schema: application/json
required
recipient
required
string <email> (Recipient)
idempotency_key
required
string (Idempotency Key) [ 1 .. 200 ] characters

Responses

Request samples

Content type
application/json
{
  • "recipient": "user@example.com",
  • "idempotency_key": "string"
}

Response samples

Content type
application/json
{
  • "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
  • "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "document_type": "string",
  • "kind": "string",
  • "status": "waiting",
  • "allowed_actions": [
    ],
  • "phase": "string",
  • "snapshot": {
    },
  • "previous_snapshots": [
    ],
  • "settings_revision": 0,
  • "retry_count": 0,
  • "error_code": "string",
  • "parent_job_id": "dd63d5e7-6727-402c-8127-3fd32aa9072a",
  • "reason": "string",
  • "created_at": "2019-08-24T14:15:22Z"
}

Get Preferences

Authorizations:
BearerAuth
path Parameters
customer_id
required
string <uuid> (Customer Id)

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/document-delivery/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/preferences' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/json
[
  • {
    }
]

Update Preference

Authorizations:
BearerAuth
path Parameters
customer_id
required
string <uuid> (Customer Id)
document_type
required
string (Document Type)
Request Body schema: application/json
required
revision
integer (Revision) >= 0
Default: 0
Recipient (string) or Recipient (null) (Recipient)
Any of
string <email> (Recipient)
language
string (Language)
Default: "de"
Enum: "de" "en"
automatic
boolean (Automatic)
Default: false

Responses

Request samples

Content type
application/json
{
  • "revision": 0,
  • "recipient": "user@example.com",
  • "language": "de",
  • "automatic": false
}

Response samples

Content type
application/json
{
  • "revision": 0
}

Get Template

Authorizations:
BearerAuth
path Parameters
document_type
required
string (DocumentTypeEnum)
Enum: "invoice" "corrective_invoice" "order_confirmation" "quotation" "self_billing_invoice" "payment_reminder" "delivery_note"

Supported fixed business document types.

language
required
string (Language)
Enum: "de" "en"

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/document-delivery/templates/invoice/de' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/json
{
  • "subject": "string",
  • "body": "string",
  • "revision": 0,
  • "placeholders": [
    ]
}

Update Template

Authorizations:
BearerAuth
path Parameters
document_type
required
string (DocumentTypeEnum)
Enum: "invoice" "corrective_invoice" "order_confirmation" "quotation" "self_billing_invoice" "payment_reminder" "delivery_note"

Supported fixed business document types.

language
required
string (Language)
Enum: "de" "en"
Request Body schema: application/json
required
subject
required
string (Subject) [ 1 .. 500 ] characters
body
required
string (Body) [ 1 .. 20000 ] characters
revision
integer (Revision) >= 0
Default: 0

Responses

Request samples

Content type
application/json
{
  • "revision": 0,
  • "subject": "string",
  • "body": "string"
}

Response samples

Content type
application/json
{
  • "revision": 0
}

Preview

Authorizations:
BearerAuth
Request Body schema: application/json
required
document_id
required
string <uuid> (Document Id)
Recipient (string) or Recipient (null) (Recipient)
Any of
string <email> (Recipient)
Subject (string) or Subject (null) (Subject)
Any of
<= 500 characters
string (Subject) <= 500 characters
Body (string) or Body (null) (Body)
Any of
<= 20000 characters
string (Body) <= 20000 characters

Responses

Request samples

Content type
application/json
{
  • "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
  • "recipient": "user@example.com",
  • "subject": "string",
  • "body": "string"
}

Response samples

Content type
application/json
{
  • "has_previous_delivery": false,
  • "snapshot": {
    },
  • "preview_digest": "string",
  • "blocked_reason": "string"
}

History

Authorizations:
BearerAuth
query Parameters
Customer Id (string) or Customer Id (null) (Customer Id)
Document Id (string) or Document Id (null) (Document Id)
Status (string) or Status (null) (Status)
DocumentTypeEnum (string) or Document Type (null) (Document Type)
Date From (string) or Date From (null) (Date From)
Date To (string) or Date To (null) (Date To)
offset
integer (Offset)
Default: 0
limit
integer (Limit)
Default: 100

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/document-delivery/jobs?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&document_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&status=waiting&document_type=invoice&date_from=2019-08-24&date_to=2019-08-24&offset=0&limit=100' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/json
[
  • {
    }
]

Send

Authorizations:
BearerAuth
Request Body schema: application/json
required
document_id
required
string <uuid> (Document Id)
preview_digest
required
string (Preview Digest)
idempotency_key
required
string (Idempotency Key) [ 1 .. 200 ] characters
Recipient (string) or Recipient (null) (Recipient)
Any of
string <email> (Recipient)
Subject (string) or Subject (null) (Subject)
Any of
<= 500 characters
string (Subject) <= 500 characters
Body (string) or Body (null) (Body)
Any of
<= 20000 characters
string (Body) <= 20000 characters

Responses

Request samples

Content type
application/json
{
  • "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
  • "recipient": "user@example.com",
  • "subject": "string",
  • "body": "string",
  • "preview_digest": "string",
  • "idempotency_key": "string"
}

Response samples

Content type
application/json
{
  • "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
  • "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "document_type": "string",
  • "kind": "string",
  • "status": "waiting",
  • "allowed_actions": [
    ],
  • "phase": "string",
  • "snapshot": {
    },
  • "previous_snapshots": [
    ],
  • "settings_revision": 0,
  • "retry_count": 0,
  • "error_code": "string",
  • "parent_job_id": "dd63d5e7-6727-402c-8127-3fd32aa9072a",
  • "reason": "string",
  • "created_at": "2019-08-24T14:15:22Z"
}

Batch Preview

Authorizations:
BearerAuth
Request Body schema: application/json
required
Array
string <uuid>

Responses

Request samples

Content type
application/json
[
  • "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]

Response samples

Content type
application/json
[
  • {
    }
]

Batch

Authorizations:
BearerAuth
Request Body schema: application/json
required
Array
document_id
required
string <uuid> (Document Id)
preview_digest
required
string (Preview Digest)
idempotency_key
required
string (Idempotency Key) [ 1 .. 200 ] characters
Recipient (string) or Recipient (null) (Recipient)
Subject (string) or Subject (null) (Subject)
Body (string) or Body (null) (Body)

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Response samples

Content type
application/json
[
  • {
    }
]

Attempts

Authorizations:
BearerAuth
path Parameters
job_id
required
string <uuid> (Job Id)

Responses

Request samples

# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/document-delivery/jobs/497f6eca-6276-4993-bfeb-53cbbbba6f08/attempts' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response samples

Content type
application/json
[
  • {
    }
]

Release

Authorizations:
BearerAuth
path Parameters
job_id
required
string <uuid> (Job Id)
Request Body schema: application/json
required
document_id
required
string <uuid> (Document Id)
preview_digest
required
string (Preview Digest)
idempotency_key
required
string (Idempotency Key) [ 1 .. 200 ] characters
Recipient (string) or Recipient (null) (Recipient)
Any of
string <email> (Recipient)
Subject (string) or Subject (null) (Subject)
Any of
<= 500 characters
string (Subject) <= 500 characters
Body (string) or Body (null) (Body)
Any of
<= 20000 characters
string (Body) <= 20000 characters

Responses

Request samples

Content type
application/json
{
  • "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
  • "recipient": "user@example.com",
  • "subject": "string",
  • "body": "string",
  • "preview_digest": "string",
  • "idempotency_key": "string"
}

Response samples

Content type
application/json
{
  • "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
  • "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "document_type": "string",
  • "kind": "string",
  • "status": "waiting",
  • "allowed_actions": [
    ],
  • "phase": "string",
  • "snapshot": {
    },
  • "previous_snapshots": [
    ],
  • "settings_revision": 0,
  • "retry_count": 0,
  • "error_code": "string",
  • "parent_job_id": "dd63d5e7-6727-402c-8127-3fd32aa9072a",
  • "reason": "string",
  • "created_at": "2019-08-24T14:15:22Z"
}

Resend

Authorizations:
BearerAuth
path Parameters
job_id
required
string <uuid> (Job Id)
Request Body schema: application/json
required
document_id
required
string <uuid> (Document Id)
preview_digest
required
string (Preview Digest)
idempotency_key
required
string (Idempotency Key) [ 1 .. 200 ] characters
confirmed
required
boolean (Confirmed)
Value: true
reason
required
string (Reason) [ 1 .. 1000 ] characters
Recipient (string) or Recipient (null) (Recipient)
Any of
string <email> (Recipient)
Subject (string) or Subject (null) (Subject)
Any of
<= 500 characters
string (Subject) <= 500 characters
Body (string) or Body (null) (Body)
Any of
<= 20000 characters
string (Body) <= 20000 characters

Responses

Request samples

Content type
application/json
{
  • "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
  • "recipient": "user@example.com",
  • "subject": "string",
  • "body": "string",
  • "preview_digest": "string",
  • "idempotency_key": "string",
  • "confirmed": true,
  • "reason": "string"
}

Response samples

Content type
application/json
{
  • "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
  • "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
  • "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
  • "document_type": "string",
  • "kind": "string",
  • "status": "waiting",
  • "allowed_actions": [
    ],
  • "phase": "string",
  • "snapshot": {
    },
  • "previous_snapshots": [
    ],
  • "settings_revision": 0,
  • "retry_count": 0,
  • "error_code": "string",
  • "parent_job_id": "dd63d5e7-6727-402c-8127-3fd32aa9072a",
  • "reason": "string",
  • "created_at": "2019-08-24T14:15:22Z"
}