Update Package Weight


This API is used to update the package dimensions and weight for specific channels after an order has been created. Please consult your account manager to confirm channel support.

Request URL

/shipment/updatePackage

Request Method

POST

Request Body Parameters

Parameter NameExampleTypeRequiredDescription
shipmentNoshipment_vlkadfooadfdfStringYesSystem-generated shipment number returned when the label was created
packages (Array) — Replaces the original package list. The number of packages must match the original shipment.
length10NumberYesPackage length
width10NumberYesPackage width
height10NumberYesPackage height
weight14NumberYesPackage weight (per package)
quantity1NumberYesPackage quantity
options (Object) — Shipment service options
dimensionUnitCodeINStringYesDimension unit (must be “IN”)
weightUnitCodeLBSStringYesWeight unit (must be “LBS”)
packageTypecustomPackageStringNoPackage type (default: customPackage)

Request Example

{
  "shipmentNo": "shipment_vlkadfooadfdf",
  "packages": [
    {
      "length": 10,
      "width": 10,
      "height": 10,
      "weight": 14,
      "quantity": 1
    }
  ],
  "options": {
    "dimensionUnitCode": "IN",
    "weightUnitCode": "LBS"
  }
}

Response Example

{
  "code": 200,
  "data": null,
  "message": "Package information updated successfully"
}