XML 50 R38.htm IDEA: XBRL DOCUMENT v3.22.2.2
RELATED PARTY TRANSACTIONS - Narrative (Details)
$ / shares in Units, shares in Millions
3 Months Ended 9 Months Ended
Nov. 15, 2021
$ / shares
shares
Sep. 30, 2022
USD ($)
Sep. 30, 2021
USD ($)
Sep. 30, 2022
USD ($)
vehicle
Sep. 30, 2021
USD ($)
Oct. 31, 2021
USD ($)
Jul. 31, 2021
USD ($)
2021 Convertible Notes              
Related Party Transaction [Line Items]              
Convertible notes converted into common stock (in shares) | shares 38            
Conversion price (in USD per share) | $ / shares $ 66.30            
2021 Convertible Notes | Convertible Debt              
Related Party Transaction [Line Items]              
Principal amount     $ 2,500,000,000   $ 2,500,000,000   $ 2,500,000,000
Notes 2026 | Senior Notes              
Related Party Transaction [Line Items]              
Principal amount           $ 1,250,000,000  
Principal Owner | Amazon              
Related Party Transaction [Line Items]              
Number of electric delivery vehicles ordered | vehicle       100,000      
Revenue from related parties       $ 133,000,000      
Due from related parties   $ 68,000,000   68,000,000      
Principal Owner | 2021 Convertible Notes | Convertible Debt | Amazon              
Related Party Transaction [Line Items]              
Principal amount             490,000,000
Principal Owner | 2021 Convertible Notes | Convertible Debt | Ford              
Related Party Transaction [Line Items]              
Principal amount             415,000,000
Principal Owner | 2021 Convertible Notes | Convertible Debt | T Rowe Price              
Related Party Transaction [Line Items]              
Principal amount             $ 400,000,000
Principal Owner | Notes 2026 | Senior Notes | T Rowe Price              
Related Party Transaction [Line Items]              
Principal amount           $ 285,000,000  
Principal Owner | Hosting, Storage, and Compute Services | Amazon              
Related Party Transaction [Line Items]              
Expenses   $ 9,000,000 $ 1,000,000 $ 43,000,000 $ 12,000,000