页面树结构

版本比较

标识

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

Description

Create shipping orders.

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

...

HTTPVerbURL
POST/services/shipper/orders


Request field

1Field (API)Data Type

Length

MandatoryDetails
2referenceNoString80MUnique ID of the client's order
3referenceNo1String80OClient order number
4trackingNoString40OTracking number
5serviceCodeString64MService code, provided by logistics provider
6serviceOptionString64OService
Option
option, provided by logistics provider
7incotermString3ODDU/DDP
8descriptionString60MEnglish product name
9nativeDescriptionString255O

Chinese name

10weightDouble Mweight(>=0.000001)
11weightUnitString3OWeight unit, enumeration value:G, KG,LB
Default value:KG
12lengthDouble Olong
13widthDouble Owide
14heightDouble Ohigh
15volumeDouble Ovolume(>=0.01)     The default unit of the volume field is cubic meters
16dimensionUnitString3OLength unit, enumeration value:M, CM
Default value:CM
17invoiceValueDouble MThe error between the value of goods (> = 0.01) and sum (itemcount * unitvalue) cannot exceed 0.1
18invoiceCurrencyString3MCurrency, ISO currency code
19pickUpBoolean1Oenumerator values:Y/N
Default value:N
20authorityToLeaveBoolean   
21lockerServiceBoolean   
22batteryTypeString64OBattery type, enumeration values:
  • No Battery
  • Lithium Ion Polymer
  • Lithium Ion Alloy
Default value:No Battery
23batteryPackingString64OBattery packaging,enumerator values:
  • No Battery
  • Inside Equipment
  • Packaged with Equipment
  • Battery Only
  • Other
Default value:No Battery
24dangerousGoodsBoolean ODefault value:false
25skuString128OThe picking list is usually displayed on the face list
serviceOptionString60O 
26instructionString255ODispatch instruction
27facilityString20ODelivery outlets, provided by logistics providers
28platformString20OPlatform code
29recipientNameString50MRecipient name

Limit English / French characters / non pure numbers
30recipientTaxIdString100ORecipient tax number
31recipientCompanyString50ORecipient company name
32phoneString20OTelephone
33emailString50Omailbox
34addressLine1String200MFirst line of address

Limit English / French characters / non pure numbers
35addressLine2String200OSecond line of address
36addressLine3String80OThird line of address
37cityString80MRecipient City
38stateString80MRecipient State

Limit English / French characters / non pure numbers
39postcodeString16OZip code
40countryString2MCountry two character code
41shipperNameString50Mshipperr name

Limit English / French characters / non pure numbers
42shipperPhoneString20OPhone
43shipperAddressLine1String200OFirst line of address
44shipperAddressLine2String200OSecond line of address
45shipperAddressLine3String80OThird line of address
46shipperCityString80OCity
47shipperStateString80OState
48shipperPostcodeString16OPostcode
49shipperCountryString2OCountry two character code
50returnOptionString100O

return option

  • Null
  • Return
  • Destroy
  • Forward
51returnNameString50
M
OReturn recipient name
52returnAddressLine1String200
M
OFirst line of address
53returnAddressLine2String200OSecond line of address
54returnAddressLine3String80OThird line of address
55returnCityString80
M
OCity
56returnStateString80
M
OState
57returnPostcodeString16OPostcode
58returnCountryString2
M
OCountry two character code
59returnPhoneString50OPhone
60
items

orderItems

List OItem information
61 itemNoString128MitemNo
62 skuString128MSKU
63 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
64 nativeDescriptionString255O

Chinese name


65 hsCodeString60OHS Code
66 originCountryString60MCountry two word code, three word code or name
67 itemCountInteger Mnumber,>0
68 unitValueDouble MUnit Price,>0
69 warehouseNo 50OIntercept the first 50 characters
70 productURLString512OProduct link
71 weightDouble OItem weight,
converted to KG
automaticlly convert g to kg by rounding
72extendData List OExtended field, only part is displayed, depends on the service requirements
73 vendoridString12Ovendorid
74 gstexemptionCodeSting4OGST tax exemption code. If the vendorid is correct, the field value is automatically set to "paid"
75 senderTaxIdString255OsenderTaxId
76 injectPortString255OOrder delivery port
for Canadian service
77
originPortString255OOrder origin port
piecesarray[map,...]
78
postageDecimal (12, 2)255O
One ticket multiple package informationParcel InfoThe request field structure of a single package is consistent with the requirements above

...

Postage
79
icmsDecimal (12, 2)255OICMS fee for BR services
80
vatDecimal (12, 2)
OVAT amount
81onlineInsurance




82
insuranceCurrencyString3OCurrency of insurance amount
83
insuranceAmountDouble/OInsurance amount
84
beneficiaryTypeString255

O

Type of beneficiary

1=Individual
2=Company

85
organizationCodeString255

O

If beneficiaryType=1, please fill in the ID card number
If benefitaryType=2, please fill in the organization code
86
beneficiaryString255OBeneficiary
87
insureString/O

Whether to insure or not
1 = Yes

88
contactNameString20OContact name for beneficiary
89pieces
array[map,...]
OOne ticket multiple package information
90
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

...

3.3) trackingNo

3.

...

4)

...

referenceNo1

3.

...

5) status

3.

...

6piecesResult

3.

...

7extraProperty

3.

...

7.1injectPort

3.

...

7.2) customsClearanceType

3.

...

8) errors

3.

...

8.1) code

3.

...

8.2) message

 3.9)relabelStatus

4)warnings

4.1) error code

4.2) error message



Request message

代码块
languagejs
borderStylesolid
firstline1
titleRequest
linenumberstrue
[
  {
    "referenceNo": "TESTING1231211",
    "country": "AU",
    "serviceCode": "Service code, provided by logistics provider",
    "serviceOption": "Service option, provided by logistics provider",
    "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",
    "extendData": {
      "vendorid": "111",
      "injectPort": null,
      "postage": 12.3,
      "icms": 12.1,
      "vat": 1
    },
    "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
  }
]

...

代码块
firstline1
titleResponse
linenumberstrue
{
  "status": "Success",
  "errors": null,
  "data": [
    {
      "status": "Success",
      "errors": null,
      "warnings": null,
      "orderId": "",
      "referenceNo": "",
      "trackingNo": "",
      "refNo1": "",
      "connoteId": null,
      "piecesResult": null,
      "extraProperty": {},
      "relabelStatus": 1
      "lastMileCarrier":
    }
  ],
  "warnings": null
}

...

代码块
languagejava
firstline1
titleResponse
linenumberstrue
 {
    "status": "Success",
    "errors": null,
    "data": [
        {
            "status": "Success",
            "errors": null,
            "warnings": null,
            "orderId": "",
            "referenceNo": "",
            "trackingNo": "",
            "connoteId": null,
            "piecesResult": [
                {
                    "status": "Success",
                    "errors": null,
                    "warnings": null,
                    "orderId": "",
                    "referenceNo": "",
                    "trackingNo": "",
                    "connoteId": null
                },
                {
                    "status": "Success",
                    "errors": null,
                    "warnings": null,
                    "orderId": "",
                    "referenceNo": "",
                    "trackingNo": "",
                    "connoteId": null
                },
                {
                    "status": "Success",
                    "errors": null,
                    "warnings": null,
                    "orderId": "",
                    "referenceNo": "",
                    "trackingNo": "",
                    "connoteId": null
                }
            ],
            "extraProperty": {}
        }
    ],
    "warnings": null
}


false
Float_table_content
Hidable