页面树结构

版本比较

标识

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

Description

Carrier use large bags for forecasting.

Path

HTTP Verb URL
Post/services/integration/carrier/despatchBags

Request field

#Field (API)Data TypeLengthMandatoryDetails

1despatchedTimeDate40O

Currenttimebydefault

2bagNoString80M

Bagnumber

3barcodeString40MTarckingnumber
4receivedTimeDate24M

Receiving time

  • Timeformat:yyyy-MM-dd'T'HH:mm:ssZ
  • Systemdefaultscurrenttimeiftimeisnotuploaded.
5scannedTimeDate24M

Weighing time

  • Timeformat:yyyy-MM-dd'T'HH:mm:ssZ
  • Systemdefaultscurrenttimeiftimeisnotuploaded.
6weightDouble80MActualweight(kilogram)
7operatingAccount


OperatoraccountineTower
8extendData
Map
OExtendedattributes
9
sortCodeString32OSortcode

Response content

a)   status:Succeeded/Failed

b)   code:

300010

BagNocouldntbeblank

300011

BagNoalreadyexisted

300063

Parcelsfordifferentdistrictscouldbeputintosamebag

130004

Bagweightbeyond40kg

950008

Barcodecouldntbeblank

300015

Barcodecouldntbeblank

300016

Donotexistshipmentrelatetobarcoderequested

300013

Barcodereused

300012

Shipmenthasbeenputintobag

300017

Shipmentswithdifferentservicecouldntbeputintosamebag


Request messag

代码块
languagejs
borderStylesolid
firstline1
titleRequest
linenumberstrue
{
  "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

代码块
languagejava
firstline1
titleResponse
linenumberstrue
[
    {
      "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"
    }
  ]