Update a Shipment
PUT
/api/v3/shipments/{Id}Updates a shipment in Banyan.
This method can be used to change the details on an existing shipment, or convert an EZ Rate shipment into a full shipment.
Reference the table below, as well as the supplied examples to see the different ways to use this endpoint.
Attribute | Type | Description |
---|---|---|
WaitForRates |
bool | Defaults to true. Returns when rating engine is complete.Set to false to return a response immediately. |
IsEzRate |
bool | Defaults to false. Create the shipment as an EZ Rate with minimal data. |
loadAccessorials |
array | For any accessorials only the description or the abbreviation is needed. See /StaticData/Accessorials endpoint for valid values. |
pullMarketRates |
bool | Defaults to false. Pulls the market rates for this shipment. |
HandlingUnits |
array | The handling units containing the products. For shipments that cannot utilize handling units, supply a single handling unit with 0 for quantity, and None for package type, and the shipment will not create handling units. |
VendorId |
string | If vendor id is supplied, the system will look up the vendor location and use that data instead of what is in the request. If DistributionCenterReferenceNumber is supplied this can further filter data for vendors with multiple locations. |
Request
Path Params
Id
integer
required
The Id of the entity the request relates to.
Body Params application/json
No schema defined
Example
{
"isEzRate": true,
"waitForRates": false,
"shipmentData": {
"shipType": "ThirdParty",
"payType": "Prepaid",
"shipperLocation": {
"address": {
"city": "ALBANY",
"stateOrProvince": "NY",
"zipCode": "12204",
"country": "United States"
}
},
"consigneeLocation": {
"address": {
"city": "MIAMI",
"stateOrProvince": "FL",
"zipCode": "33156",
"country": "United States"
}
},
"shipmentServices": [
{
"serviceMode": "LTL",
"quantity": 2,
"packageType": "Pallets",
"equipmentType": "Van-Standard Trailer",
"weightUnitOfMeasurement": "LBS"
}
],
"handlingUnits": [
{
"packageType": "Pallets",
"quantity": 2,
"products": [
{
"packageType": "Boxes",
"quantity": 20,
"class": 200,
"weight": 400,
"weightUnitOfMeasurement": "LBS",
"dimensions": {
"unitOfMeasurement": "IN",
"length": 42,
"width": 42,
"height": 56
},
"description": "TEST ONLY - PRODUCT 1 DESCRIPTION - TEST ONLY"
}
]
}
]
}
}
Request samples
Responses
Success(200)
Bad Request(400)
Unauthorized(401)
Forbidden(403)
Not Found(404)
Client Error(422)
Too Many Requests(429)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
Not configured
Last modified: 2 months ago