Update Track
Update Track with subentities uploaded files and SubTracks
Endpoint
POST api/track-update/{id}
{id} - Track ID
Request Headers
{
"Authorization": "Bearer {token}",
"Content-Type": "application/json"
}
Request Body
{
name:Track Test 222-12
status:new
partner_id:2
deadline:2026-05-01
documents[cmr][0][note]:Note for doc
documents[cmr][0][file]: file.pdf
documents[cmr][1][file]: file.pdf
documents[vmd][0][file]: file.pdf
documents[proforma_invoice][0][file]: file.pdf
documents[commercial_invoice][0][file]: file.pdf
counterparty[name]:counterparty name 1
counterparty[info]:counterparty info 22
counterparty[documents][commercial_invoice][0][file]: file.pdf
partner_payments[0][price]:1500
partner_payments[0][currency]:USD
partner_payments[0][exchange]:42.65
partner_payments[0][documents][payment_files][0][file]: file.pdf
delivery_payments[0][name]:Delivery name
delivery_payments[0][amount]:5
delivery_payments[0][documents][logistic_block][0][file]: file.pdf
sub_tracks[0][name]:Sub track name
sub_tracks[0][status]:new
sub_tracks[0][partner_payments][0][price]:200
sub_tracks[0][partner_payments][0][currency]:USD
sub_tracks[0][partner_payments][0][exchange]:42.55
sub_tracks[0][counterparty][name]:1111111
sub_tracks[0][counterparty][info]:fwewfwefwef
sub_tracks[0][partner_payments][0][documents][payment_files][0][file]: file.pdf
sub_tracks[0][counterparty][documents][commercial_invoice][0][file]: file.pdf
...
sub_tracks[1][name]: Sub track name 2
sub_tracks[1][status]:new
sub_tracks[1][partner_payments][0][price]:205
sub_tracks[1][partner_payments][0][currency]:USD
sub_tracks[1][partner_payments][0][exchange]:42.57
sub_tracks[1][partner_payments][0][documents][payment_files][0][file]: file.pdf
sub_tracks[1][counterparty][name]:new name
sub_tracks[1][counterparty][info]: info data text
}
Expected Response 200
{
"id": 23,
"name": "Track Test 111 222 333 - 12",
"status": "in_progress",
"done_date": null,
"partner_id": "1",
"deadline": "2026-05-01T00:00:00.000000Z",
"created_at": "2026-03-11T07:58:06.000000Z",
"updated_at": "2026-03-11T07:58:15.000000Z",
"documents": [
{
"id": 1387,
"name": "Proforma Invoice",
"type": "proforma_invoice",
"documentable_type": "App\\Models\\Track",
"documentable_id": 23,
"created_at": "2026-03-11T07:58:06.000000Z",
"updated_at": "2026-03-11T07:58:06.000000Z",
"files": []
},
{
"id": 1388,
"name": "Commercial Invoice",
"type": "commercial_invoice",
"documentable_type": "App\\Models\\Track",
"documentable_id": 23,
"created_at": "2026-03-11T07:58:06.000000Z",
"updated_at": "2026-03-11T07:58:06.000000Z",
"files": []
},
{
"id": 1389,
"name": "Package List",
"type": "package_list",
"documentable_type": "App\\Models\\Track",
"documentable_id": 23,
"created_at": "2026-03-11T07:58:06.000000Z",
"updated_at": "2026-03-11T07:58:06.000000Z",
"files": []
},
{
"id": 1390,
"name": "Additional Documents",
"type": "additional_documents",
"documentable_type": "App\\Models\\Track",
"documentable_id": 23,
"created_at": "2026-03-11T07:58:06.000000Z",
"updated_at": "2026-03-11T07:58:06.000000Z",
"files": [
{
"id": 1367,
"document_id": 1390,
"file": "documents/eyf2aQ9wapPoZnvO3qhDI0ownk63LWn5J7rC1I0h.pdf",
"note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z"
}
]
},
{
"id": 1391,
"name": "VMD",
"type": "vmd",
"documentable_type": "App\\Models\\Track",
"documentable_id": 23,
"created_at": "2026-03-11T07:58:06.000000Z",
"updated_at": "2026-03-11T07:58:06.000000Z",
"files": []
},
{
"id": 1392,
"name": "CMR",
"type": "cmr",
"documentable_type": "App\\Models\\Track",
"documentable_id": 23,
"created_at": "2026-03-11T07:58:06.000000Z",
"updated_at": "2026-03-11T07:58:06.000000Z",
"files": []
},
{
"id": 1393,
"name": "Partner Pay To Supply",
"type": "partner_pay_to_supply",
"documentable_type": "App\\Models\\Track",
"documentable_id": 23,
"created_at": "2026-03-11T07:58:06.000000Z",
"updated_at": "2026-03-11T07:58:06.000000Z",
"files": []
}
],
"counterparties": [
{
"id": 70,
"name": "counterparty name",
"info": "counterparty info",
"created_at": "2026-03-11T07:58:06.000000Z",
"updated_at": "2026-03-11T07:58:15.000000Z",
"counterpartyable_type": "App\\Models\\Track",
"counterpartyable_id": 23,
"documents": [
{
"id": 1394,
"name": "Proforma Invoice",
"type": "proforma_invoice",
"documentable_type": "App\\Models\\Counterparty",
"documentable_id": 70,
"created_at": "2026-03-11T07:58:06.000000Z",
"updated_at": "2026-03-11T07:58:06.000000Z",
"files": [
{
"id": 1369,
"document_id": 1394,
"file": "documents/1OTl3hM7EM670hjEVGqrHF57YSocbZBCdjPbKhm1.pdf",
"note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z"
}
]
},
{
"id": 1395,
"name": "Commercial Invoice",
"type": "commercial_invoice",
"documentable_type": "App\\Models\\Counterparty",
"documentable_id": 70,
"created_at": "2026-03-11T07:58:06.000000Z",
"updated_at": "2026-03-11T07:58:06.000000Z",
"files": [
{
"id": 1368,
"document_id": 1395,
"file": "documents/WFLURFeMHVZynHFGn8i8eVaisXNwKx7O4tl5Azru.pdf",
"note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z"
}
]
},
{
"id": 1396,
"name": "Package List",
"type": "package_list",
"documentable_type": "App\\Models\\Counterparty",
"documentable_id": 70,
"created_at": "2026-03-11T07:58:06.000000Z",
"updated_at": "2026-03-11T07:58:06.000000Z",
"files": [
{
"id": 1371,
"document_id": 1396,
"file": "documents/krOLE5qSfTE8AjlNdAriYeoJ14xn21zfETxeRIcU.pdf",
"note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z"
}
]
},
{
"id": 1397,
"name": "Additional Documents",
"type": "additional_documents",
"documentable_type": "App\\Models\\Counterparty",
"documentable_id": 70,
"created_at": "2026-03-11T07:58:06.000000Z",
"updated_at": "2026-03-11T07:58:06.000000Z",
"files": [
{
"id": 1370,
"document_id": 1397,
"file": "documents/7sJcfdg1X82fw9SXLiVgglb5pHHvXFR4Mbyus16z.pdf",
"note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z"
}
]
}
]
}
],
"partner_payments": [
{
"id": 217,
"price": "15750.00",
"exchange": "43.21700",
"currency": "USD",
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"payable_type": "App\\Models\\Track",
"payable_id": 23,
"documents": [
{
"id": 1632,
"name": "Payment Files",
"type": "payment_files",
"documentable_type": "App\\Models\\PartnerPayment",
"documentable_id": 217,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"files": [
{
"id": 1372,
"document_id": 1632,
"file": "documents/Tm9vI0SvKR0x8CINO4I34tbmBZR2aTQjxwA01k3B.pdf",
"note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z"
}
]
}
]
}
],
"delivery_payments": [
{
"id": 146,
"name": "Delivery name",
"amount": "5.00",
"delivery_note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"payable_type": "App\\Models\\Track",
"payable_id": 23,
"documents": [
{
"id": 1633,
"name": "Logistic Block",
"type": "logistic_block",
"documentable_type": "App\\Models\\DeliveryPayment",
"documentable_id": 146,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"files": [
{
"id": 1373,
"document_id": 1633,
"file": "documents/2Ce0VWf41uVRoMD7itIUv8wVZnyLuWrtD3ldsCFj.pdf",
"note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z"
},
{
"id": 1374,
"document_id": 1633,
"file": "documents/eIohqgm035pMoH31k4qzcsTZ0ACqwWTac7z3GM21.pdf",
"note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z"
}
]
}
]
}
],
"sub_tracks": [
{
"id": 131,
"track_id": 23,
"name": "Sub track name",
"status": "new",
"deadline": null,
"done_date": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"documents": [
{
"id": 1634,
"name": "Proforma Invoice",
"type": "proforma_invoice",
"documentable_type": "App\\Models\\SubTrack",
"documentable_id": 131,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"files": [
{
"id": 1378,
"document_id": 1634,
"file": "documents/hInzKN3A0uNiGDM9yNyA0ovjFM7fYqicnAZiia6V.pdf",
"note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z"
}
]
},
{
"id": 1635,
"name": "Commercial Invoice",
"type": "commercial_invoice",
"documentable_type": "App\\Models\\SubTrack",
"documentable_id": 131,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"files": []
},
{
"id": 1636,
"name": "Package List",
"type": "package_list",
"documentable_type": "App\\Models\\SubTrack",
"documentable_id": 131,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"files": []
},
{
"id": 1637,
"name": "Additional Documents",
"type": "additional_documents",
"documentable_type": "App\\Models\\SubTrack",
"documentable_id": 131,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"files": [
{
"id": 1377,
"document_id": 1637,
"file": "documents/lZ88dCoOKpfVLb7hMG232nnrvsgZv6kV5l8flzjW.pdf",
"note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z"
}
]
},
{
"id": 1638,
"name": "VMD",
"type": "vmd",
"documentable_type": "App\\Models\\SubTrack",
"documentable_id": 131,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"files": [
{
"id": 1376,
"document_id": 1638,
"file": "documents/4srglQhADWhgGtFpLuQ9awFP9b8yP7ZYT4Fia4Op.pdf",
"note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z"
}
]
},
{
"id": 1639,
"name": "CMR",
"type": "cmr",
"documentable_type": "App\\Models\\SubTrack",
"documentable_id": 131,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"files": [
{
"id": 1375,
"document_id": 1639,
"file": "documents/EFur6PnPmBJWtosvtChWhbX5cVRmWi9SFzzLnIOQ.pdf",
"note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z"
}
]
},
{
"id": 1640,
"name": "Partner Pay To Supply",
"type": "partner_pay_to_supply",
"documentable_type": "App\\Models\\SubTrack",
"documentable_id": 131,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"files": []
}
],
"partner_payments": [
{
"id": 218,
"price": "362.00",
"exchange": "43.10000",
"currency": "USD",
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"payable_type": "App\\Models\\SubTrack",
"payable_id": 131,
"documents": [
{
"id": 1641,
"name": "Payment Files",
"type": "payment_files",
"documentable_type": "App\\Models\\PartnerPayment",
"documentable_id": 218,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"files": [
{
"id": 1379,
"document_id": 1641,
"file": "documents/DAVD4Uoz2j4f5PHUAv6bAOsFc2KBGU0kHD58CnAo.pdf",
"note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z"
}
]
}
]
}
],
"delivery_payments": [
{
"id": 147,
"name": "qwe",
"amount": "3212222.00",
"delivery_note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"payable_type": "App\\Models\\SubTrack",
"payable_id": 131,
"documents": [
{
"id": 1642,
"name": "Logistic Block",
"type": "logistic_block",
"documentable_type": "App\\Models\\DeliveryPayment",
"documentable_id": 147,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"files": [
{
"id": 1380,
"document_id": 1642,
"file": "documents/ABR41I3RU6oP5zyLyb72CvrGQ9Yu9kKPE9joU7KA.pdf",
"note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z"
}
]
}
]
}
]
},
{
"id": 132,
"track_id": 23,
"name": "ADD SUB",
"status": "in_progress",
"deadline": null,
"done_date": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"documents": [
{
"id": 1643,
"name": "Proforma Invoice",
"type": "proforma_invoice",
"documentable_type": "App\\Models\\SubTrack",
"documentable_id": 132,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"files": []
},
{
"id": 1644,
"name": "Commercial Invoice",
"type": "commercial_invoice",
"documentable_type": "App\\Models\\SubTrack",
"documentable_id": 132,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"files": []
},
{
"id": 1645,
"name": "Package List",
"type": "package_list",
"documentable_type": "App\\Models\\SubTrack",
"documentable_id": 132,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"files": []
},
{
"id": 1646,
"name": "Additional Documents",
"type": "additional_documents",
"documentable_type": "App\\Models\\SubTrack",
"documentable_id": 132,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"files": []
},
{
"id": 1647,
"name": "VMD",
"type": "vmd",
"documentable_type": "App\\Models\\SubTrack",
"documentable_id": 132,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"files": []
},
{
"id": 1648,
"name": "CMR",
"type": "cmr",
"documentable_type": "App\\Models\\SubTrack",
"documentable_id": 132,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"files": [
{
"id": 1381,
"document_id": 1648,
"file": "documents/X8MJ0DQHcDDOf7nlah2nFaaIRaI92NXzQkCqpScu.pdf",
"note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z"
}
]
},
{
"id": 1649,
"name": "Partner Pay To Supply",
"type": "partner_pay_to_supply",
"documentable_type": "App\\Models\\SubTrack",
"documentable_id": 132,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"files": []
}
],
"partner_payments": [
{
"id": 219,
"price": "954.00",
"exchange": "52.11040",
"currency": "USD",
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"payable_type": "App\\Models\\SubTrack",
"payable_id": 132,
"documents": [
{
"id": 1650,
"name": "Payment Files",
"type": "payment_files",
"documentable_type": "App\\Models\\PartnerPayment",
"documentable_id": 219,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"files": [
{
"id": 1382,
"document_id": 1650,
"file": "documents/Ityx7TOU8ggnSB82jZFrSzWUMgTIHqEljfbYpeYR.pdf",
"note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z"
}
]
}
]
}
],
"delivery_payments": [
{
"id": 148,
"name": "del name",
"amount": "3210.00",
"delivery_note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"payable_type": "App\\Models\\SubTrack",
"payable_id": 132,
"documents": [
{
"id": 1651,
"name": "Logistic Block",
"type": "logistic_block",
"documentable_type": "App\\Models\\DeliveryPayment",
"documentable_id": 148,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z",
"files": [
{
"id": 1383,
"document_id": 1651,
"file": "documents/0a1yJ9ognhCROPheAVQEKEgoZRV29aophUjpgYNi.pdf",
"note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z"
},
{
"id": 1384,
"document_id": 1651,
"file": "documents/3qyeAyf5KPGfD17CwC8p0fgFLLHdWgxi4EgGtWv8.pdf",
"note": null,
"created_at": "2026-03-11T09:07:59.000000Z",
"updated_at": "2026-03-11T09:07:59.000000Z"
}
]
}
]
}
]
}
]
}
Error Response 401
wrong token
{
"message": "Unauthenticated."
}
Error Response 500
Server error.
{
"message": "Internal server error"
}
11 March 2026