v1

latestOpenAPI 3.0.02026-07-1315476656.4 KB
Order

Send order via email

This endpoint sends the specified order to a customer via email.<br> This will automatically mark the order as sent.<br> Please note, that in production an order is not allowed to be changed after this happened!

post/Order/{orderId}/sendViaEmail

Path parameters

orderIdinteger required

ID of order to be sent via email

Request body

toEmailstring required

The recipient of the email.

subjectstring required

The subject of the email.

textstring required

The text of the email. Can contain html.

copyboolean

Should a copy of this email be sent to you?

additionalAttachmentsstring

Additional attachments to the mail. String of IDs of existing documents in your * sevdesk account separated by ','

ccEmailstring

String of mail addresses to be put as cc separated by ','

bccEmailstring

String of mail addresses to be put as bcc separated by ','

Response

Created - Returns created mail object

Example response

{
  "objects": [
    {
      "create": "01.01.2020",
      "update": "01.01.2020",
      "object": {
        "id": "0",
        "objectName": "Order",
        "orderNumber": "Offer-1000",
        "contact": {
          "id": "0",
          "objectName": "Contact"
        },
        "orderDate": "01.01.2020",
        "status": "100",
        "header": "My Offer-1000",
        "createUser": {
          "id": "0",
          "objectName": "SevUser"
        },
        "sevClient": {
          "id": "0",
          "objectName": "SevClient"
        },
        "origin": {
          "id": "0",
          "objectName": "Order"
        },
        "version": "0",
        "contactPerson": {
          "id": "0",
          "objectName": "SevUser"
        },
        "taxRate": "0",
        "taxSet": {
          "id": "0",
          "objectName": "TaxSet"
        },
        "taxText": "Umsatzsteuer 19%",
        "taxType": "default",
        "orderType": "AN",
        "currency": "EUR"
      },
      "arrived": "01.01.2020"
    }
  ]
}