Accounts receivable arise when a company sells goods or services to customers on credit. When a sale is made on credit, the company creates an invoice that details the amount owed by the customer. This invoice serves as a legally binding agreement between the company and the customer, outlining the terms of payment.