When a company receives an invoice from a supplier, the amount is recorded as an accounts payable. This entry increases the AP balance on the balance sheet and records an expense on the income statement. Once the payment is made, the AP balance decreases, reflecting the outflow of cash.