list by department

request
GET /api/v2/departments/1000000007/legal-entities HTTP/1.1
Table 212. /api/v2/departments/{departmentId}/legal-entities
Parameter Description

departmentId

The department’s id

response
HTTP/1.1 200 OK

[ {
  "legalEntity" : {
    "id" : 6,
    "shortName" : "ИП 2",
    "inn" : "21",
    "kpp" : "12",
    "ogrn" : "21",
    "okpo" : "21"
  },
  "unremovable" : false
}, {
  "legalEntity" : {
    "id" : 1,
    "shortName" : "ИП Валеева Людмила Александровна",
    "inn" : "644901490342",
    "kpp" : "0",
    "ogrn" : "304644929900308",
    "okpo" : "0"
  },
  "unremovable" : true
} ]
Table 213. response description
Path Type Description

[]

Array

List of infos about legal entities working in the department

[].legalEntity

Object

The legal entity

[].legalEntity.id

Number

The legal entity’s id

[].legalEntity.shortName

String

The legal entity’s short name

[].unremovable

Boolean

If true, the legal entity cannot be unlinked from the department

request
GET /api/v2/legal-entities/4/departments HTTP/1.1
Table 214. /api/v2/legal-entities/{legalEntityId}/departments
Parameter Description

legalEntityId

The legal entity’s id

Parameter Description

pageable

Pageable description

departmentType

Department type

departmentName

Department name

response
HTTP/1.1 200 OK

{
  "content" : [ {
    "department" : {
      "id" : 1000000003,
      "type" : "STORE",
      "name" : "Первый магазин",
      "location" : {
        "data" : {
          "qc" : null,
          "area" : null,
          "city" : "Псков",
          "flat" : null,
          "block" : null,
          "floor" : null,
          "house" : "1",
          "metro" : null,
          "okato" : "58401000000",
          "oktmo" : "58701000001",
          "stead" : null,
          "qc_geo" : "0",
          "region" : "Псковская",
          "source" : null,
          "street" : "Льва Толстого",
          "country" : "Россия",
          "fias_id" : "863354b1-4be8-4020-9158-7559144fd932",
          "geo_lat" : "57.814117",
          "geo_lon" : "28.347668",
          "entrance" : null,
          "kladr_id" : "6000000100004760126",
          "qc_house" : null,
          "timezone" : null,
          "area_type" : null,
          "city_area" : null,
          "city_type" : "г",
          "divisions" : null,
          "fias_code" : null,
          "flat_area" : null,
          "flat_type" : null,
          "block_type" : null,
          "fias_level" : "8",
          "flat_price" : null,
          "geoname_id" : "504341",
          "house_type" : "д",
          "postal_box" : null,
          "settlement" : null,
          "stead_type" : null,
          "tax_office" : "6027",
          "beltway_hit" : null,
          "flat_cadnum" : null,
          "postal_code" : "180000",
          "qc_complete" : null,
          "region_type" : "обл",
          "street_type" : "ул",
          "area_fias_id" : null,
          "city_fias_id" : "2858811e-448a-482e-9863-e03bf06bb5d4",
          "flat_fias_id" : null,
          "house_cadnum" : null,
          "stead_cadnum" : null,
          "area_kladr_id" : null,
          "city_district" : null,
          "city_kladr_id" : "6000000100000",
          "house_fias_id" : "863354b1-4be8-4020-9158-7559144fd932",
          "stead_fias_id" : null,
          "area_type_full" : null,
          "area_with_type" : null,
          "capital_marker" : "2",
          "city_type_full" : "город",
          "city_with_type" : "г Псков",
          "flat_type_full" : null,
          "history_values" : null,
          "house_kladr_id" : "6000000100004760126",
          "region_fias_id" : "f6e148a1-c9d0-4141-a608-93e3bd95e6c4",
          "street_fias_id" : "bd85e8d8-3064-41ca-baed-9fc3f57a07ed",
          "unparsed_parts" : null,
          "block_type_full" : null,
          "house_type_full" : "дом",
          "region_iso_code" : "RU-PSK",
          "region_kladr_id" : "6000000000000",
          "settlement_type" : null,
          "stead_type_full" : null,
          "street_kladr_id" : "60000001000047600",
          "beltway_distance" : null,
          "country_iso_code" : "RU",
          "federal_district" : "Северо-Западный",
          "region_type_full" : "область",
          "region_with_type" : "Псковская обл",
          "street_type_full" : "улица",
          "street_with_type" : "ул Льва Толстого",
          "tax_office_legal" : "6027",
          "city_district_type" : null,
          "settlement_fias_id" : null,
          "square_meter_price" : null,
          "settlement_kladr_id" : null,
          "fias_actuality_state" : "0",
          "settlement_type_full" : null,
          "settlement_with_type" : null,
          "city_district_fias_id" : null,
          "city_district_kladr_id" : null,
          "city_district_type_full" : null,
          "city_district_with_type" : null
        },
        "string" : "г Псков, ул Льва Толстого, д 1"
      },
      "city" : "Псков",
      "description" : "ул. Льва Толстого, д.1",
      "phone" : "+7(812) 425-64-22",
      "timeZone" : 180,
      "closed" : false,
      "frMode" : true,
      "hasServices" : true,
      "baseLegalEntityId" : 1,
      "storeBrandId" : 1,
      "otherDepartmentSearchId" : null,
      "depotId" : 1000000005,
      "productionId" : 1000000004,
      "departmentOid" : null,
      "departmentGuid" : null,
      "departmentLpuId" : null
    },
    "unremovable" : false
  }, {
    "department" : {
      "id" : 1000000005,
      "type" : "DEPOT",
      "name" : "Склад",
      "location" : {
        "data" : {
          "qc" : null,
          "area" : null,
          "city" : "Псков",
          "flat" : null,
          "block" : null,
          "floor" : null,
          "house" : "1",
          "metro" : null,
          "okato" : "58401000000",
          "oktmo" : "58701000001",
          "stead" : null,
          "qc_geo" : "0",
          "region" : "Псковская",
          "source" : null,
          "street" : "Льва Толстого",
          "country" : "Россия",
          "fias_id" : "863354b1-4be8-4020-9158-7559144fd932",
          "geo_lat" : "57.814117",
          "geo_lon" : "28.347668",
          "entrance" : null,
          "kladr_id" : "6000000100004760126",
          "qc_house" : null,
          "timezone" : null,
          "area_type" : null,
          "city_area" : null,
          "city_type" : "г",
          "divisions" : null,
          "fias_code" : null,
          "flat_area" : null,
          "flat_type" : null,
          "block_type" : null,
          "fias_level" : "8",
          "flat_price" : null,
          "geoname_id" : "504341",
          "house_type" : "д",
          "postal_box" : null,
          "settlement" : null,
          "stead_type" : null,
          "tax_office" : "6027",
          "beltway_hit" : null,
          "flat_cadnum" : null,
          "postal_code" : "180000",
          "qc_complete" : null,
          "region_type" : "обл",
          "street_type" : "ул",
          "area_fias_id" : null,
          "city_fias_id" : "2858811e-448a-482e-9863-e03bf06bb5d4",
          "flat_fias_id" : null,
          "house_cadnum" : null,
          "stead_cadnum" : null,
          "area_kladr_id" : null,
          "city_district" : null,
          "city_kladr_id" : "6000000100000",
          "house_fias_id" : "863354b1-4be8-4020-9158-7559144fd932",
          "stead_fias_id" : null,
          "area_type_full" : null,
          "area_with_type" : null,
          "capital_marker" : "2",
          "city_type_full" : "город",
          "city_with_type" : "г Псков",
          "flat_type_full" : null,
          "history_values" : null,
          "house_kladr_id" : "6000000100004760126",
          "region_fias_id" : "f6e148a1-c9d0-4141-a608-93e3bd95e6c4",
          "street_fias_id" : "bd85e8d8-3064-41ca-baed-9fc3f57a07ed",
          "unparsed_parts" : null,
          "block_type_full" : null,
          "house_type_full" : "дом",
          "region_iso_code" : "RU-PSK",
          "region_kladr_id" : "6000000000000",
          "settlement_type" : null,
          "stead_type_full" : null,
          "street_kladr_id" : "60000001000047600",
          "beltway_distance" : null,
          "country_iso_code" : "RU",
          "federal_district" : "Северо-Западный",
          "region_type_full" : "область",
          "region_with_type" : "Псковская обл",
          "street_type_full" : "улица",
          "street_with_type" : "ул Льва Толстого",
          "tax_office_legal" : "6027",
          "city_district_type" : null,
          "settlement_fias_id" : null,
          "square_meter_price" : null,
          "settlement_kladr_id" : null,
          "fias_actuality_state" : "0",
          "settlement_type_full" : null,
          "settlement_with_type" : null,
          "city_district_fias_id" : null,
          "city_district_kladr_id" : null,
          "city_district_type_full" : null,
          "city_district_with_type" : null
        },
        "string" : "г Псков, ул Льва Толстого, д 1"
      },
      "city" : "Псков",
      "description" : "ул. Льва Толстого, д.1",
      "phone" : "+7(812) 425-64-22",
      "timeZone" : 180,
      "closed" : false,
      "frMode" : false,
      "hasServices" : false,
      "baseLegalEntityId" : 1,
      "storeBrandId" : 1,
      "otherDepartmentSearchId" : null,
      "depotId" : null,
      "productionId" : null,
      "departmentOid" : null,
      "departmentGuid" : null,
      "departmentLpuId" : null
    },
    "unremovable" : false
  } ],
  "pageable" : {
    "pageNumber" : 0,
    "pageSize" : 10,
    "sort" : {
      "empty" : false,
      "sorted" : true,
      "unsorted" : false
    },
    "offset" : 0,
    "paged" : true,
    "unpaged" : false
  },
  "last" : true,
  "totalElements" : 2,
  "totalPages" : 1,
  "first" : true,
  "size" : 10,
  "number" : 0,
  "sort" : {
    "empty" : false,
    "sorted" : true,
    "unsorted" : false
  },
  "numberOfElements" : 2,
  "empty" : false
}
Table 215. response description
Path Type Description

content[].

Array

List of infos about departments where the legal entity works

content[].department

Object

The department

content[].department.id

Number

The department’s id

content[].department.type

String

The department’s type

content[].department.name

String

The department’s name

content[].unremovable

Boolean

If true, the legal entity cannot be unlinked from the department

request
GET /api/v2/legal-entities/6/unused-departments HTTP/1.1
Table 216. /api/v2/legal-entities/{legalEntityId}/unused-departments
Parameter Description

legalEntityId

The legal entity’s id

response
HTTP/1.1 200 OK

[ {
  "id" : 1000000007,
  "type" : "STORE",
  "name" : "Второй магазин",
  "location" : {
    "data" : {
      "qc" : null,
      "area" : null,
      "city" : "Псков",
      "flat" : null,
      "block" : null,
      "floor" : null,
      "house" : "5",
      "metro" : null,
      "okato" : "58401000000",
      "oktmo" : "58701000001",
      "stead" : null,
      "qc_geo" : "0",
      "region" : "Псковская",
      "source" : null,
      "street" : "Юрия Гагарина",
      "country" : "Россия",
      "fias_id" : "fe412909-55f4-4e1c-9c13-aa05a9f4dd24",
      "geo_lat" : "57.80946",
      "geo_lon" : "28.357496",
      "entrance" : null,
      "kladr_id" : "6000000100000390004",
      "qc_house" : null,
      "timezone" : null,
      "area_type" : null,
      "city_area" : null,
      "city_type" : "г",
      "divisions" : null,
      "fias_code" : null,
      "flat_area" : null,
      "flat_type" : null,
      "block_type" : null,
      "fias_level" : "8",
      "flat_price" : null,
      "geoname_id" : "504341",
      "house_type" : "д",
      "postal_box" : null,
      "settlement" : null,
      "stead_type" : null,
      "tax_office" : "6027",
      "beltway_hit" : null,
      "flat_cadnum" : null,
      "postal_code" : "180004",
      "qc_complete" : null,
      "region_type" : "обл",
      "street_type" : "ул",
      "area_fias_id" : null,
      "city_fias_id" : "2858811e-448a-482e-9863-e03bf06bb5d4",
      "flat_fias_id" : null,
      "house_cadnum" : null,
      "stead_cadnum" : null,
      "area_kladr_id" : null,
      "city_district" : null,
      "city_kladr_id" : "6000000100000",
      "house_fias_id" : "fe412909-55f4-4e1c-9c13-aa05a9f4dd24",
      "stead_fias_id" : null,
      "area_type_full" : null,
      "area_with_type" : null,
      "capital_marker" : "2",
      "city_type_full" : "город",
      "city_with_type" : "г Псков",
      "flat_type_full" : null,
      "history_values" : null,
      "house_kladr_id" : "6000000100000390004",
      "region_fias_id" : "f6e148a1-c9d0-4141-a608-93e3bd95e6c4",
      "street_fias_id" : "536cfb32-332b-45b6-938f-f8ff3dd7871a",
      "unparsed_parts" : null,
      "block_type_full" : null,
      "house_type_full" : "дом",
      "region_iso_code" : "RU-PSK",
      "region_kladr_id" : "6000000000000",
      "settlement_type" : null,
      "stead_type_full" : null,
      "street_kladr_id" : "60000001000003900",
      "beltway_distance" : null,
      "country_iso_code" : "RU",
      "federal_district" : "Северо-Западный",
      "region_type_full" : "область",
      "region_with_type" : "Псковская обл",
      "street_type_full" : "улица",
      "street_with_type" : "ул Юрия Гагарина",
      "tax_office_legal" : "6027",
      "city_district_type" : null,
      "settlement_fias_id" : null,
      "square_meter_price" : null,
      "settlement_kladr_id" : null,
      "fias_actuality_state" : "0",
      "settlement_type_full" : null,
      "settlement_with_type" : null,
      "city_district_fias_id" : null,
      "city_district_kladr_id" : null,
      "city_district_type_full" : null,
      "city_district_with_type" : null
    },
    "string" : "г Псков, ул Юрия Гагарина, д 5"
  },
  "city" : "Псков",
  "description" : "Ул. Гагарина, д.5",
  "phone" : "+7(812) 425-64-22",
  "timeZone" : 180,
  "closed" : false,
  "frMode" : false,
  "hasServices" : true,
  "baseLegalEntityId" : 1,
  "storeBrandId" : 1,
  "otherDepartmentSearchId" : null,
  "depotId" : 1000000005,
  "productionId" : 1000000004,
  "departmentOid" : null,
  "departmentGuid" : null,
  "departmentLpuId" : null
}, {
  "id" : 1000000005,
  "type" : "DEPOT",
  "name" : "Склад",
  "location" : {
    "data" : {
      "qc" : null,
      "area" : null,
      "city" : "Псков",
      "flat" : null,
      "block" : null,
      "floor" : null,
      "house" : "1",
      "metro" : null,
      "okato" : "58401000000",
      "oktmo" : "58701000001",
      "stead" : null,
      "qc_geo" : "0",
      "region" : "Псковская",
      "source" : null,
      "street" : "Льва Толстого",
      "country" : "Россия",
      "fias_id" : "863354b1-4be8-4020-9158-7559144fd932",
      "geo_lat" : "57.814117",
      "geo_lon" : "28.347668",
      "entrance" : null,
      "kladr_id" : "6000000100004760126",
      "qc_house" : null,
      "timezone" : null,
      "area_type" : null,
      "city_area" : null,
      "city_type" : "г",
      "divisions" : null,
      "fias_code" : null,
      "flat_area" : null,
      "flat_type" : null,
      "block_type" : null,
      "fias_level" : "8",
      "flat_price" : null,
      "geoname_id" : "504341",
      "house_type" : "д",
      "postal_box" : null,
      "settlement" : null,
      "stead_type" : null,
      "tax_office" : "6027",
      "beltway_hit" : null,
      "flat_cadnum" : null,
      "postal_code" : "180000",
      "qc_complete" : null,
      "region_type" : "обл",
      "street_type" : "ул",
      "area_fias_id" : null,
      "city_fias_id" : "2858811e-448a-482e-9863-e03bf06bb5d4",
      "flat_fias_id" : null,
      "house_cadnum" : null,
      "stead_cadnum" : null,
      "area_kladr_id" : null,
      "city_district" : null,
      "city_kladr_id" : "6000000100000",
      "house_fias_id" : "863354b1-4be8-4020-9158-7559144fd932",
      "stead_fias_id" : null,
      "area_type_full" : null,
      "area_with_type" : null,
      "capital_marker" : "2",
      "city_type_full" : "город",
      "city_with_type" : "г Псков",
      "flat_type_full" : null,
      "history_values" : null,
      "house_kladr_id" : "6000000100004760126",
      "region_fias_id" : "f6e148a1-c9d0-4141-a608-93e3bd95e6c4",
      "street_fias_id" : "bd85e8d8-3064-41ca-baed-9fc3f57a07ed",
      "unparsed_parts" : null,
      "block_type_full" : null,
      "house_type_full" : "дом",
      "region_iso_code" : "RU-PSK",
      "region_kladr_id" : "6000000000000",
      "settlement_type" : null,
      "stead_type_full" : null,
      "street_kladr_id" : "60000001000047600",
      "beltway_distance" : null,
      "country_iso_code" : "RU",
      "federal_district" : "Северо-Западный",
      "region_type_full" : "область",
      "region_with_type" : "Псковская обл",
      "street_type_full" : "улица",
      "street_with_type" : "ул Льва Толстого",
      "tax_office_legal" : "6027",
      "city_district_type" : null,
      "settlement_fias_id" : null,
      "square_meter_price" : null,
      "settlement_kladr_id" : null,
      "fias_actuality_state" : "0",
      "settlement_type_full" : null,
      "settlement_with_type" : null,
      "city_district_fias_id" : null,
      "city_district_kladr_id" : null,
      "city_district_type_full" : null,
      "city_district_with_type" : null
    },
    "string" : "г Псков, ул Льва Толстого, д 1"
  },
  "city" : "Псков",
  "description" : "ул. Льва Толстого, д.1",
  "phone" : "+7(812) 425-64-22",
  "timeZone" : 180,
  "closed" : false,
  "frMode" : false,
  "hasServices" : false,
  "baseLegalEntityId" : 1,
  "storeBrandId" : 1,
  "otherDepartmentSearchId" : null,
  "depotId" : null,
  "productionId" : null,
  "departmentOid" : null,
  "departmentGuid" : null,
  "departmentLpuId" : null
}, {
  "id" : 1000000008,
  "type" : "STORE",
  "name" : "Третий магазин",
  "location" : {
    "data" : {
      "qc" : null,
      "area" : null,
      "city" : "Псков",
      "flat" : null,
      "block" : null,
      "floor" : null,
      "house" : "16",
      "metro" : null,
      "okato" : "58401000000",
      "oktmo" : "58701000001",
      "stead" : null,
      "qc_geo" : "0",
      "region" : "Псковская",
      "source" : null,
      "street" : "Рижский",
      "country" : "Россия",
      "fias_id" : "23b3ef2f-48f8-4964-8501-2243a0e2a855",
      "geo_lat" : "57.817608",
      "geo_lon" : "28.315544",
      "entrance" : null,
      "kladr_id" : "6000000100002470023",
      "qc_house" : null,
      "timezone" : null,
      "area_type" : null,
      "city_area" : null,
      "city_type" : "г",
      "divisions" : null,
      "fias_code" : null,
      "flat_area" : null,
      "flat_type" : null,
      "block_type" : null,
      "fias_level" : "8",
      "flat_price" : null,
      "geoname_id" : "504341",
      "house_type" : "д",
      "postal_box" : null,
      "settlement" : null,
      "stead_type" : null,
      "tax_office" : "6027",
      "beltway_hit" : null,
      "flat_cadnum" : null,
      "postal_code" : "180007",
      "qc_complete" : null,
      "region_type" : "обл",
      "street_type" : "пр-кт",
      "area_fias_id" : null,
      "city_fias_id" : "2858811e-448a-482e-9863-e03bf06bb5d4",
      "flat_fias_id" : null,
      "house_cadnum" : null,
      "stead_cadnum" : null,
      "area_kladr_id" : null,
      "city_district" : null,
      "city_kladr_id" : "6000000100000",
      "house_fias_id" : "23b3ef2f-48f8-4964-8501-2243a0e2a855",
      "stead_fias_id" : null,
      "area_type_full" : null,
      "area_with_type" : null,
      "capital_marker" : "2",
      "city_type_full" : "город",
      "city_with_type" : "г Псков",
      "flat_type_full" : null,
      "history_values" : null,
      "house_kladr_id" : "6000000100002470023",
      "region_fias_id" : "f6e148a1-c9d0-4141-a608-93e3bd95e6c4",
      "street_fias_id" : "36af3b40-3790-43cf-bac9-a19268dc7cda",
      "unparsed_parts" : null,
      "block_type_full" : null,
      "house_type_full" : "дом",
      "region_iso_code" : "RU-PSK",
      "region_kladr_id" : "6000000000000",
      "settlement_type" : null,
      "stead_type_full" : null,
      "street_kladr_id" : "60000001000024700",
      "beltway_distance" : null,
      "country_iso_code" : "RU",
      "federal_district" : "Северо-Западный",
      "region_type_full" : "область",
      "region_with_type" : "Псковская обл",
      "street_type_full" : "проспект",
      "street_with_type" : "Рижский пр-кт",
      "tax_office_legal" : "6027",
      "city_district_type" : null,
      "settlement_fias_id" : null,
      "square_meter_price" : null,
      "settlement_kladr_id" : null,
      "fias_actuality_state" : "0",
      "settlement_type_full" : null,
      "settlement_with_type" : null,
      "city_district_fias_id" : null,
      "city_district_kladr_id" : null,
      "city_district_type_full" : null,
      "city_district_with_type" : null
    },
    "string" : "г Псков, Рижский пр-кт, д 16"
  },
  "city" : "Псков",
  "description" : "Рижский проспект, д.16",
  "phone" : "+7(812) 425-64-22",
  "timeZone" : 180,
  "closed" : false,
  "frMode" : false,
  "hasServices" : true,
  "baseLegalEntityId" : 1,
  "storeBrandId" : 1,
  "otherDepartmentSearchId" : null,
  "depotId" : 1000000005,
  "productionId" : 1000000004,
  "departmentOid" : null,
  "departmentGuid" : null,
  "departmentLpuId" : null
}, {
  "id" : 1000000001,
  "type" : "OFFICE",
  "name" : "Центральный офис",
  "location" : {
    "data" : {
      "qc" : null,
      "area" : null,
      "city" : "Санкт-Петербург",
      "flat" : null,
      "block" : "2",
      "floor" : null,
      "house" : "12",
      "metro" : null,
      "okato" : "40298566000",
      "oktmo" : "40913000",
      "stead" : null,
      "qc_geo" : "0",
      "region" : "Санкт-Петербург",
      "source" : null,
      "street" : "Щербаков",
      "country" : "Россия",
      "fias_id" : "1b311976-2fdd-4f09-8c5b-5535c26c7c20",
      "geo_lat" : "59.92836",
      "geo_lon" : "30.345171",
      "entrance" : null,
      "kladr_id" : "78000000000154500",
      "qc_house" : null,
      "timezone" : null,
      "area_type" : null,
      "city_area" : null,
      "city_type" : "г",
      "divisions" : null,
      "fias_code" : null,
      "flat_area" : null,
      "flat_type" : null,
      "block_type" : "к",
      "fias_level" : "7",
      "flat_price" : null,
      "geoname_id" : "498817",
      "house_type" : "д",
      "postal_box" : null,
      "settlement" : null,
      "stead_type" : null,
      "tax_office" : "7840",
      "beltway_hit" : null,
      "flat_cadnum" : null,
      "postal_code" : "191002",
      "qc_complete" : null,
      "region_type" : "г",
      "street_type" : "пер",
      "area_fias_id" : null,
      "city_fias_id" : "c2deb16a-0330-4f05-821f-1d09c93331e6",
      "flat_fias_id" : null,
      "house_cadnum" : null,
      "stead_cadnum" : null,
      "area_kladr_id" : null,
      "city_district" : "Центральный",
      "city_kladr_id" : "7800000000000",
      "house_fias_id" : null,
      "stead_fias_id" : null,
      "area_type_full" : null,
      "area_with_type" : null,
      "capital_marker" : "0",
      "city_type_full" : "город",
      "city_with_type" : "г Санкт-Петербург",
      "flat_type_full" : null,
      "history_values" : null,
      "house_kladr_id" : null,
      "region_fias_id" : "c2deb16a-0330-4f05-821f-1d09c93331e6",
      "street_fias_id" : "1b311976-2fdd-4f09-8c5b-5535c26c7c20",
      "unparsed_parts" : null,
      "block_type_full" : "корпус",
      "house_type_full" : "дом",
      "region_iso_code" : "RU-SPE",
      "region_kladr_id" : "7800000000000",
      "settlement_type" : null,
      "stead_type_full" : null,
      "street_kladr_id" : "78000000000154500",
      "beltway_distance" : null,
      "country_iso_code" : "RU",
      "federal_district" : "Северо-Западный",
      "region_type_full" : "город",
      "region_with_type" : "г Санкт-Петербург",
      "street_type_full" : "переулок",
      "street_with_type" : "Щербаков пер",
      "tax_office_legal" : "7840",
      "city_district_type" : "р-н",
      "settlement_fias_id" : null,
      "square_meter_price" : null,
      "settlement_kladr_id" : null,
      "fias_actuality_state" : "0",
      "settlement_type_full" : null,
      "settlement_with_type" : null,
      "city_district_fias_id" : null,
      "city_district_kladr_id" : null,
      "city_district_type_full" : "район",
      "city_district_with_type" : "Центральный р-н"
    },
    "string" : "г Санкт-Петербург, Щербаков пер, д 12 к 2"
  },
  "city" : "Санкт-Петербург",
  "description" : "пер. Щербаков, д.12, корп.2",
  "phone" : "+7(812) 425-64-22",
  "timeZone" : 180,
  "closed" : false,
  "frMode" : false,
  "hasServices" : true,
  "baseLegalEntityId" : 1,
  "storeBrandId" : null,
  "otherDepartmentSearchId" : null,
  "depotId" : null,
  "productionId" : null,
  "departmentOid" : null,
  "departmentGuid" : null,
  "departmentLpuId" : null
}, {
  "id" : 1000000004,
  "type" : "PRODUCTION",
  "name" : "Цех",
  "location" : {
    "data" : {
      "qc" : null,
      "area" : null,
      "city" : "Псков",
      "flat" : null,
      "block" : null,
      "floor" : null,
      "house" : "1",
      "metro" : null,
      "okato" : "58401000000",
      "oktmo" : "58701000001",
      "stead" : null,
      "qc_geo" : "0",
      "region" : "Псковская",
      "source" : null,
      "street" : "Льва Толстого",
      "country" : "Россия",
      "fias_id" : "863354b1-4be8-4020-9158-7559144fd932",
      "geo_lat" : "57.814117",
      "geo_lon" : "28.347668",
      "entrance" : null,
      "kladr_id" : "6000000100004760126",
      "qc_house" : null,
      "timezone" : null,
      "area_type" : null,
      "city_area" : null,
      "city_type" : "г",
      "divisions" : null,
      "fias_code" : null,
      "flat_area" : null,
      "flat_type" : null,
      "block_type" : null,
      "fias_level" : "8",
      "flat_price" : null,
      "geoname_id" : "504341",
      "house_type" : "д",
      "postal_box" : null,
      "settlement" : null,
      "stead_type" : null,
      "tax_office" : "6027",
      "beltway_hit" : null,
      "flat_cadnum" : null,
      "postal_code" : "180000",
      "qc_complete" : null,
      "region_type" : "обл",
      "street_type" : "ул",
      "area_fias_id" : null,
      "city_fias_id" : "2858811e-448a-482e-9863-e03bf06bb5d4",
      "flat_fias_id" : null,
      "house_cadnum" : null,
      "stead_cadnum" : null,
      "area_kladr_id" : null,
      "city_district" : null,
      "city_kladr_id" : "6000000100000",
      "house_fias_id" : "863354b1-4be8-4020-9158-7559144fd932",
      "stead_fias_id" : null,
      "area_type_full" : null,
      "area_with_type" : null,
      "capital_marker" : "2",
      "city_type_full" : "город",
      "city_with_type" : "г Псков",
      "flat_type_full" : null,
      "history_values" : null,
      "house_kladr_id" : "6000000100004760126",
      "region_fias_id" : "f6e148a1-c9d0-4141-a608-93e3bd95e6c4",
      "street_fias_id" : "bd85e8d8-3064-41ca-baed-9fc3f57a07ed",
      "unparsed_parts" : null,
      "block_type_full" : null,
      "house_type_full" : "дом",
      "region_iso_code" : "RU-PSK",
      "region_kladr_id" : "6000000000000",
      "settlement_type" : null,
      "stead_type_full" : null,
      "street_kladr_id" : "60000001000047600",
      "beltway_distance" : null,
      "country_iso_code" : "RU",
      "federal_district" : "Северо-Западный",
      "region_type_full" : "область",
      "region_with_type" : "Псковская обл",
      "street_type_full" : "улица",
      "street_with_type" : "ул Льва Толстого",
      "tax_office_legal" : "6027",
      "city_district_type" : null,
      "settlement_fias_id" : null,
      "square_meter_price" : null,
      "settlement_kladr_id" : null,
      "fias_actuality_state" : "0",
      "settlement_type_full" : null,
      "settlement_with_type" : null,
      "city_district_fias_id" : null,
      "city_district_kladr_id" : null,
      "city_district_type_full" : null,
      "city_district_with_type" : null
    },
    "string" : "г Псков, ул Льва Толстого, д 1"
  },
  "city" : "Псков",
  "description" : "ул. Льва Толстого, д.1",
  "phone" : "+7(812) 425-64-22",
  "timeZone" : 180,
  "closed" : false,
  "frMode" : false,
  "hasServices" : false,
  "baseLegalEntityId" : 1,
  "storeBrandId" : 1,
  "otherDepartmentSearchId" : null,
  "depotId" : null,
  "productionId" : null,
  "departmentOid" : null,
  "departmentGuid" : null,
  "departmentLpuId" : null
}, {
  "id" : 1000000006,
  "type" : "STORE",
  "name" : "Четвертый магазин",
  "location" : {
    "data" : {
      "qc" : null,
      "area" : null,
      "city" : "Псков",
      "flat" : null,
      "block" : null,
      "floor" : null,
      "house" : "23",
      "metro" : null,
      "okato" : "58401000000",
      "oktmo" : "58701000001",
      "stead" : null,
      "qc_geo" : "2",
      "region" : "Псковская",
      "source" : null,
      "street" : "Пушкина",
      "country" : "Россия",
      "fias_id" : "a3fa3ca2-83fb-4c7e-8565-97157befb9c5",
      "geo_lat" : "57.81716",
      "geo_lon" : "28.338973",
      "entrance" : null,
      "kladr_id" : "60000001000023100",
      "qc_house" : null,
      "timezone" : null,
      "area_type" : null,
      "city_area" : null,
      "city_type" : "г",
      "divisions" : null,
      "fias_code" : null,
      "flat_area" : null,
      "flat_type" : null,
      "block_type" : null,
      "fias_level" : "7",
      "flat_price" : null,
      "geoname_id" : "504341",
      "house_type" : "д",
      "postal_box" : null,
      "settlement" : null,
      "stead_type" : null,
      "tax_office" : "6027",
      "beltway_hit" : null,
      "flat_cadnum" : null,
      "postal_code" : "180000",
      "qc_complete" : null,
      "region_type" : "обл",
      "street_type" : "ул",
      "area_fias_id" : null,
      "city_fias_id" : "2858811e-448a-482e-9863-e03bf06bb5d4",
      "flat_fias_id" : null,
      "house_cadnum" : null,
      "stead_cadnum" : null,
      "area_kladr_id" : null,
      "city_district" : null,
      "city_kladr_id" : "6000000100000",
      "house_fias_id" : null,
      "stead_fias_id" : null,
      "area_type_full" : null,
      "area_with_type" : null,
      "capital_marker" : "2",
      "city_type_full" : "город",
      "city_with_type" : "г Псков",
      "flat_type_full" : null,
      "history_values" : null,
      "house_kladr_id" : null,
      "region_fias_id" : "f6e148a1-c9d0-4141-a608-93e3bd95e6c4",
      "street_fias_id" : "a3fa3ca2-83fb-4c7e-8565-97157befb9c5",
      "unparsed_parts" : null,
      "block_type_full" : null,
      "house_type_full" : "дом",
      "region_iso_code" : "RU-PSK",
      "region_kladr_id" : "6000000000000",
      "settlement_type" : null,
      "stead_type_full" : null,
      "street_kladr_id" : "60000001000023100",
      "beltway_distance" : null,
      "country_iso_code" : "RU",
      "federal_district" : "Северо-Западный",
      "region_type_full" : "область",
      "region_with_type" : "Псковская обл",
      "street_type_full" : "улица",
      "street_with_type" : "ул Пушкина",
      "tax_office_legal" : "6027",
      "city_district_type" : null,
      "settlement_fias_id" : null,
      "square_meter_price" : null,
      "settlement_kladr_id" : null,
      "fias_actuality_state" : "0",
      "settlement_type_full" : null,
      "settlement_with_type" : null,
      "city_district_fias_id" : null,
      "city_district_kladr_id" : null,
      "city_district_type_full" : null,
      "city_district_with_type" : null
    },
    "string" : "г Псков, ул Пушкина, д 23"
  },
  "city" : "Псков",
  "description" : "ул. Пушкина, 23",
  "phone" : "+7(812) 425-64-22",
  "timeZone" : 180,
  "closed" : false,
  "frMode" : false,
  "hasServices" : false,
  "baseLegalEntityId" : 1,
  "storeBrandId" : 1,
  "otherDepartmentSearchId" : null,
  "depotId" : null,
  "productionId" : null,
  "departmentOid" : null,
  "departmentGuid" : null,
  "departmentLpuId" : null
} ]
Table 217. response description
Path Type Description

[]

Array

list of departments in which the legal entity does not work

[].id

Number

The department’s id

[].name

String

The department’s name

request
GET /api/v2/departments/1000000003/unused-legal-entities HTTP/1.1
Table 218. /api/v2/departments/{departmentId}/unused-legal-entities
Parameter Description

departmentId

The department’s id

response
HTTP/1.1 200 OK

[ {
  "id" : 5,
  "shortName" : "ИП1",
  "inn" : "122",
  "kpp" : "123",
  "ogrn" : "123",
  "okpo" : "123"
}, {
  "id" : 4,
  "shortName" : "ООО \"ПОКРОВСК-ОПТИКА ПЛЮС\"",
  "inn" : "6449026622",
  "kpp" : "644901001",
  "ogrn" : "1026401985576",
  "okpo" : "1"
} ]
Table 219. response description
Path Type Description

[]

Array

list of legal entities not working in the department

[].id

Number

The legal entity’s id

[].shortName

String

The legal entity’s short name