页面树结构

版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

Field (API)Data Type

Length

MandatoryDetails
referenceNoString80MUnique ID of the client's order
referenceNo1String80OClient order number
trackingNoString40OTracking number
serviceCodeString64MService code, provided by logistics provider
incotermString3ODDU/DDP
descriptionString60MEnglish product name
nativeDescriptionString255O

Chinese name

weightDouble Mweight(>=0.000001)
weightUnitString3OWeight unit, enumeration value:G, KG,LB
Default value:KG
lengthDouble Olong
widthDouble Owide
heightDouble Ohigh
volumeDouble O体积volume(>=0.01)
dimensionUnitString3O长度单位,枚举值:MLength unit, enumeration value:M, CM
默认值:CMDefault value:CM
invoiceValueDouble M货值The error between the value of goods (> = 0.01) ,与sumand sum (itemCount itemcount * unitValueunitvalue) 的误差不能超过0cannot exceed 0.1
invoiceCurrencyString3M币种,ISO货币代码Currency, ISO currency code
 Boolean1O枚举值:Yenumerator values:Y/N
默认值:NDefault value:N
authorityToLeaveBoolean   
lockerServiceBoolean   
batteryTypeString64O电池类型,枚举值:Battery type, enumeration value:
No Battery
Lithium Ion
Polymer
Lithium Ion Alloy
默认值:No Default value:No Battery
batteryPackingString64O电池包装,枚举值:Battery packaging,enumerator values:
No Battery
Inside Equipment
Packaged with Equipment
Battery Only
Other
默认值:No Default value:No Battery
dangerousGoodsBoolean O默认值:falseDefault value:false
skuString128O捡货清单,一般面单上会显示出来The picking list is usually displayed on the face list
serviceOptionString60O 
instructionString255O派送指令Dispatch instruction
facilityString20O发件网点,物流商提供Delivery outlets, provided by logistics providers
platformString20O平台代码Platform code
recipientNameString50M收件人名称Recipient name
限制英语
Limit English / 法语字符/非纯数字
自动去除特殊字符French characters / non pure numbers

Automatic removal of special characters
recipientTaxIdString100O收件人税号Recipient tax number
recipientCompanyString50O收件人公司名Recipient company name
phoneString20O电话Telephone
emailString50O邮箱mailbox
addressLine1String200M地址第一行
限制英语/法语字符/非纯数字
自动去除特殊字符First line of address

Limit English / French characters / non pure numbers

Automatic removal of special characters
addressLine2String200O地址第二行Second line of address
addressLine3String80O地址第三行Third line of address
cityString80M城市
stateString80M
限制英语
Limit English / 法语字符/非纯数字
自动去除特殊字符French characters / non pure numbers
Automatic removal of special characters
postcodeString16O邮编Zip code
countryString2M国家二字代码Country two character code
shipperNameString50M发件人名称shipperr name
限制英语
Limit English / 法语字符/非纯数字
自动去除特殊字符French characters / non pure numbers

Automatic removal of special characters
shipperPhoneString20O电话Phone
shipperAddressLine1String200O地址第一行First line of address
shipperAddressLine2String200O地址第二行Second line of address
shipperAddressLine3String80O地址第三行Third line of address
shipperCityString80O城市City
shipperStateString80OState
shipperPostcodeString16O邮编Postcode
shipperCountryString2O国家二字代码Country two character code
returnOptionString100O退件选项return option
returnNameString50M退件接收人名称Return recipient name
returnAddressLine1String200M地址第一行First line of address
returnAddressLine2String200O地址第二行Second line of address
returnAddressLine3String80O地址第三行Third line of address
returnCityString80M城市City
returnStateString80MState
returnPostcodeString16O邮编Postcode
returnCountryString2M国家二字代码Country two character code
itemsList OItem信息Item information
 itemNoString128MItem编号itemNo
 skuString128MSKU
 descriptionString60M英文品名
如果值为空,设置成订单级别的description
1. 不能包含设置的违禁品关键词
2. 必须是英文和法文字符或数字English product name
If the value is empty, it is set to the description of the order level
1. The keyword of contraband set cannot be included
2. Must be English and French characters or numbers
 nativeDescriptionString255O中文品名

Chinese name


 hsCodeString60OHS Code
 originCountryString60M国家二字代码,三字代码或名称Country two word code, three word code or name
 itemCountInteger M件数,>0number,>0
 unitValueDouble M单价,>0Unit Price,>0
 warehouseNo 50O截取前50个字符Intercept the first 50 characters
 productURLString512O产品链接Product link
 itemWeightDouble OItem重量,转换成KGItem weight, converted to KG
extendData List O扩展字段Extended field
 vendoridString12O税号vendorid
 gstexemptionCodeSting4OGST免税码,如果vendorid正确,该字段值自动设置为“PAID”GST tax exemption code. If the vendorid is correct, the field value is automatically set to "paid"
 senderTaxIdString255O发货人税号senderTaxId
 InjectPortString256O订单配送港口,针对加拿大服务Order delivery port for Canadian service
pieces
array[map,...]
O一票多件包裹信息Parcel Info单个包裹的请求字段结构同上方要求一致One ticket multiple package information

Parcel Info


The request field structure of a single package is consistent with the requirements above

Response description

The server returns the order result corresponding to the request, including:

1)     Order status(status)

Failed(失败),Success(成功),Partial Success(部分成功);

2)    Error message(errors)

2.1)Error code(code);

2.2)Error message(message);

3)     Specific message list(data)

   3.1)order number(orderId)

   3.2)Customer number(referenceNo)

   3.3)trackingNo(trackingNo)

   3.4)This record indicates the operation status(status)

   3.5)More than one ticket(piecesResult)

   3.6)Extended field(extraProperty)

      3.6.1)Fly into port (injectPort)

      3.6.2) Customs clearance method (customsClearanceType)

   3.7)Error message list(errors)

      3.7.1)Error code(code)

      3.7.2) Error message(message) 

4)     Warning message(warnings)

4.1)Warning code(code);

4.2)Warning message(message);


Request message

Single ticket creation
代码块
languagejs
borderStylesolid
firstline1
titleRequest
linenumberstrue
[
  {
    "referenceNo": "reedzhang1231211",
    "country": "AU",
    "serviceCode": "UBI.AU2AU.AUPOST.1",
    "serviceOption": "Expedited",
    "facility": "can",
    "state": "VICTORIA",
    "city": "Berwick",
    "postcode": "3806",
    "addressLine1": "3 Lakeside Drivie",
    "addressLine2": "",
    "recipientName": "Corrie McKee",
    "phone": "0403536112",
    "email": "corrie.mckee@monash.edu",
    "sku": "sw2111202146745684",
    "invoiceCurrency": "USD",
    "invoiceValue": 6.23,
    "weightUnit": "g",
    "weight": 264,
    "description": "sw2111202146745684",
    "nativeDescription": "连衣裙",
    "shipperName": "Jiang Yuanfei",
    "shipperPhone": "+86 02586707811",
    "shipperAddressLine1": "Prologis (Anbo) Logistics Center Datang Town,Sanshui Industrial Park",
    "vendorid": "111",
    "abnnumber": "",
    "gstexemptioncode": "PAID",
    "extendData": {
      "injectPort": null
    },
    "orderItems": [
      {
        "itemCount": 1,
        "originCountry": "CN",
        "description": "sw2111202146745684",
        "nativeDescription": "连衣裙",
        "unitValue": 3.87,
        "itemNo": "8247107",
        "sku": "sw2111202146745684"
      },
      {
        "itemCount": 1,
        "originCountry": "CN",
        "description": "sw2201125303640755",
        "nativeDescription": "背心",
        "unitValue": 2.36,
        "itemNo": "9743766",
        "sku": "sw2201125303640755"
      }
    ],
    "shipperCity": "FO SHAN",
    "volume": 0.1
  }
]
一票多件
代码块
languagejs
borderStylesolid
firstline1
titleRequest
linenumberstrue
 [
  {
    "referenceNo": "MAC2022041101012",
    "serviceCode": "UBI.CA2CA.PUROLATOR",
    "recipientName": "AMAZONYYC1",
    "phone": "68765183",
    "addressLine1": "University of Toronto 27",
    "addressLine2": "",
    "addressLine3": "",
    "city": "Toronto",
    "state": " Ontario",
    "postcode": "M5S 1A1",
    "country": "CA",
    "length": "",
    "width": "",
    "height": "",
    "shipperName": "alex",
    "shipperAddressLine1": "test",
    "shipperAddressLine2": "",
    "shipperAddressLine3": "",
    "shipperCity": "ON",
    "shipperState": "ON",
    "shipperPostcode": "k1z3yz",
    "shipperCountry": "CA",
    "shipperPhone": "15000695273",
    "facility": "",
    "weight": 1,
    "invoiceValue": 23.4,
    "invoiceCurrency": "USD",
    "description": "watch,pencil",
    "nativeDescription": "手表,铅笔",
    "sku": "sku001,sku002",
    "orderItems": [
      {
        "itemNo": 1,
        "sku": "sku001",
        "description": "watch",
        "nativeDescription": "手表",
        "hsCode": "hscode001",
        "originCountry": "CN",
        "itemCount": 2,
        "unitValue": 7.8,
        "warehouseNo": "",
        "productURL": "",
        "weight": 2
      },
      {
        "itemNo": 2,
        "sku": "sku002",
        "description": "pencil",
        "nativeDescription": "铅笔",
        "hsCode": "hscode002",
        "originCountry": "CN",
        "itemCount": 1,
        "unitValue": 7.8,
        "warehouseNo": "",
        "productURL": "",
        "weight": 2
      }
    ],
    "pieces": [
      {
        "referenceNo": "MAC2022040601012-1",
        "serviceCode": "UBI.CA2CA.PUROLATOR",
        "recipientName": "AMAZONYYC1",
        "phone": "68765183",
        "addressLine1": "University of Toronto 27",
        "addressLine2": "",
        "addressLine3": "",
        "city": "Toronto",
        "state": " Ontario",
        "postcode": "M5S 1A1",
        "country": "CA",
        "length": "",
        "width": "",
        "height": "",
        "shipperName": "alex",
        "shipperAddressLine1": "test",
        "shipperAddressLine2": "",
        "shipperAddressLine3": "",
        "shipperCity": "ON",
        "shipperState": "ON",
        "shipperPostcode": "k1z3yz",
        "shipperCountry": "CA",
        "shipperPhone": "15000695273",
        "facility": "",
        "invoiceValue": 23.4,
        "invoiceCurrency": "USD",
        "weight": 1,
        "description": "watch,pencil",
        "nativeDescription": "手表,铅笔",
        "sku": "sku001,sku002",
        "orderItems": [
          {
            "itemNo": 1,
            "sku": "sku001",
            "description": "watch",
            "nativeDescription": "手表",
            "hsCode": "hscode001",
            "originCountry": "CN",
            "itemCount": 2,
            "unitValue": 7.8,
            "warehouseNo": "",
            "productURL": "",
            "weight": 2
          },
          {
            "itemNo": 2,
            "sku": "sku002",
            "description": "pencil",
            "nativeDescription": "铅笔",
            "hsCode": "hscode002",
            "originCountry": "CN",
            "itemCount": 1,
            "unitValue": 7.8,
            "warehouseNo": "",
            "productURL": "",
            "weight": 2
          }
        ]
      },
      {
        "referenceNo": "MAC2022040601012-2",
        "serviceCode": "UBI.CA2CA.PUROLATOR",
        "recipientName": "AMAZONYYC1",
        "phone": "68765183",
        "addressLine1": "University of Toronto 27",
        "addressLine2": "",
        "addressLine3": "",
        "city": "Toronto",
        "state": " Ontario",
        "postcode": "M5S 1A1",
        "country": "CA",
        "length": "",
        "width": "",
        "height": "",
        "shipperName": "alex",
        "shipperAddressLine1": "test",
        "shipperAddressLine2": "",
        "shipperAddressLine3": "",
        "shipperCity": "ON",
        "shipperState": "ON",
        "shipperPostcode": "k1z3yz",
        "shipperCountry": "CA",
        "shipperPhone": "15000695273",
        "facility": "",
        "invoiceValue": 15.6,
        "invoiceCurrency": "USD",
        "weight": 1,
        "description": "mask",
        "nativeDescription": "口罩",
        "sku": "sku003",
        "orderItems": [
          {
            "itemNo": 1,
            "sku": "sku003",
            "description": "mask",
            "nativeDescription": "口罩",
            "hsCode": "hscode003",
            "originCountry": "CN",
            "itemCount": 2,
            "unitValue": 7.8,
            "warehouseNo": "",
            "productURL": "",
            "weight": 2
          }
        ]
      },
      {
        "referenceNo": "MAC2022040601012-3",
        "serviceCode": "UBI.CA2CA.PUROLATOR",
        "recipientName": "AMAZONYYC1",
        "phone": "68765183",
        "addressLine1": "University of Toronto 27",
        "addressLine2": "",
        "addressLine3": "",
        "city": "Toronto",
        "state": " Ontario",
        "postcode": "M5S 1A1",
        "country": "CA",
        "length": "",
        "width": "",
        "height": "",
        "shipperName": "alex",
        "shipperAddressLine1": "test",
        "shipperAddressLine2": "",
        "shipperAddressLine3": "",
        "shipperCity": "ON",
        "shipperState": "ON",
        "shipperPostcode": "k1z3yz",
        "shipperCountry": "CA",
        "shipperPhone": "15000695273",
        "facility": "",
        "invoiceValue": 15.6,
        "invoiceCurrency": "USD",
        "weight": 2,
        "description": "pencil,pencil",
        "nativeDescription": "铅笔,铅笔",
        "sku": "sku002,sku002",
        "orderItems": [
          {
            "itemNo": 1,
            "sku": "sku002",
            "description": "pencil",
            "nativeDescription": "铅笔",
            "hsCode": "hscode002",
            "originCountry": "CN",
            "itemCount": 1,
            "unitValue": 7.8,
            "warehouseNo": "",
            "productURL": "",
            "weight": 2
          },
          {
            "itemNo": 2,
            "sku": "sku002",
            "description": "pencil",
            "nativeDescription": "铅笔",
            "hsCode": "hscode002",
            "originCountry": "CN",
            "itemCount": 1,
            "unitValue": 7.8,
            "warehouseNo": "",
            "productURL": "",
            "weight": 1
          }
        ]
      },
      {
        "referenceNo": "MAC2022040601012-4",
        "serviceCode": "UBI.CA2CA.PUROLATOR",
        "recipientName": "AMAZONYYC1",
        "phone": "68765183",
        "addressLine1": "University of Toronto 27",
        "addressLine2": "",
        "addressLine3": "",
        "city": "Toronto",
        "state": " Ontario",
        "postcode": "M5S 1A1",
        "country": "CA",
        "length": "",
        "width": "",
        "height": "",
        "shipperName": "alex",
        "shipperAddressLine1": "test",
        "shipperAddressLine2": "",
        "shipperAddressLine3": "",
        "shipperCity": "ON",
        "shipperState": "ON",
        "shipperPostcode": "k1z3yz",
        "shipperCountry": "CA",
        "shipperPhone": "15000695273",
        "facility": "",
        "invoiceValue": 15.6,
        "invoiceCurrency": "USD",
        "weight": 2,
        "description": "pencil,pencil",
        "nativeDescription": "铅笔,铅笔",
        "sku": "sku002,sku002",
        "orderItems": [
          {
            "itemNo": 1,
            "sku": "sku002",
            "description": "pencil",
            "nativeDescription": "铅笔",
            "hsCode": "hscode002",
            "originCountry": "CN",
            "itemCount": 1,
            "unitValue": 7.8,
            "warehouseNo": "",
            "productURL": "",
            "weight": 2
          },
          {
            "itemNo": 2,
            "sku": "sku002",
            "description": "pencil",
            "nativeDescription": "铅笔",
            "hsCode": "hscode002",
            "originCountry": "CN",
            "itemCount": 1,
            "unitValue": 7.8,
            "warehouseNo": "",
            "productURL": "",
            "weight": 1
          }
        ]
      }
    ]
  }
]

响应报文

代码块
languagejava
firstline1
titleResponse
linenumberstrue
 {
    "status": "Success",
    "errors": null,
    "data": [
        {
            "status": "Success",
            "errors": null,
            "warnings": null,
            "orderId": "loMIAw32B4aZRbOseBdrBQ",
            "referenceNo": "MAC20220411010121",
            "trackingNo": "TBV000038042",
            "connoteId": null,
            "piecesResult": [
                {
                    "status": "Success",
                    "errors": null,
                    "warnings": null,
                    "orderId": "jVI2ejMorJrcSSzKW_Dkqw",
                    "referenceNo": "MAC20220411010121-1",
                    "trackingNo": "TBV000038059",
                    "connoteId": null
                },
                {
                    "status": "Success",
                    "errors": null,
                    "warnings": null,
                    "orderId": "PaiwbT-k94aUREQgTbO2mQ",
                    "referenceNo": "MAC20220411010121-2",
                    "trackingNo": "TBV000038067",
                    "connoteId": null
                },
                {
                    "status": "Success",
                    "errors": null,
                    "warnings": null,
                    "orderId": "b77OtFHcwZz8R5JD5GkxpQ",
                    "referenceNo": "MAC20220411010121-3",
                    "trackingNo": "TBV000038075",
                    "connoteId": null
                },
                {
                    "status": "Success",
                    "errors": null,
                    "warnings": null,
                    "orderId": "QQFrxW21yLcYQ4p7jeQ2nQ",
                    "referenceNo": "MAC20220411010121-4",
                    "trackingNo": "TBV000038083",
                    "connoteId": null
                }
            ],
            "extraProperty": {}
        }
    ],
    "warnings": null
}


Float_table_content
Hidablefalse