Example

Json举例如下.

{
"ClientRequestId": "Test001",
"ShipDate": "2018-04-25",
"From":{
"Name":"test",
"Company":"",
"Street":"2915 Center Ave",
"Street2":"",
"State":"Florida",
"City":"FORT LAUDERDALE",
"ZipCode":"33308",
"CountryCode":"US",
"PhoneNumber":"0599735143",
"Email":"jinrong@web2ship.com"
},
"To": {
"Name": "Test",
"Company": "Teapplix Inc",
"Street": "128 Hadley St",
"Street2": "",
"State": "MA",
"City": "New Bedford",
"ZipCode": "02745",
"Country": "United States",
"CountryCode": "US",
"PhoneNumber": "7742044990",
"Email": "test@test.com"
},
"Packages": [
{
"Weight": {
"Value": 1,
"Unit": "OZ"
},
"Dimensions": {
"Length": 5,
"Width": 7,
"Depth": 6,
"Unit": "IN"
},
"Reference": "Test001",

"Method": "USPS_FIRST_PACKAGE"
}
],
"ImageFormat": {
"Layout": "4x6",
"Type": "PDF",
"LabelReturn": "URL"
},
"IsReturn": false,
"Provider": "TEAPPLIX"
}

返回结果:

200 OK

{
"ClientRequestId": "Test001",
"TrackingInfo": [
{
"TrackingNumber": "93020205160000000XXXXX",
"CarrierName": "USPS"
}
],
"LabelData": [
{
"Type": "URL",
"Content": "https://api.teapplix.com/api2/DownloadLabel/XXX/Test001/pdf"
}
],
"Success": true,
"Code": 0,
"Message": "Label was purchased.",
"Provider": "TEAPPLIX"
}