页面树结构
转至元数据结尾
转至元数据起始

正在查看旧版本。 查看 当前版本.

与当前比较 查看页面历史

« 前一个 版本 3 下一个 »

Description

Carrier use large bags for forecasting.

Path

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

Request field

#Field (API)Data TypeLengthMandatoryDetails

1despatchedTimeDate40O

Current time by default

2bagNoString80M

Bag number

3barcodeString40MTarcking number
4receivedTimeDate24M

Receiving time

  • Time format:yyyy-MM-dd'T'HH:mm:ssZ
  • System defaults current time if time is not uploaded.
5scannedTimeDate24M

Weighing time

  • Time format:yyyy-MM-dd'T'HH:mm:ssZ
  • System defaults current time if time is not uploaded.
6weightDouble80MActual weight(kilogram)
7operatingAccount


Operator account in eTower
8extendData
Map
OExtended attributes
9
sortCodeString32OSort code

Response content

a)   status:Succeeded/Failed

b)   code:

300010

BagNo couldnt be blank

300011

BagNo already existed

300063

Parcels for different districts could be put into same bag

130004

Bag weight beyond 40kg

950008

Barcode couldnt be blank

300015

Barcode couldnt be blank

300016

Do not exist shipment relate to barcode requested

300013

Barcode reused

300012

Shipment has been put into bag

300017

Shipments with different service couldnt be put into same bag


Request messag

Request
{
  "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

Response
[
    {
      "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"
    }
  ]
  • 无标签