Zum Inhalt

Reference

Mail recipients

POST/api/v1/mail-recipientsSet mail recipient

Says who at a company is addressed -- as An (to) or CC -- when a person sends it an invoice (kind invoice) or an order's documents (kind order), or takes them off with role null. Name a person of the company, or an e-mail address such as a shared mailbox. Nothing is sent by this.scope customers:write

Body (JSON)

companyrequiredstringThe company's id.
kindrequiredone of invoice, order
personstringA person of the company, by id.
emailstringAn address without a person, e.g. rechnung@kunde.de.
rolerequiredone of to, cc | null

Response 200

idstring
createdboolean
namestring
streetstring | null
zipstring | null
citystring | null
vat_idstring | null
country_codestring
document_languagestring
payment_term_daysinteger | null
avv_signed_onstring | null
is_customerboolean
is_supplierboolean
is_activeboolean
mail_recipients[]optionalobject[]
mail_recipients[].kindstring
mail_recipients[].rolestring
mail_recipients[].personobject | null
mail_recipients[].person.idstring
mail_recipients[].person.namestring
mail_recipients[].emailstring | null
ticket_sources[]optionalobject[]
ticket_sources[].idstring
ticket_sources[].labelstring
ticket_sources[].kindstring
ticket_sources[].addressstring
ticket_sources[].activeboolean
urlstring
Schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "created": {
      "type": "boolean"
    },
    "name": {
      "type": "string"
    },
    "street": {
      "type": [
        "string",
        "null"
      ]
    },
    "zip": {
      "type": [
        "string",
        "null"
      ]
    },
    "city": {
      "type": [
        "string",
        "null"
      ]
    },
    "vat_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "country_code": {
      "type": "string"
    },
    "document_language": {
      "type": "string"
    },
    "payment_term_days": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "avv_signed_on": {
      "type": [
        "string",
        "null"
      ]
    },
    "is_customer": {
      "type": "boolean"
    },
    "is_supplier": {
      "type": "boolean"
    },
    "is_active": {
      "type": "boolean"
    },
    "mail_recipients": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "person": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "kind",
          "role",
          "person",
          "email"
        ],
        "additionalProperties": false
      }
    },
    "ticket_sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "label",
          "kind",
          "address",
          "active"
        ],
        "additionalProperties": false
      }
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "created",
    "name",
    "street",
    "zip",
    "city",
    "vat_id",
    "country_code",
    "document_language",
    "payment_term_days",
    "avv_signed_on",
    "is_customer",
    "is_supplier",
    "is_active",
    "url"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.