- Introduction
- Getting Started
- Authentication
- Error Handling
- Contact Support
- Modaltrans API
- Get Auth Token
- Accounting
- Customs
- Logistics
- Bookings
- Locations
- Positions
- Tracking
- Shipments
- Depot
- Fleet Management
- CRM
- Timelines
- S3 Files
- Notifications
- User Details
Update a Shipment
Developing
Testing Env
https://demo.modaltrans.com
Testing Env
https://demo.modaltrans.com
PATCH
/api/v1/shipments/{id}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
id
integer
required
Example:
2130791
Body Params application/json
Shipment Part
status
enum<string>
optional
Allowed values:
planningactivearrived
trans_method
enum<string>
optional
Allowed values:
roadseaairrail
waybill_no
string
optional
waybill_date
string <date>
optional
truck_type
string
optional
Examples:
trailertruckvan
estimated_dep_date
string <date-time>
optional
estimated_arv_date
string <date-time>
optional
arv_country_id
string
optional
Examples:
GBUSTR
dep_country_id
string
optional
voyage
string
optional
supplier_name
string
optional
truck_code
string
optional
vessel_code
string
optional
driver_name
string
optional
driver_tel
string
optional
driver_email
string <email>
optional
deadline_date
string <date-time>
optional
target_volume
number
optional
target_weight
number
optional
hub_motion_exit_date
string <date-time>
optional
contract_type
enum<string>
optional
Allowed values:
ownedrented
empty_truck
boolean
optional
freight_price
number
optional
freight_curr
string
optional
Examples:
USDGBP
dep_odemeter
integer
optional
arv_odemeter
integer
optional
total_fuel
number
optional
driver_payment
number
optional
waybill_type
string
optional
commission
number
optional
vagon
string
optional
vehicle_movement_type
string
optional
intermodal
boolean
optional
coagent_hbl_no
string
optional
border_date
string <date>
optional
assigned_date
string <date-time>
optional
free_time
integer
optional
container_no
string
optional
container_type
string
optional
cmr_no
string
optional
cargo_manifest_no
string
optional
cargo_manifest_date
string <date>
optional
transit_code1
string
optional
1.
transit_code2
string
optional
2.
transit_code3
string
optional
3.
departure_date
string <date-time>
optional
arrival_date
string <date-time>
optional
trans_type
string
optional
active_date
string <date-time>
optional
freight_price_rate
number
optional
ppcc
enum<string>
optional
Allowed values:
ppcc
agent_name
string
optional
route_notes
string
optional
transit_date1
string <date>
optional
1.
transit_date2
string <date>
optional
2.
transit_date3
string <date>
optional
3.
report_date
string <date>
optional
Example
{
"position": {
"extref": "test12"
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://demo.modaltrans.com/api/v1/shipments/2130791' \
--header 'Content-Type: application/json' \
--data-raw '{
"position": {
"extref": "test12"
}
}'
Responses
🟢200Success
application/json
Body
alert
string
required
Example
{
"alert": "Transport has been updated succesfully"
}
🟠403Forbidden
🟠404Record Not Found
🟠400Bad Request
Modified at 2025-03-21 23:57:59