Edit delivery
PUT/company/delivery/:service_code
Updates the details of an existing shipment. Only certain fields can be modified depending on the shipment's current status. Requires JWT authentication.
Use Cases:
- Modify load/unload dates for planned shipments
- Update cargo details (weight, type, pallets)
- Correct load/unload addresses
Request Example:
{
etl_date: 2025-08-10T08:00:00Z,
etd_date: 2025-08-11T12:00:00Z,
cargo_weight: 750,
pallets_num: 15
}
Restrictions:
- For 'planned' shipments: Any field except service_code can be modified
- For 'in_progress' shipments: Only etd_date and date_eta can be updated
- Completed/canceled shipments: Cannot be modified
Request
Responses
- 200
- 400
- 401
- 404
Shipment updated successfully
Operation not allowed. This occurs when:
- Attempting to modify a field not permitted for the current status
- The shipment is completed/canceled
- The provided data is invalid
Unauthorized. The JWT token is invalid or has expired. You must authenticate again.
Shipment not found. The provided service_code does not exist or does not belong to the authenticated user's company.