Reference
Ticket sources
POST/api/v1/ticket-sourcesSave ticket source
Registers a customer's ticket system (Jira or another) on its company, or changes one: the address its mails come from, how an issue key is found in a subject, the order new tickets go to, the person they are raised for when the mail names nobody known, and whether the team's answers and status changes are mailed into the system. Mails from that address then become tickets. Every field is set as given: one left out is cleared. Nothing is sent by this.scope customers:write
Body (JSON)
| companyrequired | stringThe company's id. |
| source | stringA ticket system's id from get_company, to change it. Left out: a new one. |
| labelrequired | string |
| kindrequired | one of jira, other |
| addressrequired | stringThe exact sender address of the system's mails. |
| key_pattern | stringFor kind other: a pattern that finds the issue key in a subject. |
| default_order | stringAn active order of the company, by id, that new tickets go to. |
| fallback_person | stringAn active person of the company, by id, a ticket is raised for when the mail names nobody known. |
| answer_mode | one of off, system, system_and_reporterWhere answers and status changes of its tickets are mailed: off (the reporter, as before; the default), system (the ticket system instead of the reporter), system_and_reporter (the system, the reporter in copy). The subject then ends with the issue key in brackets. |
| answer_address | stringWhere the system takes mail; needed unless answer_mode is off. Often the sender address, but not for Jira Cloud. |
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 |
| source | 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"
},
"source": {
"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",
"source"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.
POST/api/v1/ticket-sources/{id}/activeSet ticket source active
Switches a registered ticket system off -- its mails no longer become tickets -- or on again.scope customers:write
Path
| idrequired | string |
Body (JSON)
| companyrequired | string |
| activerequired | boolean |
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.