(Reuters) - AvidXchange, a software company that helps mid-sized companies automate their invoicing and bill payments, said on Thursday it raised $300 million from investors including Mastercard , Silicon valley investor Peter Thiel and Canada's second largest public pension fund.