The primary purpose of an invoice is to request payment for goods or services and provide a record of the transaction.