WSE · Schnittstellen
Weitere Schnittstellen
Verbinden Sie WSE mit Ihren Anwendungen. Entdecken Sie Endpunkte, Datenmodelle und Schnittstellen – nach Funktionsbereichen und Add-ons geordnet.
Weitere Schnittstellen
ERP API Dokumentation
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
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 200
- 422
- default
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"
}
]Detail
Authorizations:
BearerAuth
path Parameters
| document_id required | string <uuid> (Document Id) |
Responses
Request samples
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 200
- 422
- default
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
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 200
- 422
- default
Content type
application/json
[- {
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "service_id": "641e839f-864e-4cce-98f9-40f6cbb3e9e0"
}
]Download
Authorizations:
BearerAuth
path Parameters
| document_id required | string <uuid> (Document Id) |
Responses
Request samples
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 422
- default
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
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 422
- default
Content type
application/problem+json
{- "type": "urn:wse:problem:bad-request",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "parameters": null,
- "errors": null
}Request samples
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 200
- default
Content type
application/json
[- {
- "key": "string",
- "name": "string",
- "description": "string",
- "context": "customer",
- "active": true,
- "revision": 0,
- "type_id": "d9779ea4-ba95-4824-86d7-4f1ac083a564"
}
]Create Type
Authorizations:
BearerAuth
Request Body schema: application/jsonrequired
| 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
- Payload
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
Content type
application/json
{- "key": "string",
- "name": "string",
- "description": "string",
- "context": "customer",
- "active": true,
- "revision": 0
}Response samples
- 200
- 422
- default
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/jsonrequired
| 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
- Payload
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
Content type
application/json
{- "key": "string",
- "name": "string",
- "description": "string",
- "context": "customer",
- "active": true,
- "revision": 0
}Response samples
- 200
- 422
- default
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
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 200
- 422
- default
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": [
- {
- "key": "string",
- "label": "string",
- "type": "text",
- "order": 0,
- "required": false,
- "default": null,
- "options": [
- "string"
]
}
]
}
]Create Template
Authorizations:
BearerAuth
path Parameters
| type_id required | string <uuid> (Type Id) |
Request Body schema: application/jsonrequired
| 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)
| |||||||||||||||
Array of objects (Sections) <= 100 items | |||||||||||||||
Array (<= 100 items)
| |||||||||||||||
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
| |||||||||||||||
| is_default | boolean (Is Default) Default: false | ||||||||||||||
Responses
Request samples
- Payload
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
Content type
application/json
{- "key": "string",
- "source": "string",
- "fields": [
- {
- "key": "string",
- "label": "string",
- "type": "text",
- "order": 0,
- "required": false,
- "default": null,
- "options": [
- "string"
]
}
], - "sections": [
- {
- "key": "string",
- "field": "string",
- "equals": true
}
], - "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
- 200
- 422
- default
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": [
- {
- "key": "string",
- "label": "string",
- "type": "text",
- "order": 0,
- "required": false,
- "default": null,
- "options": [
- "string"
]
}
]
}Template Source
Authorizations:
BearerAuth
path Parameters
| template_id required | string <uuid> (Template Id) |
Responses
Request samples
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 200
- 422
- default
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": [
- {
- "key": "string",
- "label": "string",
- "type": "text",
- "order": 0,
- "required": false,
- "default": null,
- "options": [
- "string"
]
}
], - "sections": [
- {
- "key": "string",
- "field": "string",
- "equals": true
}
], - "editor_definition": { }
}Request samples
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 200
- default
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
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 200
- 422
- default
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": {
- "property1": null,
- "property2": null
}, - "revision": 0,
- "draft_id": "d998e5e8-954a-4a68-bb9e-7305e87278c0",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "preview_digest": "string",
- "context": {
- "sender": {
- "name": "string",
- "trading_name": "string",
- "address": {
- "line_1": "string",
- "line_2": "string",
- "line_3": "string",
- "post_code": "string",
- "city": "string",
- "country_subdivision": "string",
- "country_code": "string"
}
}, - "customer": {
- "id": "string",
- "number": 0,
- "name": "string"
}, - "recipient": {
- "name": "string",
- "firstname": "string",
- "company": "string",
- "street": "string",
- "house_number": "string",
- "house_number_addition": "string",
- "postcode": "string",
- "city": "string",
- "district": "string"
}, - "service": {
- "id": "string",
- "number": 0,
- "description": "string"
}
}
}
]Create Draft
Authorizations:
BearerAuth
Request Body schema: application/jsonrequired
| 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) | |||
| |||
Revision (integer) or Revision (null) (Revision) | |||
Any of integer (Revision) | |||
Responses
Request samples
- Payload
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
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": {
- "property1": null,
- "property2": null
}, - "revision": 0
}Response samples
- 200
- 422
- default
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": {
- "property1": null,
- "property2": null
}, - "revision": 0,
- "draft_id": "d998e5e8-954a-4a68-bb9e-7305e87278c0",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "preview_digest": "string",
- "context": {
- "sender": {
- "name": "string",
- "trading_name": "string",
- "address": {
- "line_1": "string",
- "line_2": "string",
- "line_3": "string",
- "post_code": "string",
- "city": "string",
- "country_subdivision": "string",
- "country_code": "string"
}
}, - "customer": {
- "id": "string",
- "number": 0,
- "name": "string"
}, - "recipient": {
- "name": "string",
- "firstname": "string",
- "company": "string",
- "street": "string",
- "house_number": "string",
- "house_number_addition": "string",
- "postcode": "string",
- "city": "string",
- "district": "string"
}, - "service": {
- "id": "string",
- "number": 0,
- "description": "string"
}
}
}Get Draft
Authorizations:
BearerAuth
path Parameters
| draft_id required | string <uuid> (Draft Id) |
Responses
Request samples
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 200
- 422
- default
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": {
- "property1": null,
- "property2": null
}, - "revision": 0,
- "draft_id": "d998e5e8-954a-4a68-bb9e-7305e87278c0",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "preview_digest": "string",
- "context": {
- "sender": {
- "name": "string",
- "trading_name": "string",
- "address": {
- "line_1": "string",
- "line_2": "string",
- "line_3": "string",
- "post_code": "string",
- "city": "string",
- "country_subdivision": "string",
- "country_code": "string"
}
}, - "customer": {
- "id": "string",
- "number": 0,
- "name": "string"
}, - "recipient": {
- "name": "string",
- "firstname": "string",
- "company": "string",
- "street": "string",
- "house_number": "string",
- "house_number_addition": "string",
- "postcode": "string",
- "city": "string",
- "district": "string"
}, - "service": {
- "id": "string",
- "number": 0,
- "description": "string"
}
}
}Update Draft
Authorizations:
BearerAuth
path Parameters
| draft_id required | string <uuid> (Draft Id) |
Request Body schema: application/jsonrequired
| 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) | |||
| |||
Revision (integer) or Revision (null) (Revision) | |||
Any of integer (Revision) | |||
Responses
Request samples
- Payload
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
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": {
- "property1": null,
- "property2": null
}, - "revision": 0
}Response samples
- 200
- 422
- default
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": {
- "property1": null,
- "property2": null
}, - "revision": 0,
- "draft_id": "d998e5e8-954a-4a68-bb9e-7305e87278c0",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "preview_digest": "string",
- "context": {
- "sender": {
- "name": "string",
- "trading_name": "string",
- "address": {
- "line_1": "string",
- "line_2": "string",
- "line_3": "string",
- "post_code": "string",
- "city": "string",
- "country_subdivision": "string",
- "country_code": "string"
}
}, - "customer": {
- "id": "string",
- "number": 0,
- "name": "string"
}, - "recipient": {
- "name": "string",
- "firstname": "string",
- "company": "string",
- "street": "string",
- "house_number": "string",
- "house_number_addition": "string",
- "postcode": "string",
- "city": "string",
- "district": "string"
}, - "service": {
- "id": "string",
- "number": 0,
- "description": "string"
}
}
}Delete Draft
Authorizations:
BearerAuth
path Parameters
| draft_id required | string <uuid> (Draft Id) |
query Parameters
| revision required | integer (Revision) |
Responses
Request samples
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 422
- default
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/jsonrequired
| revision required | integer (Revision) >= 1 |
Preview Digest (string) or Preview Digest (null) (Preview Digest) | |
Any of string (Preview Digest) | |
Responses
Request samples
- Payload
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
Content type
application/json
{- "revision": 1,
- "preview_digest": "string"
}Response samples
- 422
- default
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/jsonrequired
| revision required | integer (Revision) >= 1 |
Preview Digest (string) or Preview Digest (null) (Preview Digest) | |
Any of string (Preview Digest) | |
Responses
Request samples
- Payload
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
Content type
application/json
{- "revision": 1,
- "preview_digest": "string"
}Response samples
- 200
- 422
- default
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": {
- "property1": null,
- "property2": null
}, - "revision": 0,
- "draft_id": "d998e5e8-954a-4a68-bb9e-7305e87278c0",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "preview_digest": "string",
- "context": {
- "sender": {
- "name": "string",
- "trading_name": "string",
- "address": {
- "line_1": "string",
- "line_2": "string",
- "line_3": "string",
- "post_code": "string",
- "city": "string",
- "country_subdivision": "string",
- "country_code": "string"
}
}, - "customer": {
- "id": "string",
- "number": 0,
- "name": "string"
}, - "recipient": {
- "name": "string",
- "firstname": "string",
- "company": "string",
- "street": "string",
- "house_number": "string",
- "house_number_addition": "string",
- "postcode": "string",
- "city": "string",
- "district": "string"
}, - "service": {
- "id": "string",
- "number": 0,
- "description": "string"
}
}
}Request samples
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 422
- default
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-datarequired
| file required | string <binary> <application/octet-stream> (File) |
Responses
Request samples
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 200
- 422
- default
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/jsonrequired
| 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)
| |||||
Responses
Request samples
- Payload
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
Content type
application/json
{- "display_name": "string",
- "description": "string",
- "associations": [
- {
- "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
- "service_id": "641e839f-864e-4cce-98f9-40f6cbb3e9e0"
}
]
}Response samples
- 200
- 422
- default
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
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 422
- default
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/jsonrequired
| 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)
| |||||||||||||||
Array of objects (Sections) <= 100 items | |||||||||||||||
Array (<= 100 items)
| |||||||||||||||
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
| |||||||||||||||
| 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) | |||||||||||||||
| |||||||||||||||
Responses
Request samples
- Payload
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
Content type
application/json
{- "key": "string",
- "source": "string",
- "fields": [
- {
- "key": "string",
- "label": "string",
- "type": "text",
- "order": 0,
- "required": false,
- "default": null,
- "options": [
- "string"
]
}
], - "sections": [
- {
- "key": "string",
- "field": "string",
- "equals": true
}
], - "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": {
- "property1": null,
- "property2": null
}
}Response samples
- 422
- default
Content type
application/problem+json
{- "type": "urn:wse:problem:bad-request",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "parameters": null,
- "errors": null
}Request samples
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 200
- default
Content type
application/json
{- "styles": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "key": "string",
- "name": "string"
}
], - "backgrounds": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "key": "string",
- "name": "string"
}
], - "assets": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "key": "string",
- "name": "string"
}
]
}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
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 200
- 422
- default
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": [
- {
- "source_position_id": "string",
- "product_text": "string",
- "description": "string",
- "article_number": 0,
- "unit": "string",
- "quantity": "string"
}
]
}
]Create
Authorizations:
BearerAuth
Request Body schema: application/jsonrequired
| 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)
| |||||
| 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
- Payload
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
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": [
- {
- "position_id": "a92aa83d-7963-4315-8d81-5d1c5b730d9d",
- "quantity": 1
}
], - "idempotency_key": "string"
}Response samples
- 200
- 422
- default
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": [
- {
- "source_position_id": "string",
- "product_text": "string",
- "description": "string",
- "article_number": 0,
- "unit": "string",
- "quantity": "string"
}
]
}Request samples
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 200
- 422
- default
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": [
- {
- "source_position_id": "string",
- "product_text": "string",
- "description": "string",
- "article_number": 0,
- "unit": "string",
- "quantity": "string"
}
]
}Request samples
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 422
- default
Content type
application/problem+json
{- "type": "urn:wse:problem:bad-request",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "parameters": null,
- "errors": null
}Request samples
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 200
- 422
- default
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": [
- {
- "source_position_id": "string",
- "product_text": "string",
- "description": "string",
- "article_number": 0,
- "unit": "string",
- "quantity": "string"
}
]
}Request samples
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 422
- default
Content type
application/problem+json
{- "type": "urn:wse:problem:bad-request",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "parameters": null,
- "errors": null
}Request samples
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 200
- default
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/jsonrequired
| 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
- Payload
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
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
- 200
- 422
- default
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
}Request samples
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 200
- default
Content type
application/json
{ }Test Mail
Authorizations:
BearerAuth
Request Body schema: application/jsonrequired
| recipient required | string <email> (Recipient) |
| idempotency_key required | string (Idempotency Key) [ 1 .. 200 ] characters |
Responses
Request samples
- Payload
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
Content type
application/json
{- "recipient": "user@example.com",
- "idempotency_key": "string"
}Response samples
- 200
- 422
- default
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": [
- "release"
], - "phase": "string",
- "snapshot": {
- "recipient": "string",
- "sender": "string",
- "sender_name": "string",
- "reply_to": "string",
- "language": "de",
- "subject": "string",
- "body": "string",
- "files": [
- {
- "storage_object_id": "a4be6d7c-7dc6-4ff5-8852-20723f8a162f",
- "sha256": "string",
- "filename": "string",
- "mime_type": "string",
- "size": 0
}
], - "settings_revision": 0,
- "preference_revision": [
- 0
], - "template_revision": 0
}, - "previous_snapshots": [
- {
- "recipient": "string",
- "sender": "string",
- "sender_name": "string",
- "reply_to": "string",
- "language": "de",
- "subject": "string",
- "body": "string",
- "files": [
- {
- "storage_object_id": "a4be6d7c-7dc6-4ff5-8852-20723f8a162f",
- "sha256": "string",
- "filename": "string",
- "mime_type": "string",
- "size": 0
}
], - "settings_revision": 0,
- "preference_revision": [
- 0
], - "template_revision": 0
}
], - "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
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 200
- 422
- default
Content type
application/json
[- {
- "document_type": "string",
- "recipient": "string",
- "language": "de",
- "automatic": true,
- "revision": 0
}
]Update Preference
Authorizations:
BearerAuth
path Parameters
| customer_id required | string <uuid> (Customer Id) |
| document_type required | string (Document Type) |
Request Body schema: application/jsonrequired
| 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
- Payload
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
Content type
application/json
{- "revision": 0,
- "recipient": "user@example.com",
- "language": "de",
- "automatic": false
}Response samples
- 200
- 422
- default
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
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 200
- 422
- default
Content type
application/json
{- "subject": "string",
- "body": "string",
- "revision": 0,
- "placeholders": [
- "string"
]
}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/jsonrequired
| subject required | string (Subject) [ 1 .. 500 ] characters |
| body required | string (Body) [ 1 .. 20000 ] characters |
| revision | integer (Revision) >= 0 Default: 0 |
Responses
Request samples
- Payload
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
Content type
application/json
{- "revision": 0,
- "subject": "string",
- "body": "string"
}Response samples
- 200
- 422
- default
Content type
application/json
{- "revision": 0
}Preview
Authorizations:
BearerAuth
Request Body schema: application/jsonrequired
| 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
- Payload
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
Content type
application/json
{- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "recipient": "user@example.com",
- "subject": "string",
- "body": "string"
}Response samples
- 200
- 422
- default
Content type
application/json
{- "has_previous_delivery": false,
- "snapshot": {
- "recipient": "string",
- "sender": "string",
- "sender_name": "string",
- "reply_to": "string",
- "language": "de",
- "subject": "string",
- "body": "string",
- "files": [
- {
- "storage_object_id": "a4be6d7c-7dc6-4ff5-8852-20723f8a162f",
- "sha256": "string",
- "filename": "string",
- "mime_type": "string",
- "size": 0
}
], - "settings_revision": 0,
- "preference_revision": [
- 0
], - "template_revision": 0
}, - "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
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 200
- 422
- default
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": [
- "release"
], - "phase": "string",
- "snapshot": {
- "recipient": "string",
- "sender": "string",
- "sender_name": "string",
- "reply_to": "string",
- "language": "de",
- "subject": "string",
- "body": "string",
- "files": [
- {
- "storage_object_id": "a4be6d7c-7dc6-4ff5-8852-20723f8a162f",
- "sha256": "string",
- "filename": "string",
- "mime_type": "string",
- "size": 0
}
], - "settings_revision": 0,
- "preference_revision": [
- 0
], - "template_revision": 0
}, - "previous_snapshots": [
- {
- "recipient": "string",
- "sender": "string",
- "sender_name": "string",
- "reply_to": "string",
- "language": "de",
- "subject": "string",
- "body": "string",
- "files": [
- {
- "storage_object_id": "a4be6d7c-7dc6-4ff5-8852-20723f8a162f",
- "sha256": "string",
- "filename": "string",
- "mime_type": "string",
- "size": 0
}
], - "settings_revision": 0,
- "preference_revision": [
- 0
], - "template_revision": 0
}
], - "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"
}
]Send
Authorizations:
BearerAuth
Request Body schema: application/jsonrequired
| 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
- Payload
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
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
- 200
- 422
- default
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": [
- "release"
], - "phase": "string",
- "snapshot": {
- "recipient": "string",
- "sender": "string",
- "sender_name": "string",
- "reply_to": "string",
- "language": "de",
- "subject": "string",
- "body": "string",
- "files": [
- {
- "storage_object_id": "a4be6d7c-7dc6-4ff5-8852-20723f8a162f",
- "sha256": "string",
- "filename": "string",
- "mime_type": "string",
- "size": 0
}
], - "settings_revision": 0,
- "preference_revision": [
- 0
], - "template_revision": 0
}, - "previous_snapshots": [
- {
- "recipient": "string",
- "sender": "string",
- "sender_name": "string",
- "reply_to": "string",
- "language": "de",
- "subject": "string",
- "body": "string",
- "files": [
- {
- "storage_object_id": "a4be6d7c-7dc6-4ff5-8852-20723f8a162f",
- "sha256": "string",
- "filename": "string",
- "mime_type": "string",
- "size": 0
}
], - "settings_revision": 0,
- "preference_revision": [
- 0
], - "template_revision": 0
}
], - "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/jsonrequired
Array
string <uuid>
Responses
Request samples
- Payload
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
Content type
application/json
[- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]Response samples
- 200
- 422
- default
Content type
application/json
[- {
- "has_previous_delivery": false,
- "snapshot": {
- "recipient": "string",
- "sender": "string",
- "sender_name": "string",
- "reply_to": "string",
- "language": "de",
- "subject": "string",
- "body": "string",
- "files": [
- {
- "storage_object_id": "a4be6d7c-7dc6-4ff5-8852-20723f8a162f",
- "sha256": "string",
- "filename": "string",
- "mime_type": "string",
- "size": 0
}
], - "settings_revision": 0,
- "preference_revision": [
- 0
], - "template_revision": 0
}, - "preview_digest": "string",
- "blocked_reason": "string",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6"
}
]Batch
Authorizations:
BearerAuth
Request Body schema: application/jsonrequired
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
- Payload
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
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
- 200
- 422
- default
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": [
- "release"
], - "phase": "string",
- "snapshot": {
- "recipient": "string",
- "sender": "string",
- "sender_name": "string",
- "reply_to": "string",
- "language": "de",
- "subject": "string",
- "body": "string",
- "files": [
- {
- "storage_object_id": "a4be6d7c-7dc6-4ff5-8852-20723f8a162f",
- "sha256": "string",
- "filename": "string",
- "mime_type": "string",
- "size": 0
}
], - "settings_revision": 0,
- "preference_revision": [
- 0
], - "template_revision": 0
}, - "previous_snapshots": [
- {
- "recipient": "string",
- "sender": "string",
- "sender_name": "string",
- "reply_to": "string",
- "language": "de",
- "subject": "string",
- "body": "string",
- "files": [
- {
- "storage_object_id": "a4be6d7c-7dc6-4ff5-8852-20723f8a162f",
- "sha256": "string",
- "filename": "string",
- "mime_type": "string",
- "size": 0
}
], - "settings_revision": 0,
- "preference_revision": [
- 0
], - "template_revision": 0
}
], - "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"
}
]Request samples
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
# 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
- 200
- 422
- default
Content type
application/json
[- {
- "number": 0,
- "result": "string",
- "error_code": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
]Release
Authorizations:
BearerAuth
path Parameters
| job_id required | string <uuid> (Job Id) |
Request Body schema: application/jsonrequired
| 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
- Payload
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
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
- 200
- 422
- default
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": [
- "release"
], - "phase": "string",
- "snapshot": {
- "recipient": "string",
- "sender": "string",
- "sender_name": "string",
- "reply_to": "string",
- "language": "de",
- "subject": "string",
- "body": "string",
- "files": [
- {
- "storage_object_id": "a4be6d7c-7dc6-4ff5-8852-20723f8a162f",
- "sha256": "string",
- "filename": "string",
- "mime_type": "string",
- "size": 0
}
], - "settings_revision": 0,
- "preference_revision": [
- 0
], - "template_revision": 0
}, - "previous_snapshots": [
- {
- "recipient": "string",
- "sender": "string",
- "sender_name": "string",
- "reply_to": "string",
- "language": "de",
- "subject": "string",
- "body": "string",
- "files": [
- {
- "storage_object_id": "a4be6d7c-7dc6-4ff5-8852-20723f8a162f",
- "sha256": "string",
- "filename": "string",
- "mime_type": "string",
- "size": 0
}
], - "settings_revision": 0,
- "preference_revision": [
- 0
], - "template_revision": 0
}
], - "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/jsonrequired
| 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
- Payload
- cURL
- JavaScript / Node.js
- Python
- Java
- PHP
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
- 200
- 422
- default
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": [
- "release"
], - "phase": "string",
- "snapshot": {
- "recipient": "string",
- "sender": "string",
- "sender_name": "string",
- "reply_to": "string",
- "language": "de",
- "subject": "string",
- "body": "string",
- "files": [
- {
- "storage_object_id": "a4be6d7c-7dc6-4ff5-8852-20723f8a162f",
- "sha256": "string",
- "filename": "string",
- "mime_type": "string",
- "size": 0
}
], - "settings_revision": 0,
- "preference_revision": [
- 0
], - "template_revision": 0
}, - "previous_snapshots": [
- {
- "recipient": "string",
- "sender": "string",
- "sender_name": "string",
- "reply_to": "string",
- "language": "de",
- "subject": "string",
- "body": "string",
- "files": [
- {
- "storage_object_id": "a4be6d7c-7dc6-4ff5-8852-20723f8a162f",
- "sha256": "string",
- "filename": "string",
- "mime_type": "string",
- "size": 0
}
], - "settings_revision": 0,
- "preference_revision": [
- 0
], - "template_revision": 0
}
], - "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"
}