- 默认分组
- 产品
- 入库计划单
- 库存
- 订单
- 退货
- 调拨
- 预约
- 基础数据
- 三方授权
- 运费
- 费用
测算
POST
https://hwc-open-api.yqn.com/v1/saleOrder/calculate
请求参数
Header 参数
x-api-key
string
可选
示例值:
abc123(认证信息)
Content-Type
string
可选
示例值:
application/json
Body 参数application/json
sizeUnit
integer
必需
length
number
长度
width
number
宽度
height
number
高度
weightUnit
integer
必需
weight
number
重量
insuredValue
number
保价货值
warehouseSkuItem
array [object {1}]
必需
shipOrgWarehouseCode
string
发货仓库code
receiveCountry
string
收货国家
receiveState
string
收货州
receiveCity
string
收货城市
receivePostal
string
收货地址邮编
receiveAddress
string
收货地址
isResidential
integer
可选
logisticsServiceCode
string
必需
,FedEx_FEDEX_GROUND,FedEx_GROUND_HOME_DELIVERY,FedEx_SMART_POST,FedEx_INTERNATIONAL_ECONOMY(国际件),FedEx_INTERNATIONAL_PRIORITY(国际件),FedEx_FEDEX_2_DAY,FedEx_FEDEX_EXPRESS_SAVER,FedEx_PRIORITY_OVERNIGHT,FedEx_STANDARD_OVERNIGHT,FedEx_FIRST_OVERNIGHT,UPSA_Mail_Innovations,UPSA_GROUND,UPS_Ground,UPS_UPS2DAM,UPS_3DaySelect,UPS_NextDayAir,UPS_NextDayAirSaver,UPS_NextDayAirEarlyAM,UPS_2ndDayAir,UPSCA_XI_UPSGCA_XI(国际件),JT_Basic,AmazonSP_Ground,AmazonSP0_Ground,AmazonSP1_Ground,AmazonSP2_Ground,USPS_Ground_Advantage,USPS_Priority_Mail,Ontrac_Ground,iMile_Basic
signService
string
可选
示例
{
"sizeUnit": 0,
"length": 0,
"width": 0,
"height": 0,
"weightUnit": 0,
"weight": 0,
"insuredValue": 0,
"warehouseSkuItem": [
{
"shipOrgWarehouseCode": "string"
}
],
"receiveCountry": "string",
"receiveState": "string",
"receiveCity": "string",
"receivePostal": "string",
"receiveAddress": "string",
"isResidential": 0,
"logisticsServiceCode": "string",
"signService": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://hwc-open-api.yqn.com/v1/saleOrder/calculate' \
--header 'x-api-key: abc123(认证信息)' \
--header 'Content-Type: application/json' \
--data-raw '{
"sizeUnit": 0,
"length": 0,
"width": 0,
"height": 0,
"weightUnit": 0,
"weight": 0,
"insuredValue": 0,
"warehouseSkuItem": [
{
"shipOrgWarehouseCode": "string"
}
],
"receiveCountry": "string",
"receiveState": "string",
"receiveCity": "string",
"receivePostal": "string",
"receiveAddress": "string",
"isResidential": 0,
"logisticsServiceCode": "string",
"signService": "string"
}'
返回响应
🟢200成功
application/json
Body
statusCode
integer
必需
status
integer
必需
code
integer
必需
message
string
必需
data
array [object {2}]
必需
shipOrgWarehouseCode
string
发货仓库code
calculationCarrierItems
array [object {5}]
可选
示例
{
"statusCode": 0,
"status": 0,
"code": 0,
"message": "string",
"data": [
{
"shipOrgWarehouseCode": "string",
"calculationCarrierItems": [
{
"carrier": "string",
"logisticsServiceCode": "string",
"currency": "string",
"totalRate": 0,
"calculationCostItems": [
{
"costName": "string",
"estimatedCost": 0,
"currency": "string"
}
]
}
]
}
]
}