页面树结构

版本比较

标识

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

...

Put orders into a bag and handover them to the first carrier.
Use the interface in three ways.

1. Create bags and new parcels at the same time. The parcels will be associated with the
corresponding bag automatically.


2. Create bags and put existing parcels into them.


3. Create bags and new parcels (same as A). Meanwhile, put some existing parcels into
new bags (same as B).


Interfaceverify:

    • Upon successful Handover request, the bag will be generated immediately with the
    • state "Closed", and all the parcels in the bag will also have the state "Closed".There can be no more than 2000 parcels in each bag

Path

HTTP Verb URL
Post/services/shipper/handover

Request

...

FIELD

...

Elements

Field (API)

Mandatory

Length

DescribeDetails

batchNo

O

80

Batch number

handoverTime

O

 


Handover time(Time format: YYYY-MM-DD'T'HH:MM:SSZ)

consignor

O

80consignor

Sender information

consignee

O

80consignee

Recipient information

driver

O

80driver

Driver information

plateNbr

O

80

license License plate number

remark

O

Double

remark

Remark information

bags





bagNo

M

Big Bag No


serviceCode

M

Array

bags

Request content

1. Create large package and new order at the same time

Request

{
    "batchNo": "20200810001",
    "handoverTime":

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48

Service Code

facility

O

destCountry

MBag destination country

sortCode

OBag sortCode

battery

OBag has battery

totalWeight

MBag total weight

parcels





trackingNo

MTracking No.


Response content

ResponseElements

Return results including:

1)Status

2) Errors

3) Reference No.

4) Tracking No

5) Bag No.


Error Code & Message

codemessage
950002Parameter is null.
951002The parameter bags is required.
951003The parameter bags exceeds max limit 300.
951003Create Message error.
951007Bag {bagNo} parameter serviceCode is missing.
951000The parameter bagNo is missing. 
951006The parameter bagNo {bagNo} exceeds max length 80 characters.
951020The parameter bagNo {bagNo} already existed.
951023

The parameter bagNo {bagNo} repeat.

951009Bag {bagNo} parameter destCountry is missing.
951013Bag {bagNo} parameter parcels is required.
950003Exceeds the limit of 2000 orders.
100062Bag {bagNo} parcel {parcelId} is no permission.
951024Bag {bagNo} parcel {parcelId} already bagged.
951021Bag {bagNo} parcel {parcelId} referenceNo {referenceNo} is repeat.
951025Bag {bagNo} parcel {parcelId} serviceCode {serviceCode} is different from bag serviceCode {bagServiceCode}.
951026Bag {bagNo} parcel {parcelId} serviceOption {serviceOption} is different from bag serviceOption {bagServiceOption}.

Request parameters

1. Create large package and new order at the same time
代码块
languagejs
borderStylesolid
firstline1
titleRequest
linenumberstrue
{
    "batchNo": "20200810001",
    "handoverTime": "2020-08-10T11:45:22+08:00",

...


    "consignor": "test",

...


    "consignee": "test",

...


    "driver": "张三",

...


    "plateNbr": "沪A8888",

...


    "remark": "测试",

...


    "bags": [{

...


      "bagNo": "20201102001-001",

...


      "serviceCode": "UBI.CN2AU.AUPOST",

...


      "facility": "SZX",

...


      "destCountry": "AU",

...


      "sortCode": "",

...


      "battery": false,

...


      "parcels": [{

...


        "referenceNo": "TESTBDAU15303483645716",

...


        "serviceCode": "UBI.CN2AU.AUPOST",

...


        "recipientName": "WUBIN",

...


        "phone": "+49 3068838320",

...


        "addressLine1": "Stellingdamm9",

...


        "addressLine2": "",

...


        "city": "Cudgewa",

...


        "postcode": "3705",

...


        "state": "VIC",

...


        "country": "AU",

...


        "weight": 0.646,

...


        "invoiceCurrency": "USD",

...


        "batteryType": "NoBattery",

...


        "description": "Pants",

...


        "nativeDescription": "货物中文描述",

...


        "extendData":

...

 {
          "vendorid": "64652016681",

...


          "gstexemptioncode": "Paid"

...


        },
        "orderItems": [{

...


          "itemNo": 1,

...


          "sku": "159110805",

...


          "description": "Pants",

...


          "hsCode": "6104620050",

...


          "originCountry": "CHINA",

...


          "unitValue": "38.44",

...


          "itemCount":

...

 2
        }],

...


        "invoiceValue": "76.88"

...


      }]
    }]
  }
  
2. Large package is associated with existing order

...

代码块

...

language

...

java

...

firstline

...

1

...

title

...

Request

...

linenumberstrue
{
    "bags":

...

 [
      {
        "bagNo": "

...

20201102001-001",

...


        "battery": false,

...


        "destCountry": "AU",

...


        "facility": "CAN",

...


        "parcels":

...

 [
          {
            "trackingNo": "JDQ002447301000931502"

...


          }
        ],
        "serviceCode": "UBI.ASP.CN2AU.AUPOST",

...


        "totalWeight": 0.064

...


      }
    ],
    "batchNo": "ZXYD1016617",

...


    "handoverTime": "

...

2020-08-10T11:45:22+08:00"
  }

3. Large packages are associated with new orders and existing orders

...

代码块

...

language

...

java

...

firstline

...

1

...

title

...

Request

...

linenumberstrue
{
    "batchNo": "20200810001",

...


    "handoverTime": "2020-08-11T22:08:08+0800",

...


    "consignor": "test",

...


    "consignee": "test",

...


    "driver": "张三",

...


    "plateNbr": "沪A8888",

...


    "remark": "测试",

...


    "bags": [{

...


        "bagNo": "20201102001-001",

...


        "serviceCode": "UBI.ASP.CN2AU.AUPOST",

...


        "facility": "SZX",

...


        "destCountry": "AU",

...


        "sortCode": "YYZ",

...


        "battery": false,

...


        "totalWeight": 0.3,

...


        "extendData":

...

 {
            "sortCode": "M1A1"

...


         },
        "parcels": [{

...


            "referenceNo": "TESTBDAU15303483645716"

...


        }]
    }, {
        "bagNo": "20171102001-002",

...


        "serviceCode": "UBI.ASP.CN2AU.AUPOST",

...


        "facility": "SZX",

...


        "destCountry": "AU",

...


        "sortCode": "YYZ",

...


        "battery": false,

...


        "totalWeight": 0.3,

...


        "parcels": [{

...


            "referenceNo": "TESTBDAU15303483645717",

...


            "serviceCode": "UBI.ASP.CN2AU.AUPOST",

...


            "recipientName": "WUBIN",

...


            "phone": "+49 3068838320",

...


            "addressLine1": "Stellingdamm 9",

...


            "addressLine2": "",

...


            "city": "Cudgewa",

...


            "postcode": "3705",

...


            "state": "VIC",

...


            "country": "AU",

...


            "weight": 0.646,

...


            "invoiceCurrency": "USD",

...


            "batteryType": "No Battery",

...


            "description": "Pants",

...


            "nativeDescription": "货物中文描述",

...


            "extendData":

...

 {
                "vendorid": "6465201 6681",

...


                "gstexemptioncode": "Paid"

...


            },
            "orderItems": [{

...


                "itemNo": 1,

...


                "sku": "159110805",

...


                "description": "Pants",

...


                "hsCode": "6104620050",

...


                "originCountry": "CHINA",

...


                "unitValue": "38.44",

...


                "itemCount":

...

 2
            }],
            "invoiceValue": "76.88"

...


        }]
    }]
}


Response

...

message

...

Response message

Response

...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

...

代码块
languagejava
firstline1
titleResponse
linenumberstrue
{
    "status": "Success",
    "errors": null,
    "data": [
        {
            "status": "Success",
            "errors": [],
            "bagNo": "20201102001-001",
            "orderResults": [
                {
                    "status": "Success",
                    "errors": null,
                    "orderId": null,
                    "referenceNo": "TESTBDAU15303483645716",
                    "trackingNo": null,
                    "connoteId": null
                }
            ]
        },
        {
            "status": "Success",
            "errors": [],
            "bagNo": "20171102001-002",
            "orderResults": [
                {
                    "status": "Success",
                    "errors": null,
                    "orderId": null,
                    "referenceNo": "TESTBDAU15303483645717",
                    "trackingNo": null,
                    "connoteId": null
                }
            ]
        }
    ]
}