Moving my offers to the trash folder
Description
With the help of this method, the current user can move to the trash folder several of his/her own freight and vehicle offers.
URL structure
POST /v2/proposals/my/basket/throw
List of parameters
Name | Description | Parameter transfer type | Required(+)/Default(value) |
---|---|---|---|
language |
Localization language. Usage details. | Query string parameter | ru |
cargoIds |
Array of freight offers ids. | Request body parameter | [] |
lorryIds |
Array of vehicle offers ids. | Request body parameter | [] |
Result
Structure "Response to a request to edit several of your offers".
Sample request
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/throw"
Sample response
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
},
"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
},
"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
}
]
}
}