Skip to main content

Division

Division is top-level element of orgstructure.


AttributeTypeDescriptionNullable
idIntegerIdentifierfalse
activeBooleanDivision availability for usersfalse
nameStringDivision namefalse
dirsList of user objectUser objects for division directorstrue
regionsCountIntegerNumber regions that are included in the divisionfalse
shopsCountIntegerNumber shop that are included in the divisionfalse
Example:
{
"id": 28,
"name": "West",
"active": true,
"dirs": [
{
"id": 2149,
"active": true,
"login": "samplemail@example.com",
"firstName": "John",
"lastName": "Doe",
"position": "Division manager",
"level": "DIVISION",
"businessDirId": 1004,
"lang": "en_EN",
"invited": true,
"inviteAccepted": true,
"inviteAcceptedAt": "2022-10-14T12:04:07.600564"
}
],
"regionsCount": 6,
"shopsCount": 51
}
Usages:

Additional division fields#

Additional division object fields


AttributeTypeDescriptionNullable
dirsWithBusinessDirsList of user objectUser objects for division directors with business direction objecttrue
regionsList of user objectSimple region objects associated with the divisiontrue
Example:
{
"id": 60,
"name": "USA, Central New York",
"active": true,
"dirs": [
{
"id": 2280,
"active": true,
"login": "samplemail@example.com",
"firstName": "Jon",
"lastName": "Doe",
"position": "Manager",
"email": "samplemail@example.com",
"level": "DIVISION",
"businessDirId": 1001,
"businessDir": {
"id": 1001,
"name": "Operations",
"createTask": true,
"system": true,
"geoCheckStart": "accept",
"geoCheckFinish": "accept",
"observeMyShopTask": true
},
"ldapLogin": "samplemail@example.com",
"lang": "en_EN",
"voximplantLogin": "samplemail@example.com"
}
],
"regions": [
{
"id": 74,
"name": "Madison",
"active": true,
"divisionId": 60,
"shopsCount": 6
},
{
"id": 75,
"name": "Cayuga",
"active": true,
"divisionId": 60,
"shopsCount": 2
}
],
"regionsCount": 2,
"shopsCount": 8
}
Usages: