Description
Carrier use large bags for forecasting. |
Path
HTTP Verb | URL |
---|---|
Post | /services/integration/carrier/despatchBags |
Request field
# | Field (API) | Data Type | Length | Mandatory | Details | |||||||
1 | despatchedTime | Date | 40 | O | Currenttimebydefault | |||||||
2 | bagNo | String | 80 | M | Bagnumber | |||||||
3 | barcode | String | 40 | M | Tarckingnumber | |||||||
4 | receivedTime | Date | 24 | M | Receiving time
| |||||||
5 | scannedTime | Date | 24 | M | Weighing time
| |||||||
6 | weight | Double | 80 | M | Actualweight(kilogram) | |||||||
7 | operatingAccount | OperatoraccountineTower | ||||||||||
8 | extendData | Map | O | Extendedattributes | ||||||||
9 | sortCode | String | 32 | O | Sortcode |
Response content
a) status:Succeeded/Failed
b) code:
300010 | BagNocouldn’tbeblank |
300011 | BagNoalreadyexisted |
300063 | Parcelsfordifferentdistrictscouldbeputintosamebag |
130004 | Bagweightbeyond40kg |
950008 | Barcodecouldn’tbeblank |
300015 | Barcodecouldn’tbeblank |
300016 | Donotexistshipmentrelatetobarcoderequested |
300013 | Barcodereused |
300012 | Shipmenthasbeenputintobag |
300017 | Shipmentswithdifferentservicecouldn’tbeputintosamebag |
Request messag
代码块 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
{ "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
代码块 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
[ { "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" } ] |