MAWB

Create Mawb

Parameter List

Parameters   Type   Required     Description
 mawbNumber   Nvarchar(50) Y Master airway bill number
 firstFlightNumber   Nvarchar(50) Y Flight number
 firstFlightDateTime   datetime Y Flight departure date
 firstArriveDateTime   datetime Y Flight arrival date
 destination   Nvarchar(3) N Destination airport code,
HKG/MIA/LAX/LHR..
 customsType   Nvarchar(10) NDestination customs clearance type
LNX:Linex Gateway
ECCF: Only for US
CFS: Only for CFS
 remark   Nvarchar(max) N Remarks if need
 mawbToSamCredentialId   int N If you need shipments data upload to our origin gateway SAM,
pls apply this parameter from our gateway
 bagNumbers   Array[string] N The Bags associated with mawb, bags must be valid and submit before mawb
 hawbNumbers   Array[string] N The Hawbs associated with mawb, hawb number return from the submit order function

Request Parameter Example

{
"mawbNumber": "160-XXXXXXX",
"firstFlightNumber": "CX000",
"firstFlightDateTime": "2021-02-23 00:00:00",
"firstArriveDateTime": "2021-02-23 00:00:00",
"destination": "MIA",
"customsType": "ECCF",
"remark": "your remarks",
"mawbToSamCredentialId":"1",
"bagNumbers": ["123456","987654"],
"hawbNumbers": ["123456","987654"]
}

Response of succeed Example

{
"result": null,
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}

 

Close Mawb


Parameter List

Parameters   Type   Required     Description
 mawbNumber   Nvarchar(50) Y Master airway bill number you submitted on Create MAWB 


Request Parameter Example

[
"160-00000000"
]

Response of succeed Example

{
"result": null,
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
"__abp": true
}

Response of failed Example

{
  "result": null,
  "targetUrl": null,
  "success": false,
  "error": {
    "code": 0,
    "message": "Mawb cannot closed.",

    "details": null,
    "validationErrors": null
  },
  "unAuthorizedRequest": false,
  "__abp": true
}
Share on linkedin