EstimateRate

Post a shipment object to API to get an estimated rate.

endpoint : https://api.ship-cheap.com/api/openapi/shipment/estimateRate

EstimateRate sample
the carrierCode and serviceCode should get from API Channel


POST : https://api.ship-cheap.com/api/openapi/shipment/estimateRate
{
    "from": {
        "countryCode": "US",
        "stateCode": "CA",
        "city": "San Francisco",
        "addressLine1": "215 Clayton St.",
        "addressLine2":"1092,IFC",
        "zipCode": "94117"
    },
    "to": {
        "countryCode": "US",
        "stateCode": "CA",
        "city": "Inglewood",
        "addressLine1": "11222 S La Cienega BLVD",
        "addressLine2":"1092,IFC",
        "zipCode": "90304"
    },
    "carrierCode": "fedex",
    "serviceCode": "fedex_2_day",
    "isTest": false,
    "parcels": [
        {
            "packageNum": 1,
            "length": "5",
            "width": "5",
            "height": "5",
            "distanceUnit": "in",
            "weight": "4",
            "massUnit": "lb",
            "packageCode": "your_package",
            "extra": {
                "insurance": 399,
                "isCod": true,
                "codAmount": 399,
                "paymentMethod": "any",
                "dryIceWeight": 2
            }
        }
    ]
}

Response :
{
  "code": 200,
  "message": "",
  "data": {
    "isSuccess": true,
    "rate": 36.36,
    "deliveryTime": "3 DAYS"
    "feeDetail": {
      "DryIce": 5,
      "Cod": 13,
      "Insurance": 4,
      "Fuel": 0.55,
      "baseRate": 13.81
    }
  }
}
作者:admin  创建时间:2024-08-22 10:34
最后编辑:admin  更新时间:2025-11-20 10:25