页面树结构
转至元数据结尾
转至元数据起始

正在查看旧版本。 查看 当前版本.

与当前比较 查看页面历史

« 前一个 版本 15 下一个 »

Description

Create shipping orders.
A shipping order refers to a parcel with a specific description, weight, delivery info etc.

An order list in JSON format. The interface accepts up to 300 orders at a time.      

In generally, trackingNo should be generated by eTower. If trackingNo needs to be specified in request, it should be authorized by eTower.

Please consult your logistics service provider about “Facility” .

Path

HTTP VerbURL
POST/services/shipper/orders


Request field

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 Ovolume(>=0.01)
dimensionUnitString3OLength unit, enumeration value:M, CM
Default value:CM
invoiceValueDouble MThe error between the value of goods (> = 0.01) and sum (itemcount * unitvalue) cannot exceed 0.1
invoiceCurrencyString3MCurrency, ISO currency code
pickUpBoolean1Oenumerator values:Y/N
Default value:N
authorityToLeaveBoolean   
lockerServiceBoolean   
batteryTypeString64OBattery type, enumeration values:
  • No Battery
  • Lithium Ion Polymer
  • Lithium Ion Alloy
Default value:No Battery
batteryPackingString64OBattery packaging,enumerator values:
  • No Battery
  • Inside Equipment
  • Packaged with Equipment
  • Battery Only
  • Other
Default value:No Battery
dangerousGoodsBoolean ODefault value:false
skuString128OThe picking list is usually displayed on the face list
serviceOptionString60O 
instructionString255ODispatch instruction
facilityString20ODelivery outlets, provided by logistics providers
platformString20OPlatform code
recipientNameString50MRecipient name

Limit English / French characters / non pure numbers

Automatic removal of special characters
recipientTaxIdString100ORecipient tax number
recipientCompanyString50ORecipient company name
phoneString20OTelephone
emailString50Omailbox
addressLine1String200MFirst line of address

Limit English / French characters / non pure numbers

Automatic removal of special characters
addressLine2String200OSecond line of address
addressLine3String80OThird line of address
cityString80M城市
stateString80M

Limit English / French characters / non pure numbers
Automatic removal of special characters
postcodeString16OZip code
countryString2MCountry two character code
shipperNameString50Mshipperr name

Limit English / French characters / non pure numbers

Automatic removal of special characters
shipperPhoneString20OPhone
shipperAddressLine1String200OFirst line of address
shipperAddressLine2String200OSecond line of address
shipperAddressLine3String80OThird line of address
shipperCityString80OCity
shipperStateString80OState
shipperPostcodeString16OPostcode
shipperCountryString2OCountry two character code
returnOptionString100Oreturn option
returnNameString50MReturn recipient name
returnAddressLine1String200MFirst line of address
returnAddressLine2String200OSecond line of address
returnAddressLine3String80OThird line of address
returnCityString80MCity
returnStateString80MState
returnPostcodeString16OPostcode
returnCountryString2MCountry two character code
returnPhoneString50OPhone
itemsList OItem information
 itemNoString128MitemNo
 skuString128MSKU
 descriptionString60MEnglish 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
 originCountryString60MCountry two word code, three word code or name
 itemCountInteger Mnumber,>0
 unitValueDouble MUnit Price,>0
 warehouseNo 50OIntercept the first 50 characters
 productURLString512OProduct link
 weightDouble OItem weight, converted to KG
extendData List OExtended field
 vendoridString12Ovendorid
 gstexemptionCodeSting4OGST tax exemption code. If the vendorid is correct, the field value is automatically set to "paid"
 senderTaxIdString255OsenderTaxId
 InjectPortString256OOrder delivery port for Canadian service
pieces
array[map,...]
OOne ticket multiple package information

Parcel Info


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

Response Elements
Return results in the order of shipping info in request, including:

1)status

1.1) Succeeded

1.2) Failed

1.3) Partial Success

2)errors

2.1) error code

2.2) error message

3)data

3. 1) orderId

3.2) referenceNo

Copyright© 2014 -2020 WallTech Limited. All rights reserved

9
eTower Shipper API
3.3) trackingNo

3.4) status

3.5
piecesResult
3.6
extraProperty
3.6.1
injectPort
3.6.2) customsClearanceType

3.7) errors

3.7.1) code

3.7.2) message

4)warnings

4.1) error code

4.2) error messag
e



Request message

Single ticket creation
Request
[
  {
    "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
  }
]
Multiple items in one ticket
Request
 [
  {
    "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
          }
        ]
      }
    ]
  }
]

Response message

Response
 {
    "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
}

Table of Contents





  • 无标签