Factoring, receivables factoring or debtor financing, is when a company buys a debt or invoice from another company.