A transaction refers to an exchange of goods, services, or money between parties. It can be a purchase, sale, or transfer of assets or services. Transactions occur in various forms such as online and offline purchases, payments, investments and other financial activities.