...
HTTP Verb | URL |
---|
Post | /services/integration/carrier/despatchBags |
Request field
#1 | Field (API) | Data Type | Length | Mandatory | Details |
12 | despatchedTime | Date | 40 | O | Currenttime |
2 |
3 | operatingAccount | String |
| O | OperatoraccountineTower |
4 | bags | List |
| M | Bag information |
5 |
| bagNo | String | 80 | M | Bagnumber |
36 |
| extendData | Object |
| O | Extendedattributes |
7 |
|
| sortCode | String | 32 | O | Sortcode |
8 | parcels | List |
| M | Parcel information |
9 |
| barcode | String | 40 | M |
Tarcking4MO | Receiving time - Timeformat:yyyy-MM-dd'T'HH:mm:ssZ
- Systemdefaultscurrenttimeiftimeisnotuploaded.
|
5MO | Weighing time - Timeformat:yyyy-MM-dd'T'HH:mm:ssZ
- Systemdefaultscurrenttimeiftimeisnotuploaded.
|
612 |
| weight | Double | 80 | M | Actualweight(kilogram) |
7 | operatingAccount | OperatoraccountineTower8 | extendData | Map | OExtendedattributes9 | sortCode | String | 32 | O | Sortcode Response content
a) status:Succeeded/Failed
...
代码块 |
---|
language | js |
---|
borderStyle | solid |
---|
firstline | 1 |
---|
title | Request |
---|
linenumbers | true |
---|
|
{
"despatchedTime": "2017-01-06T12:08:08+0800",
"operatingAccount": "Pickup_test@qq.com",
"bags": [
{
"bagNo": "2612_BPO_LAX_LAX_ST029",
"extendData": {
{ "sortCode": "M1A1"
},
"parcels": [
{
"barcode": "RR824564604VU",
"receivedTime": "2017-01-05T12:08:08+0800",
"scannedTime": "2017-01-05T15:08:08+0800",
"weight": 2.8
},
{
"barcode": "RR824564649VU",
"receivedTime": "2017-01-05T12:08:08+0800",
"scannedTime": "2017-01-05T15:08:08+0800",
"weight": 1.2
}
]
},
{
"bagNo": "2512_BPO_LAX_LAX_ST030",
"parcels": [
{
"barcode": "RR824564621VU",
"receivedTime": "2017-01-05T12:08:08+0800",
"scannedTime": "2017-01-05T15:08:08+0800",
"weight": 2.8
},
{
"barcode": "RR824564618VU",
"receivedTime": "2017-01-05T12:08:08+0800",
"scannedTime": "2017-01-05T15:08:08+0800",
"weight": 1.2
},
{
"barcode": "RR824564635VU",
"receivedTime": "2017-01-05T12:08:08+0800",
"scannedTime": "2017-01-05T15:08:08+0800",
"weight": 1.2
}
]
}
]
}
|
Response message
代码块 |
---|
language | java |
---|
firstline | 1 |
---|
title | Response |
---|
linenumbers | true |
---|
|
[
{
"status": "Succeeded",
"code": 0,
"bagId": "sZoOP9h9D5noRU0JVdS_Hg",
"bagNo": "2612_BPO_LAX_LAX_ST029"
},
{
"status": "Succeeded",
"code": 0,
"bagId": "euy7ZrJ2Z4n9Syrdwf7udg",
"bagNo": "2512_BPO_LAX_LAX_ST030"
}
] |
...