Skip to content

Structure "Response to a request to delete several of your offers"

This structure describes the server response to the request Removing my offers from the trash folder.

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
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

Sample

JSON
{
    "cargoes": {
        "errors": [
            {
                "id": 1,
                "message": "заявка не найдена",
                "errorCode": 7
            },
            {
                "id": 2,
                "message": "заявка не найдена",
                "errorCode": 7
            }
        ],
        "success": [
            298243420
        ]
    },
    "lorries": {
        "errors": [
            {
                "id": 4,
                "message": "заявка не найдена",
                "errorCode": 7
            },
            {
                "id": 5,
                "message": "заявка не найдена",
                "errorCode": 7
            }
        ],
        "success": [
            350200005
        ]
    }
}