Debt is anything that you owe to a third party. Accounts payable are purchases that you have made on credit (along with accruals etc). You have a debt or the obligation to repay these amounts so yes accounts payable is a debt. It’s probably not an interest bearing debt but it is a debt.