Cost Estimation Request
POST
/calculate/v1/freightTrialEach request is regarded as a parcel, one parcel could include multiple SKUs and different quantities.
Input the fulfillment center, consignee address info, seller OCSKUID or parcel dimension and weight.
In the Parcel, if SKUType is OCSKUID, parcel dimension and weight is not required. If the SKUType is not OCSKUID, the parcel dimension and weight are required.
Each request should have a unique referenceid. Get result by referenceid later.
请求参数
Header Params
clientKey
string
required
clientKey
vAuthorization
string
required
vAuthorization
Access-Token
string
required
Access-Token
Body Params application/json
No schema defined
Example
{
"apiVersion": "",
"data": {
"companyName": "test",
"consigneeAddress1": "test",
"consigneeAddress2": "test",
"consigneeCity": "test",
"consigneeCountryCode": "AU",
"consigneeEmail": "test@test.com",
"consigneeName": "Amy Test",
"consigneePhone": "5700011111",
"consigneePostCode": "4610",
"consigneeProvinceOrState": "test",
"houseNumber": "202",
"intlSelfPayment": true,
"mfservice": true,
"referenceId": "16957823453791",
"serviceRegion": "AU",
"serviceType": "EF",
"shippingServiceCode": [],
"skuList": [
{
"height": 15,
"length": 10,
"pieceQuantity": 1,
"polybag": "true",
"siop": false,
"skuId": "OC0000250294068",
"weight": 1000,
"width": 2,
"withBattery": false
}
],
"skuType": true,
"warehouseRegionCode": "AU"
},
"messageId": "7891955650647900161",
"timestamp": 0
}
示例代码
Responses
OK(200)
Created(201)
Unauthorized(401)
Forbidden(403)
Not Found(404)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
No schema defined
Example
Exception
{
"code": 1,
"message": "Authentication Fail:clientKey missing"
}
Modified at 9 个月前