Zum Inhalt

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)

companyrequiredstringThe company's id.
sourcestringA ticket system's id from get_company, to change it. Left out: a new one.
labelrequiredstring
kindrequiredone of jira, other
addressrequiredstringThe exact sender address of the system's mails.
key_patternstringFor kind other: a pattern that finds the issue key in a subject.
default_orderstringAn active order of the company, by id, that new tickets go to.
fallback_personstringAn active person of the company, by id, a ticket is raised for when the mail names nobody known.
answer_modeone 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_addressstringWhere the system takes mail; needed unless answer_mode is off. Often the sender address, but not for Jira Cloud.

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
sourcestring
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

idrequiredstring

Body (JSON)

companyrequiredstring
activerequiredboolean

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.