Legal entity - department link
create
POST /api/v2/departments/1000000007/legal-entities/6 HTTP/1.1
{
"accountId" : 1000000003,
"fiscalRegisterId" : null,
"fiscalRegisterType" : "SHTRIH_M"
}
Parameter | Description |
---|---|
|
The department’s id |
|
The legal entity’s id |
Path | Type | Description | Constraints |
---|---|---|---|
accountId |
Number |
Id of used account |
|
fiscalRegisterId |
Number |
Id of used fiscal register. Used only for fiscal registers not handled by Optima Native |
|
fiscalRegisterType |
String |
Id of user fiscal register’s type. For possible values see here (field 'id') |
HTTP/1.1 201 Created
Location: /api/v2/departments/1000000007/legal-entities/6
list by department
GET /api/v2/departments/1000000007/legal-entities HTTP/1.1
Parameter | Description |
---|---|
|
The department’s id |
HTTP/1.1 200 OK
[ {
"account" : {
"id" : 1000000003,
"name" : "Расчетный"
},
"department" : {
"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,
"legalEntityId" : 1,
"storeBrandId" : 1,
"otherDepartmentSearchId" : null,
"depotId" : 1000000005,
"productionId" : 1000000004,
"cashAccountId" : null,
"cardAccountId" : null,
"collectionAccountId" : null,
"grayAccountId" : null,
"collectionGrayAccountId" : null,
"departmentOid" : null,
"departmentGuid" : null,
"departmentLpuId" : null
},
"fiscalRegister" : {
"id" : null,
"configJson" : null,
"externalId" : null,
"name" : null,
"type" : "SHTRIH_M"
},
"legalEntity" : {
"id" : 6,
"shortName" : "ИП 2",
"inn" : "21",
"kpp" : "12",
"ogrn" : "21",
"okpo" : "21"
},
"unremovable" : false
}, {
"account" : null,
"department" : {
"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,
"legalEntityId" : 1,
"storeBrandId" : 1,
"otherDepartmentSearchId" : null,
"depotId" : 1000000005,
"productionId" : 1000000004,
"cashAccountId" : null,
"cardAccountId" : null,
"collectionAccountId" : null,
"grayAccountId" : null,
"collectionGrayAccountId" : null,
"departmentOid" : null,
"departmentGuid" : null,
"departmentLpuId" : null
},
"fiscalRegister" : {
"id" : null,
"configJson" : null,
"externalId" : null,
"name" : null,
"type" : null
},
"legalEntity" : {
"id" : 1,
"shortName" : "ИП Валеева Людмила Александровна",
"inn" : "644901490342",
"kpp" : "0",
"ogrn" : "304644929900308",
"okpo" : "0"
},
"unremovable" : true
} ]
Path | Type | Description |
---|---|---|
|
|
List of infos about legal entities working in the department |
|
|
Used account |
|
|
The account’s id |
|
|
The account’s name |
|
|
The department |
|
|
The department’s id |
|
|
The department’s type |
|
|
The department’s name |
|
|
Used fiscal register |
|
|
The fiscal register’s id. Used only for fiscal registers not handled by Optima Native |
|
|
The fiscal register’s visible name. Used only for fiscal registers not handled by Optima Native |
|
|
Id of the fiscal register’s type. For possible values see here (field 'id') |
|
|
The legal entity |
|
|
The legal entity’s id |
|
|
The legal entity’s short name |
|
|
If true, the legal entity cannot be unlinked from the department |
list by legal entity
GET /api/v2/legal-entities/4/departments?departmentType=STORE HTTP/1.1
Parameter | Description |
---|---|
|
The legal entity’s id |
Parameter | Description |
---|---|
|
|
|
Department type |
|
Department name |
HTTP/1.1 200 OK
{
"content" : [ {
"account" : null,
"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,
"legalEntityId" : 1,
"storeBrandId" : 1,
"otherDepartmentSearchId" : null,
"depotId" : 1000000005,
"productionId" : 1000000004,
"cashAccountId" : 1000000002,
"cardAccountId" : 1000000003,
"collectionAccountId" : null,
"grayAccountId" : 1000000004,
"collectionGrayAccountId" : null,
"departmentOid" : "9999",
"departmentGuid" : null,
"departmentLpuId" : null
},
"fiscalRegister" : {
"id" : null,
"configJson" : null,
"externalId" : null,
"name" : null,
"type" : null
},
"legalEntity" : {
"id" : 4,
"shortName" : "ООО \"ПОКРОВСК-ОПТИКА ПЛЮС\"",
"inn" : "6449026622",
"kpp" : "644901001",
"ogrn" : "1026401985576",
"okpo" : "1"
},
"unremovable" : false
} ],
"pageable" : {
"pageNumber" : 0,
"pageSize" : 10,
"sort" : {
"empty" : false,
"sorted" : true,
"unsorted" : false
},
"offset" : 0,
"paged" : true,
"unpaged" : false
},
"last" : true,
"totalElements" : 1,
"totalPages" : 1,
"first" : true,
"size" : 10,
"number" : 0,
"sort" : {
"empty" : false,
"sorted" : true,
"unsorted" : false
},
"numberOfElements" : 1,
"empty" : false
}
Path | Type | Description |
---|---|---|
|
|
List of infos about departments where the legal entity works |
|
|
Used account |
|
|
The account’s id |
|
|
The account’s name |
|
|
The department |
|
|
The department’s id |
|
|
The department’s type |
|
|
The department’s name |
|
|
Used fiscal register |
|
|
The fiscal register’s id. Used only for fiscal registers not handled by Optima Native |
|
|
The fiscal register’s visible name. Used only for fiscal registers not handled by Optima Native |
|
|
Id of the fiscal register’s type. For possible values see here (field 'id') |
|
|
The legal entity |
|
|
The legal entity’s id |
|
|
The legal entity’s short name |
|
|
If true, the legal entity cannot be unlinked from the department |
update
PUT /api/v2/departments/1000000007/legal-entities/6 HTTP/1.1
{
"accountId" : 1000000005,
"fiscalRegisterId" : null,
"fiscalRegisterType" : "ATOL"
}
Parameter | Description |
---|---|
|
The department’s id |
|
The legal entity’s id |
Path | Type | Description | Constraints |
---|---|---|---|
accountId |
Number |
Id of used account |
|
fiscalRegisterId |
Number |
Id of used fiscal register. Used only for fiscal registers not handled by Optima Native |
|
fiscalRegisterType |
String |
Id of user fiscal register’s type. For possible values see here (field 'id') |
HTTP/1.1 200 OK
delete
DELETE /api/v2/departments/1000000007/legal-entities/6 HTTP/1.1
Parameter | Description |
---|---|
|
The department’s id |
|
The legal entity’s id |
HTTP/1.1 204 No Content
list unused departments by legal entity
GET /api/v2/legal-entities/6/unused-departments HTTP/1.1
Parameter | Description |
---|---|
|
The legal entity’s id |
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,
"legalEntityId" : 1,
"storeBrandId" : 1,
"otherDepartmentSearchId" : null,
"depotId" : 1000000005,
"productionId" : 1000000004,
"cashAccountId" : null,
"cardAccountId" : null,
"collectionAccountId" : null,
"grayAccountId" : null,
"collectionGrayAccountId" : null,
"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,
"legalEntityId" : 1,
"storeBrandId" : 1,
"otherDepartmentSearchId" : null,
"depotId" : null,
"productionId" : null,
"cashAccountId" : null,
"cardAccountId" : null,
"collectionAccountId" : null,
"grayAccountId" : null,
"collectionGrayAccountId" : 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,
"legalEntityId" : 1,
"storeBrandId" : 1,
"otherDepartmentSearchId" : null,
"depotId" : 1000000005,
"productionId" : 1000000004,
"cashAccountId" : null,
"cardAccountId" : null,
"collectionAccountId" : null,
"grayAccountId" : null,
"collectionGrayAccountId" : null,
"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,
"legalEntityId" : 1,
"storeBrandId" : null,
"otherDepartmentSearchId" : null,
"depotId" : null,
"productionId" : null,
"cashAccountId" : null,
"cardAccountId" : null,
"collectionAccountId" : null,
"grayAccountId" : null,
"collectionGrayAccountId" : 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,
"legalEntityId" : 1,
"storeBrandId" : 1,
"otherDepartmentSearchId" : null,
"depotId" : null,
"productionId" : null,
"cashAccountId" : null,
"cardAccountId" : null,
"collectionAccountId" : null,
"grayAccountId" : null,
"collectionGrayAccountId" : 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,
"legalEntityId" : 1,
"storeBrandId" : 1,
"otherDepartmentSearchId" : null,
"depotId" : null,
"productionId" : null,
"cashAccountId" : null,
"cardAccountId" : null,
"collectionAccountId" : null,
"grayAccountId" : null,
"collectionGrayAccountId" : null,
"departmentOid" : null,
"departmentGuid" : null,
"departmentLpuId" : null
} ]
Path | Type | Description |
---|---|---|
|
|
list of departments in which the legal entity does not work |
|
|
The department’s id |
|
|
The department’s name |
list unused legal entities by department
GET /api/v2/departments/1000000003/unused-legal-entities HTTP/1.1
Parameter | Description |
---|---|
|
The department’s id |
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"
} ]
Path | Type | Description |
---|---|---|
|
|
list of legal entities not working in the department |
|
|
The legal entity’s id |
|
|
The legal entity’s short name |