Quarterly report pursuant to Section 13 or 15(d)

Summary of Significant Accounting Policies - Schedule of Revenues from External Customers (Details)

v3.21.1
Summary of Significant Accounting Policies - Schedule of Revenues from External Customers (Details) - USD ($)
$ in Thousands
3 Months Ended
Mar. 31, 2021
Mar. 31, 2020
Revenue, Major Customer [Line Items]    
Total revenue $ 334,794 $ 210,731
Customer agreements and incentives    
Revenue, Major Customer [Line Items]    
Total revenue 174,596 99,124
Customer agreements    
Revenue, Major Customer [Line Items]    
Total revenue 157,830 94,253
Incentives    
Revenue, Major Customer [Line Items]    
Total revenue 16,766 4,871
Solar energy systems and product sales    
Revenue, Major Customer [Line Items]    
Total revenue 160,198 111,607
Solar energy systems    
Revenue, Major Customer [Line Items]    
Total revenue 89,050 71,277
Products    
Revenue, Major Customer [Line Items]    
Total revenue $ 71,148 $ 40,330