def get_ap_serial_number(ap):
    """Parses serial number from AP data

    Args:
        ap (dict): ap data returned from FortiOS managed-ap REST endpoint
    
    Returns:
        str: serial number or 'unknown' id not found
    """

    return ap.get('serial', 'unknown')