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)
| companyrequired | stringThe company's id. |
| kindrequired | one of invoice, order |
| person | stringA person of the company, by id. |
| stringAn address without a person, e.g. rechnung@kunde.de. | |
| rolerequired | one of to, cc | null |
Response 200
| id | string |
| created | boolean |
| name | string |
| street | string | null |
| zip | string | null |
| city | string | null |
| vat_id | string | null |
| country_code | string |
| document_language | string |
| payment_term_days | integer | null |
| avv_signed_on | string | null |
| is_customer | boolean |
| is_supplier | boolean |
| is_active | boolean |
| mail_recipients[]optional | object[] |
| mail_recipients[].kind | string |
| mail_recipients[].role | string |
| mail_recipients[].person | object | null |
| mail_recipients[].person.id | string |
| mail_recipients[].person.name | string |
| mail_recipients[].email | string | null |
| ticket_sources[]optional | object[] |
| ticket_sources[].id | string |
| ticket_sources[].label | string |
| ticket_sources[].kind | string |
| ticket_sources[].address | string |
| ticket_sources[].active | boolean |
| url | string |
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.