Structure "Response to a request to edit several of your offers"
This structure describes the server response for API methods that in the same way edit several of the current user's own freight and vehicle offers (Section on managing user's offers).
Field description
Name | Description | Data type | Required |
---|---|---|---|
cargoes | Response for freight offers. | Object | + |
cargoes.errors | Errors in editing freight offers. | Array of "Error when editing several of your offers" structures | |
cargoes.success | IDs of freight offers that have been successfully edited. | Array of numbers | |
cargoes.items | Freight offers that have been successfully edited. | Array of "Freight" structures. | |
lorries | Response for vehicle offers. | Object | + |
lorries.errors | Errors in editing vehicle offers. | Array of "Error when editing several of your offers" structures | |
lorries.success | IDs of vehicle offers that have been successfully edited. | Array of numbers | |
lorries.items | Vehicle offers that have been successfully edited. | Array of "Vehicles" structures. |
Sample
JSON
{
"cargoes": {
"errors": [
{
"id": 1,
"message": "заявка не найдена",
"errorCode": 7
},
{
"id": 350202538,
"message": "повтор этой заявки недоступен",
"errorCode": 16
}
],
"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": 350202771,
"message": "повтор этой заявки недоступен",
"errorCode": 16
}
],
"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
}
]
}
}