Zum Inhalt

Reference

Business units

GET/api/v1/business-unitsList business units

The business units, in the order the settings give them: name, id, whether active and the default, and the cost center proposed for new contracts. Every business_unit argument takes a name or an id from here; an inactive unit is only kept on the records that already have it.scope finance:read

Response 200

business_units[]object[]
business_units[].namestring
business_units[].idstring
business_units[].activeboolean
business_units[].defaultboolean
business_units[].cost_centerstring | null
urlstring
Schema
{
  "type": "object",
  "properties": {
    "business_units": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          },
          "default": {
            "type": "boolean"
          },
          "cost_center": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "id",
          "active",
          "default",
          "cost_center"
        ],
        "additionalProperties": false
      }
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "business_units",
    "url"
  ],
  "additionalProperties": false
}

Refusals are problems with a code — see Errors.