Approve delivery changes
PUT/company/delivery/aprove/:service_code'
Approves changes made to a replanned shipment. Changes the status to 'approved' and updates the dates/addresses as per the replanning. Requires JWT authentication.
Use Cases:
- Confirm changes to a replanned shipment
- Approve modifications requested by the carrier
- Finalize the replanning process
Successful Response Example:
{
service_code: DEL-67890,
status: approved,
etl_date: 2025-08-10T10:00:00Z,
date_eta: 2025-08-11T18:00:00Z,
replannedBy: approved,
updated_at: 2025-08-08T15:45:00Z
}
Restrictions:
- Only applies to shipments in 'replanned' status
- Can only be approved by the company (not the carrier)
Request
Responses
- 200
- 400
- 401
- 404
Changes successfully approved
Already approved. This occurs when:
- The shipment is not in 'replanned' status
- The changes were already approved previously
Unauthorized. The JWT token is invalid or has expired. Or the user does not have permission to approve submissions.
Shipment not found. The provided service_code does not exist or does not belong to the authenticated user's company.