/api/lite/settings/warehouses
Получение перечня складов для аккаунта
/api/lite/settings/warehouses
Возвращает перечень складов аккаунта
operatorType: MANUAL/FULFILLMENT
fulfillmentType: TEMPOLINE
Пример успешного ответа:
{
"success": true,
"warehouses": [
{
"code": "c738ff57-424c-2a8c-aa47-5378a88dc7c9",
"title": "Свой склад",
"isDefault": true,
"operatorType": "MANUAL",
"fulfillmentType": null,
"operationType": "STORAGE",
"address": {
"country": "Russia",
"countryCode": "RU",
"region": "Москва",
"area": null,
"city": "Москва",
"settlement": null,
"street": "Очаковская Б.",
"house": "47А",
"block": "1",
"building": null,
"flat": null,
"fullAddress": "Москва, Очаковская Б., д 47А, к 1",
"fullCity": null,
"rawData": null,
"zip": null,
"regionFias": "0c5b2444-70a0-4932-980c-b4dc0d3f02b5",
"areaFias": null,
"cityFias": "0c5b2444-70a0-4932-980c-b4dc0d3f02b5",
"settlementFias": null
},
"manager": {
"name": "Не задано",
"surname": "",
"patronymic": "",
"fullName": "Егор",
"phone": "+79111111111",
"rawPhone": "+7 (911) 111 11 11",
"alternativePhone": "",
"email": "easychshnurki@yandex.ru",
"post": null,
"personType": null
}
}
]
}
Редактирование склада
/api/lite/settings/warehouses
На данном этапе реализовано только изменение имени склада ("title":"Свой склад"). (задача 1669)
склад ищется по GUID ("code":"418a1cb1-eb57-ecc8-8c8f-08efb978bd49").
Пример вызова:
{
"code":"418a1cb1-eb57-ecc8-8c8f-08efb978bd49",
"title":"Свой склад",
"isDefault":true,
"operatorType":"MANUAL",
"fulfillmentType":null,
"fulfillmentSubType":null,
"operationType":"STORAGE",
"goodsCondition":"NORMAL",
"parentCode":null,
"address":{
"country":"Россия",
"countryCode":"RU",
"region":"Москва",
"area":null,
"city":"Москва",
"settlement":null,
"street":"Проектируемый проезд № 1980",
"house":"д. 4",
"block":null,
"building":null,
"flat":null,
"fullAddress":"Москва, Проектируемый проезд № 1980, д. 4",
"fullCity":null,
"rawData":null,
"zip":null,
"regionFias":"0c5b2444-70a0-4932-980c-b4dc0d3f02b5",
"areaFias":null,
"cityFias":"0c5b2444-70a0-4932-980c-b4dc0d3f02b5",
"settlementFias":null
},
"manager":{
"name":"Склада",
"surname":"Менеджер",
"patronymic":"",
"fullName":"Менеджер склада",
"phone":"+79011111111",
"rawPhone":"+79011111111",
"alternativePhone":"",
"email":"778@q.qq",
"post":null,
"personType":null,
"address":{
"country":null,
"countryCode":null,
"region":null,
"area":null,
"city":null,
"settlement":null,
"street":null,
"house":null,
"block":null,
"building":null,
"flat":null,
"fullAddress":null,
"fullCity":null,
"rawData":null,
"zip":null,
"regionFias":null,
"areaFias":null,
"cityFias":null,
"settlementFias":null
}
}
}
Пример успешного ответа
{
"success": true
}