Skip to content

PUT /2025-07/cloud/calculate/order

Method: PUT

URL:

Sandbox URL:

Description: Calculate Order.

Parameters required to be sent

ParameterDescriptionType
dest_addressDest address.Object, Required
  country_codeDest country code, eg.CN, US. The maximum length is 2.String, Required
  cityDest city. The maximum length is 60.String
  zip_codeZip code. The maximum length is 15.String
origin_addressesOrigin addresses.Object, Required
  warehouse_codeWarehouse code. The maximum length is 32.String, Required
  country_codeOrigin country code, eg.CN, US. The maximum length is 2.String, Required
  cityOrigin city. The maximum length is 60.String
  zip_codeZip code. The maximum length is 15.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
alcoholContains battery:
Yes, No, Not Applicable.
String, If not filled in, the default is "Not Applicable".
batteryContains battery:
Yes, No, Not Applicable.
String, If not filled in, the default is "Not Applicable".
liquidContains battery:
Yes, No, Not Applicable.
String, If not filled in, the default is "Not Applicable".
declared_valueDeclared value. The maximum total digits 12, with 2 decimal places.Number
currencyDeclared value currency. The maximum length is 3.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

Result object contains

ParameterDescriptionType
codeStatus code.Integer
messageMessage. The maximum length is 255.String
error_codeCustom code. The maximum length is 255.String
inco_termIncoterm:
DAP, DDP.
The maximum length is 8.
String
fulfillmentFulfillment cost. The maximum total digits 12, with 2 decimal places.Number
packagingPackaging cost. The maximum total digits 12, with 2 decimal places.Number
pick_packPick pack cost. The maximum total digits 12, with 2 decimal places.Number
gift_cardGift card cost. The maximum total digits 12, with 2 decimal places.Number
shippingShipping cost. The maximum total digits 12, with 2 decimal places.Number
total_shippingTotal shipping cost. The maximum total digits 12, with 2 decimal places.Number
total_taxTotal tax. 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
service_nameService name. The maximum length is 64.String
service_codeService code. The maximum length is 64.String
service_zoneService zone. The maximum length is 8.String
service_idService ID.Long
service_zone_idService zone ID.Long
platformPlatform. The maximum length is 32.String
amountAmount. The maximum total digits 12, with 2 decimal places.Number
currencyCurrency. The maximum length is 3.String
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
tax_currencyTax currency. The maximum length is 3.String
charge_weight_unitCarrier charge weight UOM. The maximum length is 8.String
charge_weightCarrier charge weight. The maximum total digits 12, with 2 decimal places.Number
original_weight_unitOriginal weight UOM. The maximum length is 3.String
original_weightOriginal weight. The maximum total digits 12, with 2 decimal places.Number
timelinessDelivery time. The maximum length is 16.String
carrierCarrier. The maximum length is 32.String
warehouse_codeWarehouse code. The maximum length is 32.String

Body

json
{
  "dest_address": {
    "country_code": "HK",
    "city": "New Territories",
    "zip_code": "518000"
  },
  "weight": 10,
  "weight_unit": "kg",
  "dimension": {
    "length": 1,
    "width": 20,
    "height": 3,
    "uom": "cm"
  },
  "battery": "Not Applicable",
  "liquid": "Not Applicable",
  "alcohol": "Not Applicable",
  "declared_value": 1.22,
  "currency": "USD",
  "origin_addresses": [
    {
      "warehouse_code": "12450",
      "country_code": "US",
      "city": "",
      "zip_code": "85021"
    }
  ]
}

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": [
    {
      "code": 1,
      "message": "Successful!",
      "error_code": null,
      "inco_term": "DDP",
      "fulfillment": 0.00,
      "packaging": 0,
      "pick_pack": 0.00,
      "gift_card": 0,
      "shipping": 12.00,
      "total_shipping": 15.23,
      "total_tax": 0,
      "fuel_surcharge": 0.00,
      "remote_area_surcharge": 0,
      "service_name": "ZHSGCN(DDP)",
      "service_code": "ZHSGCN",
      "service_zone": "Zone3",
      "service_id": 5240496153493504,
      "service_zone_id": 7011828935278592,
      "platform": "zhenhub",
      "amount": 15.23,
      "currency": "USD",
      "vat": 0,
      "duty": 0,
      "ddp_handling": 3.23,
      "tax_currency": "USD",
      "charge_weight_unit": "lb",
      "charge_weight": 30.00,
      "original_weight_unit": "kg",
      "original_weight": 10,
      "timeliness": "4-6",
      "carrier": "hong-kong-post",
      "warehouse_code": "12450"
    }
  ]
}