{
"tickets": [
{
"no": "test20240625001",
"product": "UA",
"freightClass": "",
"isSignatureService": 0,
"signatureType": "INDIRECT",
"is_insurance": false,
"note": "",
"consignee": "MSP1",
"boxes": [
{
"number": 2,
"weight": 20,
"length": 20,
"width": 20,
"height": 20,
"declaredValue": 0,
"referenceNumbers": []
}
]
},
{
"no": "test20240625002",
"product": "UW",
"freightClass": "",
"isSignatureService": 0,
"note": "",
"consignee": {
"countryCode": "US",
"stateProvince": "MN",
"city": "Shakopee",
"postcode": "2601 4th Avenue East",
"address": "55379",
"address2": "55379",
"name": "MSP1",
"companyName": "Amazon.com Services, Inc.",
"phone": "8-888-8888888"
},
"boxes": [
{
"number": 1,
"weight": 10,
"length": 10,
"width": 10,
"height": 10,
"declaredValue": 0,
"referenceNumbers": []
}
],
"sender": "MSP1"
}
]
}curl --location --request POST 'http://prod-cn.your-api-server.com/api/v2/orderTrial' \
--header 'key;' \
--header 't;' \
--header 'username;' \
--header 'sign;' \
--header 'Content-Type: application/json' \
--data-raw '{
"tickets": [
{
"no": "test20240625001",
"product": "UA",
"freightClass": "",
"isSignatureService": 0,
"signatureType": "INDIRECT",
"is_insurance": false,
"note": "",
"consignee": "MSP1",
"boxes": [
{
"number": 2,
"weight": 20,
"length": 20,
"width": 20,
"height": 20,
"declaredValue": 0,
"referenceNumbers": []
}
]
},
{
"no": "test20240625002",
"product": "UW",
"freightClass": "",
"isSignatureService": 0,
"note": "",
"consignee": {
"countryCode": "US",
"stateProvince": "MN",
"city": "Shakopee",
"postcode": "2601 4th Avenue East",
"address": "55379",
"address2": "55379",
"name": "MSP1",
"companyName": "Amazon.com Services, Inc.",
"phone": "8-888-8888888"
},
"boxes": [
{
"number": 1,
"weight": 10,
"length": 10,
"width": 10,
"height": 10,
"declaredValue": 0,
"referenceNumbers": []
}
],
"sender": "MSP1"
}
]
}'{
"code": 200,
"message": "OK",
"data": [
{
"no": "test20240625001",
"children": [
{
"error": "",
"product": "UA",
"chargeAmount": 156.08,
"chargeWeight": "90.0",
"chargeWeightUnit": "LBS"
}
]
},
{
"no": "test20240625002",
"children": [
{
"error": "费用试算失败,UPS错误代码:111285,UPS原始错误信息:The postal code 26014 is invalid for MN United States.;",
"product": "UW",
"chargeAmount": 0,
"chargeWeight": 0,
"chargeWeightUnit": "LBS"
}
]
}
]
}