Edit

PUT {{baseUrl}}/shipment/:tripNumber

Edit a Shipment with Incomplete status. Completed shipments shall no longer receive data from the associated Device ID.

■ Same criteria/rules as above
■ Will missing optional parameters clear that existing field in the DB, or leave that
field untouched? Think clearing is better, meaning the entire dataset is required.

Request Body

{"shipment_name"=>"test", "carrier_id"=>"C1673900480651", "shipper_id"=>"L3246871783122", "receiver_id"=>"L1668717831024", "product_id"=>"Ammgzwkj2h3!", "estimated_arrival_date"=>"2022-11-17T17:56:54.586Z", "estimated_departure_date"=>"2022-11-17T17:56:54.586Z", "purchase_order"=>"AB120341", "maritime"=>{"arrival_port_id"=>"L3246871783122", "departure_port_id"=>"L3246871783122", "bol"=>"A1", "scac"=>"S1"}}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{"shipment_name":"test","carrier_id":"L2348717831021","shipper_id":"L3246871783122","receiver_id":"L1668717831024","product_id":"Ammgzwkj2h3!","estimated_arrival_date":"2022-11-17T17:56:54.586Z","estimated_departure_date":"2022-11-17T17:56:54.586Z","purchase_order":"AB120341","maritime":{"arrival_port_id":"L3246871783122","departure_port_id":"L3246871783122","bol":"A1","scac":"S1","vessel_imo":"1221","vessel_name":"Test"}}