Skip to content

PUT /2025-07/cloud/calculate/freight

Method: PUT

URL:

Sandbox URL:

Description: Calculate Freight.

Parameters required to be sent

ParameterDescriptionType
dest_country_codeDest country code, eg.CN, US. The maximum length is 2.String, Required
dest_cityDest city. The maximum length is 60.String
dest_zip_codeDest zip code. The maximum length is 15.String
origin_country_codeOrigin country code, eg.CN, US. The maximum length is 2.String, Required
origin_cityOrigin city. The maximum length is 60.String
origin_zip_codeOrigin zip code. The maximum length is 15.String
dimensionDimensionObject
  lengthLength. The maximum total digits 12, with 2 decimal places.Number
  widthWidth. The maximum total digits 12, with 2 decimal places.Number
  heightHeight. The maximum total digits 12, with 2 decimal places.Number
  uomUOM:
m, cm, mm, in, ft.
The maximum length is 8.
String
weightWeight. The maximum total digits 12, with 2 decimal places.Number, Required
weight_unitWeight UOM:
kg, lb.
The maximum length is 8.
String, Required
service_codeService code. The maximum length is 32.String, Required
inco_termIncoterm:
DAP, DDP.
The maximum length is 8.
String, Conditional required.

Result object contains

ParameterDescriptionType
carrier_codeCarrier code. The maximum length is 32.String
inco_termIncoterm:
DAP, DDP.
The maximum length is 8.
String
amountAmount. The maximum total digits 12, with 2 decimal places.Number
shippingShipping cost. The maximum total digits 12, with 2 decimal places.Number
fuel_surchargeFuel surcharge. The maximum total digits 12, with 2 decimal places.Number
remote_area_surchargeRemote area surcharge. The maximum total digits 12, with 2 decimal places.Number
vatVAT. The maximum total digits 12, with 2 decimal places.Number
dutyDuty. The maximum total digits 12, with 2 decimal places.Number
ddp_handlingDDP handling. The maximum total digits 12, with 2 decimal places.Number
currencyCurrency. The maximum length is 3.String
messageMessage. The maximum length is 255.String

Body

json
{
  "dest_country_code": "HK",
  "dest_city": "New Territories",
  "dest_zip_code": "518000",
  "origin_city": "",
  "origin_country_code": "US",
  "origin_zip_code": "85021",
  "dimension": {
    "length": 1,
    "width": 20,
    "height": 3,
    "uom": "cm"
  },
  "service_code": "ZHSGCN",
  "inco_term": "DDP",
  "weight": 10,
  "weight_uom": "kg"
}

Response

Response payload

Payload return an error with the description and data = empty. If the request is successful, the data contains an object with the result.

json
{
  "code": 200,
  "message": "Successful!",
  "data": {
    "carrier_code": "hong-kong-post",
    "message": "Service : service : hong-kong-post -> HK(518000) weight :30.00lb  zone : Zone3",
    "amount": 15.23,
    "currency": "USD",
    "shipping": 12.00,
    "remote_area_surcharge": 0,
    "fuel_surcharge": 0.00,
    "vat": 0,
    "duty": 0,
    "ddp_handling": 3.23,
    "inco_term": "DDP"
  }
}