Bagging

Parameter List

Parameters   Type   Required     Description
  BagNumber  Nvarchar(50) Y  Bag Number
  ServiceCode  Nvarchar(20) Y  ServiceCode
  PrintBagTag  Bool N  The bag tag pdf file,If TRUE,our api response can include the url of bag tag pdf file.
  Remark Nvarchar(255) N 
  HawbNumbers  Array[string] Y  HawbNumber
  MawbInput  Model N  Mawb        
  HawbInput   
  HawbNumber  Nvarchar(20) Y 
  Weight  decimal N 
  Length  decimal N 
  Width  decimal N 
  Height  decimal N 
  MawbInput   
  MawbNumber  Nvarchar(50) Y  MawbNumber
  FirstFlightNumber  Nvarchar(50) Y  FirstFlightNumber
  FirstFlightDateTime  datetime Y  FirstFlightDateTime
  FirstArriveDateTime  datetime Y  FirstArriveDateTime
  Remark  Nvarchar(200) N  Remark
  Destination  Nvarchar(500) N  Destination
  CustomsType  Nvarchar(20) N  CustomsType
  MawbToSamCredentialId  int N  If you need shipments data upload to our origin gateway SAM,
pls apply this parameter from our gateway

Request Parameter Example

{      
"BagNumber": "",
"ServiceCode": "HOME", "PrintBagTag": "false", "hawbs": [{"HawbNumber":"84180000025558","weight":"7"}] }

Response of succeed Example

{
"result": {
"bagNumber": "test998",
"totalCount": 2,
"failedCount": 0, "LabelUrl": "",
"failedHawbs": []
},
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}

Response of failed Example

{
"result": {
"bagNumber": "test991",
"totalCount": 2,
"failedCount": 2, "LabelUrl": "",
"failedHawbs": [
{
"hawbNumber": "11000229500",
"msg": "Already bagged."
},
{
"hawbNumber": "11000230321",
"msg": "Already bagged."
}
]
},
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}
Share on linkedin