Восстановление моих заявок из корзины
Описание
С помощью этого метода можно восстановить из корзины несколько собственных заявок по грузу и транспорту для текущего пользователя.
Структура URL
POST /v2/proposals/my/basket/restore
Список параметров
Название | Описание | Тип передачи параметра | Обязательный(+)/По умолчанию(значение) |
---|---|---|---|
language |
Язык локализации. Описание использования. | Query string parameter | ru |
cargoIds |
Массив идентификаторов заявок по грузу. | Request body parameter | [] |
lorryIds |
Массив идентификаторов заявок по транспорту. | Request body parameter | [] |
Результат
Структура "Ответ на запрос редактирования нескольких своих заявок".
Пример запроса
curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: 3WQ1EQ465C4005000130" -d "{\"cargoIds\":[1,2,350203537],\"lorryIds\":[4,5,350203540]}" "https://api.lardi-trans.com/v2/proposals/my/basket/restore"
Пример ответа
JSON
{
"cargoes": {
"errors": [
{
"id": 1,
"message": "заявка не найдена",
"errorCode": 7
},
{
"id": 2,
"message": "заявка не найдена",
"errorCode": 7
}
],
"success": [
350203537
],
"items": [
{
"id": 350203537,
"dateCreate": 1583231716000,
"dateRepeat": 1583231716000,
"dateFrom": 1583193600000,
"dateTo": 1583193600000,
"distanceLine": 1007483.586,
"distanceTime": 46075299,
"waypointListSource": [
{
"town": {
"id": 69,
"name": "Харьков"
},
"area": {
"id": 34,
"name": "Харьковская обл."
},
"country": {
"sign": "UA",
"name": "Украина"
},
"postCode": "61",
"address": "Зенитная улица, Павловка",
"lat": 49.9935,
"lon": 36.230383
}
],
"waypointListTarget": [
{
"town": {
"id": 179,
"name": "Львов"
},
"area": {
"id": 27,
"name": "Львовская обл."
},
"country": {
"sign": "UA",
"name": "Украина"
},
"postCode": "",
"address": "Золотая улица, 17",
"lat": 49.839683,
"lon": 24.029717
}
],
"bodyType": {
"id": 36,
"name": "Цельномет"
},
"bodyGroup": {
"id": 1,
"name": "Крытая"
},
"loadTypes": [
{
"id": 25,
"name": "боковая"
},
{
"id": 24,
"name": "верхняя"
},
{
"id": 26,
"name": "задняя"
}
],
"payment": {
"price": "1000",
"currency": {
"id": 2,
"name": "грн."
},
"unit": {
"id": 2,
"name": "км"
},
"moment": {
"id": 4,
"name": "на выгрузке"
},
"type": {
"id": 4,
"name": "безнал."
},
"prepay": 10,
"delay": 0,
"vat": true
},
"paymentForms": [
{
"type": {
"id": 8,
"name": "e.payment"
},
"vat": true
}
],
"cargoPackaging": [
{
"type": {
"id": 10,
"name": "1,2x1,2 m"
},
"count": 12
}
],
"owner": {
"refId": 10101583040,
"name": "Ларди-Tест Бренд",
"face": "Контактное лицо",
"contactId": 0,
"phones": [
{
"number": "+380(95)1234567",
"messengers": [
"WHATSAPP",
"TELEGRAM",
"VIBER"
]
},
{
"number": "+380(95)2345678",
"messengers": [
"TELEGRAM"
]
},
{
"number": "+380(95)3456789",
"messengers": []
},
{
"number": "+380(95)4567890",
"messengers": []
}
],
"address": {
"town": {
"id": 69,
"name": "Харьков"
},
"area": {
"id": 34,
"name": "Харьковская обл."
},
"country": {
"sign": "UA",
"name": "Украина"
}
},
"rating": {
"positiveCommentCount": 7,
"negativeCommentCount": 1
}
},
"note": "хрупкий хруз",
"cmr": true,
"cmrInsurance": false,
"groupage": true,
"t1": false,
"tir": false,
"adr": 1,
"lorryAmount": 2,
"photos": [
"http://medianew.lardi-trans.com/originImage/proposal/5e5e3297f96e155451771afb/logo.jpg"
],
"repeat": {
"auto": false,
"countToday": 0
},
"content": {
"id": 1403,
"name": "стекло в ящиках"
},
"size": {
"massFrom": 15,
"massTo": 20,
"volumeFrom": 80,
"volumeTo": 90,
"length": 0,
"width": 0,
"height": 0
},
"medicalRecords": true,
"customsControl": false,
"loadingFrequency": {
"id": 3,
"name": "в неделю"
}
}
]
},
"lorries": {
"errors": [
{
"id": 4,
"message": "заявка не найдена",
"errorCode": 7
},
{
"id": 5,
"message": "заявка не найдена",
"errorCode": 7
}
],
"success": [
350203540
],
"items": [
{
"id": 350203540,
"dateCreate": 1583233348000,
"dateRepeat": 1583233348000,
"dateFrom": 1586304000000,
"dateTo": 1588982400000,
"distanceLine": 1007483.586,
"distanceTime": 46075299,
"waypointListSource": [
{
"town": {
"id": 69,
"name": "Харьков"
},
"area": {
"id": 34,
"name": "Харьковская обл."
},
"country": {
"sign": "UA",
"name": "Украина"
},
"postCode": "61",
"address": "Зенитная улица, Павловка",
"lat": 49.9935,
"lon": 36.230383
}
],
"waypointListTarget": [
{
"town": {
"id": 179,
"name": "Львов"
},
"area": {
"id": 27,
"name": "Львовская обл."
},
"country": {
"sign": "UA",
"name": "Украина"
},
"postCode": "",
"address": "Золотая улица, 17",
"lat": 49.839683,
"lon": 24.029717
}
],
"bodyType": {
"id": 34,
"name": "Тент"
},
"bodyGroup": {
"id": 1,
"name": "Крытая"
},
"loadTypes": [
{
"id": 27,
"name": "с полной растентовкой"
},
{
"id": 26,
"name": "задняя"
}
],
"payment": {
"price": "1000",
"currency": {
"id": 2,
"name": "грн."
},
"unit": {
"id": 2,
"name": "км"
},
"moment": {
"id": 4,
"name": "на выгрузке"
},
"type": {
"id": 4,
"name": "безнал."
},
"prepay": 10,
"delay": 0,
"vat": true
},
"paymentForms": [
{
"type": {
"id": 8,
"name": "e.payment"
},
"vat": true
}
],
"owner": {
"refId": 10101583040,
"name": "Ларди-Tест Бренд",
"face": "Контактное лицо",
"contactId": 0,
"phones": [
{
"number": "+380(95)1234567",
"messengers": [
"WHATSAPP",
"TELEGRAM",
"VIBER"
]
},
{
"number": "+380(95)2345678",
"messengers": [
"TELEGRAM"
]
},
{
"number": "+380(95)3456789",
"messengers": []
},
{
"number": "+380(95)4567890",
"messengers": []
}
],
"address": {
"town": {
"id": 69,
"name": "Харьков"
},
"area": {
"id": 34,
"name": "Харьковская обл."
},
"country": {
"sign": "UA",
"name": "Украина"
}
},
"rating": {
"positiveCommentCount": 7,
"negativeCommentCount": 1
}
},
"note": "безопасные перевозки",
"cmr": true,
"cmrInsurance": false,
"groupage": true,
"t1": false,
"tir": false,
"adr": 1,
"lorryAmount": 2,
"photos": [
"http://medianew.lardi-trans.com/originImage/proposal/5e5e393bf96e155451771afc/logo.jpg"
],
"repeat": {
"auto": false,
"countToday": 0
},
"size": {
"body": {
"mass": 20,
"volume": 90,
"length": 10,
"width": 2.5,
"height": 3
},
"trailer": {
"mass": 20,
"volume": 90,
"length": 10,
"width": 2.5,
"height": 3
}
},
"autoparkId": 0,
"ekmt": true
}
]
}
}