Cost Estimation Response
POST
/calculate/v1/getFreightTrialDetailIf request include specific shippingServiceCode, this API will response related costs, such as fulfillment fees, packaging fees, remote surcharge, congestion surcharge, bulky surcharge, peak season surcharge, home delivery surcharges, etc.
If the request does not include any specific shippingServiceCodes, this API will response all supported shipping Service and related fees.
Request
Header Params
clientKey
string
required
clientKey
vAuthorization
string
required
vAuthorization
Access-Token
string
required
Access-Token
Body Params application/json
apiVersion
string
optional
data
object (Get Calculate Result Request)
optional
referenceId
string
required
The request unique code from [API:Cost Estimation Request], which was used to get the response of this API
messageId
string
optional
timestamp
integer <int64>
optional
Example1
{
"apiVersion": "",
"data": {
"referenceId": "16957823453791"
},
"messageId": "16957823453791",
"timestamp": 0
}
Request samples
Responses
OK(200)
Created(201)
Unauthorized(401)
Forbidden(403)
Not Found(404)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
code
integer <int32>
optional
data
array[object (Calculate Result) {7}]
optional
calculateId
string
required
calculate id
ebayFee
number
required
Ebay total fee
freightTrialChannelResults
array[object (Calculate Channel Result) {14}]
required
mfservice channel related result
noEbayFee
number
required
non-ebay total fee
productOuterCode
string
required
Shipping service code
productOuterName
string
required
Shipping service name
success
boolean
required
Whether this request of cost estimation is success
Example:
false
errors
array[object (CalculateCommonVendorResponseErrorMsgDto) {5}]
optional
channelCode
string
optional
errorMessage
string
optional
productOuterCode
string
optional
productOuterName
string
optional
success
boolean
optional
message
string
optional
messageId
string
optional
success
boolean
optional
Examples
Exception
{
"code": 1,
"message": "Authentication Fail:clientKey missing",
"messageId": "16957823453791"
}
Last modified: 1 年前