The function of accounts payable in accounting is to manage the company's obligations to pay. These obligations are typically towards the company’s suppliers and creditors, but they also vary depending on the company’s field of work and structure. The accounts payable process includes processing invoices, approving payments, and maintaining accurate records of financial obligations and liabilities.