Change | UploadPassport

When the “attachmentStatus” in response of API “GetChangeDetail” is 1, it is necessary to call this API to upload passport file.
Notice:
Product Scope :FareMarket

POST

/flight/change

Parameter

Field Mandatory Type Scope Description
action required String UploadPassport
key required String API security key applied from AeroHub.
signature required String Refer to the Guidelines for generation.
timestamp required Int The ‘timestamp’ field should be a 10-digit Unix timestamp in seconds, used for encryption and data verification.
version optional String API version information, e.g. “3.2.0”.
request required Object
  changeNum required String Rescheduling order number generated by API “SubmitChange”.
  attachments required Object[] Attachment. The supported file types are as follows,JPG, JPEG, PNG, PDF. Maximum single upload file size: 10M.
    name required String File name with extension.
    content required String File content text, converted by the original file with base64 encoding.

Request_Example:

{
  "action": "ConfirmChange",
  "key": "n93mPT7WzN6cLKC2",
  "signature": "YhQ2EoBQOfOnf/EOnuuuK5i+K+ncydeQhjFpoXYiEMo=",
  "timestamp": 1685116516,
  "request": {
    "changeNum":"C20241018101144760",
    "attachments": [
        {
            "content": "f3b7288cd66c26cb087f70501641a1ea",
            "name": "R-C.jpg"
        }
    ]
  }
}

Response

Field Type Description
status Int 0: Succeeded
Others: Failed
Refer to “Status Code” below for details.
msg String Return message, maximum 64 characters.
changeNum String Rescheduling Order Number generated by Aerohub.
attachments Object[]
  name String File name with extension.
  url String File url.

Success-Response:

{
  "status": 0,
  "msg": "Success",
  "changeNum": "C20241018101144760"
  "attachments": [
        {
            "url": "https://upload.file.com/file_url",
            "name": "R-C.jpg"
        }
    ]
}

Status Code

Name Description
7704 The change ID does not exist.
7705 The current state does not allow confirm.
7706 Insufficient account balance.
7707 Confirm failed.

Error-Response

{
    "status": 1000,
    "msg": "General system error"
}
Author:SunKang  Create time:2024-11-18 17:28
Last editor:AeroHub  Update time:2025-04-22 14:25