用于费用试算
{
"carrierCodes": [
"FEDEX"
],
"length": 60,
"width": 67,
"height": 58,
"weight": 26,
"fromAddress": {
"countryCode2": "US",
"province": "CA",
"city": "Ontario",
"postcode": "91761",
"address1": "4600 E Wall St"
},
"toAddress": {
"countryCode2": "US",
"province": "IN",
"city": "Fort Wayne",
"postcode": "46835",
"address1": "6851 Saint Joe Center Rd"
}
}curl --location --request POST '/open/label-data/get-shipping-rate' \
--header 'Authorization: {{api_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"carrierCodes": [
"FEDEX"
],
"length": 60,
"width": 67,
"height": 58,
"weight": 26,
"fromAddress": {
"countryCode2": "US",
"province": "CA",
"city": "Ontario",
"postcode": "91761",
"address1": "4600 E Wall St"
},
"toAddress": {
"countryCode2": "US",
"province": "IN",
"city": "Fort Wayne",
"postcode": "46835",
"address1": "6851 Saint Joe Center Rd"
}
}'{
"code": "20000",
"success": true,
"data": [
{
"success": true,
"message": "成功",
"carrierCode": "FEDEX",
"shippingMethodCode": "LMA002_FEDEX_G_REST",
"deliveryDate": "2026-01-23",
"length": 23.622060,
"width": 26.377967,
"height": 22.834658,
"weight": 57.320120,
"volumnWeight": 56.913277,
"billingWeight": 57.320120,
"zoneCode": "zone8",
"signType": -1,
"currencyCode": "USD",
"totalPrice": 40.20650000,
"feeList": [
{
"name": "基础运费",
"nameEn": "Base Shipping Fee",
"code": "BASE_SHIPPING_FEE",
"price": 21.09000000
},
{
"name": "住宅地址派送费",
"nameEn": "Residential Fee",
"code": "RESIDENTIAL_FEE",
"price": 3.00000000
},
{
"name": "重量额外处理费",
"nameEn": "Ahs Weight Fee",
"code": "AHS_WEIGHT_FEE",
"price": 9.07000000
},
{
"name": "燃油费",
"nameEn": "Fuel Fee",
"code": "FUEL_FEE",
"price": 7.0465
}
]
}
],
"message": "请求成功",
"errors": [],
"timestamp": "1769162936234",
"duration": 1.769,
"requestId": "6b2399cea350430f96ab1699c36aee6a"
}