Store Position Report

POST/pegasus/v1/posrep

Required attributes

  • Name
    application_key
    Type
    string
    Description
  • Name
    api_key
    Type
    string
    Description
  • Name
    airline_id
    Type
    string
    Description
  • Name
    booking_id
    Type
    string
    Description
  • Name
    altitude
    Type
    string
    Description
  • Name
    magnetic_heading
    Type
    string
    Description
  • Name
    true_heading
    Type
    string
    Description
  • Name
    latitude
    Type
    string
    Description
  • Name
    longitude
    Type
    string
    Description
  • Name
    groundspeed
    Type
    string
    Description
  • Name
    distance_remaining
    Type
    string
    Description
  • Name
    phase
    Type
    string
    Description
  • Name
    departure_time
    Type
    string
    Description
  • Name
    time_remaining
    Type
    string
    Description
  • Name
    estimated_arrival_time
    Type
    string
    Description
  • Name
    network
    Type
    string
    Description

Invalid Application key

{
    "status": 401,
    "message": "INVALID_APPLICATION"
}

Invalid User API Token

{
    "status": 401,
    "message": "INVALID_TOKEN"
}

Invalid Airline ID

{
    "status": 400,
    "message": "INVALID_AIRLINE_ID"
}

Unable to save Position Report

{
    "status": 500,
    "friendly": "Unable to submit position report. Please try again later.",
    "message": "UNABLE_POSREP_SAVE"
}

Success Response

{
    "status": 200,
    "message": "OK",
    "position_report_id": 123456
}

Store PIREP

POST/pegasus/v1/pirep

Required attributes

  • Name
    application_key
    Type
    string
    Description
  • Name
    api_key
    Type
    string
    Description
  • Name
    airline_id
    Type
    string
    Description
  • Name
    booking_id
    Type
    string
    Description
  • Name
    log
    Type
    string
    Description

Optional attributes

  • Name
    comment
    Type
    string
    Description

Invalid Application key

{
    "status": 401,
    "message": "INVALID_APPLICATION"
}

Invalid User API Token

{
    "status": 401,
    "message": "INVALID_TOKEN"
}

Invalid Airline ID

{
    "status": 400,
    "message": "INVALID_AIRLINE_ID"
}

User is Banned

{
    "status": 401,
    "message": "NO_ACCOUNTS"
}

Booking already has a PIREP

{
    "status": 400,
    "friendly": "A PIREP has already been filed for this booking, so this PIREP has not been filed.",
    "message": "BOOKING_ALREADY_HAS_PIREP"
}

Unable to save PIREP

{
    "status": 500,
    "friendly": "Unable to file your PIREP. Please try again later.",
    "message": "UNABLE_PIREP_SAVE"
}

Success Response

{
    "status": 200,
    "message": "OK",
    "pirep_id": 123456
    "pirep_url": "https://vamsys.io/phoenix/flight-center/pireps/123456"
}