Adjustments to reconcile net loss to net cash used in operating activities: Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract] Unbilled receivables, noncurrent Unbilled Receivables, Noncurrent Unbilled Receivables, Noncurrent Statistical Measurement [Domain] Statistical Measurement [Domain] Cover [Abstract] Net increase in cash, cash equivalents and restricted cash Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect Other current liabilities Other current liabilities Other Liabilities, Current Trading Symbol Trading Symbol Segment Reporting Information [Line Items] Segment Reporting Information [Line Items] Change in asset retirement costs and asset retirement obligation Increase (Decrease) In Asset Retirement Costs And Obligations Increase (Decrease) In Asset Retirement Costs And Obligations Total other comprehensive loss Comprehensive Income (Loss), Net of Tax, Including Portion Attributable to Noncontrolling Interest All Trading Arrangements All Trading Arrangements [Member] Debt Instrument, Redemption, Period [Axis] Debt Instrument, Redemption, Period [Axis] Compensation Actually Paid vs. Net Income Compensation Actually Paid vs. Net Income [Text Block] Non-NEOs Non-NEOs [Member] Schedule of Computation of Basic and Diluted Net Loss Per Share Schedule of Earnings Per Share, Basic and Diluted [Table Text Block] Variable Interest Entity, Primary Beneficiary DevCo JVs Variable Interest Entity, Primary Beneficiary [Member] Customer B Customer B [Member] Customer B Rule 10b5-1 Arrangement Adopted Rule 10b5-1 Arrangement Adopted [Flag] Awards Close in Time to MNPI Disclosures Awards Close in Time to MNPI Disclosures [Table] Accounts receivable, allowances Accounts Receivable, Allowance for Credit Loss, Current Weighted-average number of shares outstanding used to compute net loss per share attributable to common stockholders, basic (in shares) Weighted Average Number of Shares Issued, Basic Conversion ratio Debt Instrument, Convertible, Conversion Ratio Accretion of asset retirement obligations Accretion Expense, Including Asset Retirement Obligations Pay vs Performance Disclosure [Line Items] Peer Group Total Shareholder Return Amount Peer Group Total Shareholder Return Amount Debt Instrument, Redemption, Period [Domain] Debt Instrument, Redemption, Period [Domain] Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date [Axis] Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date [Axis] Accounts receivable Increase (Decrease) in Accounts Receivable Lease liabilities Increase (Decrease) in Operating Lease Liability Non-Rule 10b5-1 Arrangement Adopted Non-Rule 10b5-1 Arrangement Adopted [Flag] Issuance of common stock upon release of restricted stock units (in shares) Stock Issued During Period, Shares, Restricted Stock Award, Net of Forfeitures FAIR VALUE MEASUREMENTS Fair Value Disclosures [Text Block] Award Timing Disclosures [Line Items] Other Performance Measure, Amount Other Performance Measure, Amount Common stock, outstanding (in shares) Common Stock, Shares, Outstanding Schedule of Acquired Finite-Lived Intangible Asset by Major Class [Table] Schedule of Acquired Finite-Lived Intangible Asset by Major Class [Table] Impairment loss of project assets Impairment of Ongoing Project Provision for (recovery of) credit losses on accounts receivable Accounts Receivable, Current, Credit Loss Expense (Reversal) Accounts Receivable, Current, Credit Loss Expense (Reversal) Lease liabilities, noncurrent Operating Lease, Liability, Noncurrent Segment Information Segment Reporting, Policy [Policy Text Block] Revenue from Contract with Customer [Abstract] Deferred revenue, current portion Contract with Customer, Liability, Current Plan Name [Domain] Plan Name [Domain] United States UNITED STATES Revision of Prior Period, Reclassification, Adjustment Revision of Prior Period, Reclassification, Adjustment [Member] Other noncurrent assets Other Assets, Noncurrent Entity Tax Identification Number Entity Tax Identification Number Antidilutive Securities, Name [Domain] Antidilutive Securities, Name [Domain] Money market fund Money Market Funds [Member] Contract origination costs, net Capitalized Contract Cost, Net, Noncurrent Proceeds from convertible notes Proceeds from Convertible Debt Debt Instrument, Redemption, Period Two Debt Instrument, Redemption, Period Two [Member] Net cash provided by (used in) operating activities Net cash provided by (used in) operating activities Net Cash Provided by (Used in) Operating Activities OPERATING ACTIVITIES Net Cash Provided by (Used in) Operating Activities [Abstract] Asset retirement obligation Asset Retirement Obligations, Noncurrent Plan Name [Axis] Plan Name [Axis] Equity Components [Axis] Equity Components [Axis] Other current assets Other current assets Other Assets, Current Award Timing Method Award Timing Method [Text Block] Compensation expense excluding stock-based compensation Compensation Expense, Excluding Stock-Based Compensation Compensation Expense, Excluding Stock-Based Compensation Trading Arrangements, by Individual Trading Arrangements, by Individual [Table] Restructuring Type [Axis] Restructuring Type [Axis] Options vested and exercisable, weighted-average exercise price (in dollars per share) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Vested and Expected to Vest, Exercisable, Weighted Average Exercise Price Accounts Receivable, Net Accounts Receivable [Policy Text Block] Acquired Finite-Lived Intangible Assets [Line Items] Acquired Finite-Lived Intangible Assets [Line Items] Trade name Trade Names [Member] Measurement Frequency [Axis] Measurement Frequency [Axis] Entity Common Stock, Shares Outstanding Entity Common Stock, Shares Outstanding Energy storage systems not yet placed into service Energy Storage Systems Not Yet Placed Into Service [Member] Energy Storage Systems Not Yet Placed Into Service Insider Trading Policies and Procedures [Line Items] Amount capitalized Share-Based Payment Arrangement, Amount Capitalized Use of Estimates Use of Estimates, Policy [Policy Text Block] Adjustment to Compensation, Amount Adjustment to Compensation Amount Aggregate intrinsic value, options outstanding Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Intrinsic Value Outstanding warrants Common Stock Warrants [Member] Common Stock Warrants Compensation Amount Outstanding Recovery Compensation Amount Less (add): Segment Reconciliation [Abstract] Aggregate Change in Present Value of Accumulated Benefit for All Pension Plans Reported in Summary Compensation Table Aggregate Change in Present Value of Accumulated Benefit for All Pension Plans Reported in Summary Compensation Table [Member] Unrealized gain on available-for-sale securities Unrealized gain on available-for-sale securities Other Comprehensive Income (Loss), Available-for-Sale Securities Adjustment, Net of Tax, Portion Attributable to Parent Entity Small Business Entity Small Business Developed technology Developed Technology Rights [Member] Cash equivalents: Cash Equivalents, at Carrying Value [Abstract] Company Selected Measure Amount Company Selected Measure Amount Geographical [Axis] Geographical [Axis] Proceeds from maturities of available-for-sale investments Proceeds from Maturities, Prepayments and Calls of Debt Securities, Available-for-Sale Tabular List, Table Tabular List [Table Text Block] Level 3 Fair Value, Inputs, Level 3 [Member] Share-based Compensation Arrangement by Share-based Payment Award [Line Items] Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] Sales and marketing Selling and Marketing Expense [Member] Aggregate Grant Date Fair Value of Equity Award Amounts Reported in Summary Compensation Table Aggregate Grant Date Fair Value of Equity Award Amounts Reported in Summary Compensation Table [Member] Schedule of Allowance for Credit Loss Accounts Receivable, Allowance for Credit Loss [Table Text Block] Loss contingency accrual amount Loss Contingency Accrual Accrued liabilities Accrued Liabilities, Current Potentially dilutive shares (in shares) Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount Schedule of Remaining Performance Obligations Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Table Text Block] Cash, cash equivalents and restricted cash, beginning of year Cash, cash equivalents and restricted cash, end of period Total cash, cash equivalents, and restricted cash Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents Net accretion of discount on investments Accretion (Amortization) of Discounts and Premiums, Investments Current assets: Assets, Current [Abstract] Accounts receivable, allowance for credit loss Balance as of beginning of period Balance as of end of period Accounts Receivable, Allowance for Credit Loss Fair Value of Financial Instruments Fair Value of Financial Instruments, Policy [Policy Text Block] Forgone Recovery due to Disqualification of Tax Benefits, Amount Forgone Recovery due to Disqualification of Tax Benefits, Amount Product and Service [Domain] Product and Service [Domain] Stock options Outstanding stock options Share-Based Payment Arrangement, Option [Member] RSUs vested, weighted average grant date fair value (in dollars per share) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period, Weighted Average Grant Date Fair Value Depreciation expense Depreciation Fair Value Disclosures [Abstract] Antidilutive Security, Excluded EPS Calculation [Table] Antidilutive Security, Excluded EPS Calculation [Table] Stock-based compensation capitalized to internal-use software Stock-Based Compensation Capitalized To Internal-Use Software Stock-Based Compensation Capitalized To Internal-Use Software Working capital Working Capital Working Capital Preferred stock, outstanding (in shares) Preferred Stock, Shares Outstanding Security Exchange Name Security Exchange Name Award Type [Axis] Award Type [Axis] Inventory Inventory, Gross Number of RSUs Outstanding Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [Roll Forward] Total energy storage systems, net Property, Plant and Equipment, Net Total liabilities Liabilities Capped Call Options Capped Call Options [Member] Capped Call Options Non-controlling interests Equity, Attributable to Noncontrolling Interest Convertible Notes Convertible Debt [Member] Common stock, par value (in dollars per share) Common Stock, Par or Stated Value Per Share Forgone Recovery, Explanation of Impracticability Forgone Recovery, Explanation of Impracticability [Text Block] Research and development Research and Development Expense Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table] Schedule of Share-Based Compensation Arrangements by Share-Based Payment Award [Table] Expiration Date Trading Arrangement Expiration Date INVESTING ACTIVITIES Net Cash Provided by (Used in) Investing Activities [Abstract] Matthew Tappin [Member] Matthew Tappin Goodwill and Intangible Assets Disclosure [Abstract] Total Shareholder Return Amount Total Shareholder Return Amount Common stock, issued (in shares) Common Stock, Shares, Issued Equity Awards Adjustments, Footnote Equity Awards Adjustments, Footnote [Text Block] Concentration risk, percentage Concentration Risk, Percentage Insider Trading Policies and Procedures Adopted Insider Trading Policies and Procedures Adopted [Flag] Less: accumulated depreciation Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment Subsequent Event [Line Items] Subsequent Event [Line Items] Total energy storage systems, gross Property, Plant and Equipment, Gross Debt Instrument [Line Items] Debt Instrument [Line Items] Named Executive Officers, Footnote Named Executive Officers, Footnote [Text Block] Research and development Research and Development Expense [Member] Weighted- Average Exercise Price Per Share Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Weighted Average Exercise Price [Abstract] Common stock, authorized (in shares) Common Stock, Shares Authorized Basis of Presentation Basis of Accounting, Policy [Policy Text Block] Weighted-average shares used in computing net loss per share to common stockholders, diluted (in shares) Weighted-average number of shares outstanding used to compute net loss per share attributable to common stockholders, diluted (in shares) Weighted Average Number of Shares Outstanding, Diluted Expected restructuring charges Restructuring and Related Cost, Expected Cost Other comprehensive loss: Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent [Abstract] MNPI Disclosure Timed for Compensation Value MNPI Disclosure Timed for Compensation Value [Flag] Financing obligation, noncurrent Loans Payable, Noncurrent Numerator: Net Income (Loss) Available to Common Stockholders, Basic [Abstract] Long-term Debt, Type [Axis] Long-Term Debt, Type [Axis] Total Stem’s stockholders’ (deficit) equity Equity, Attributable to Parent Interest expense Interest Expense, Nonoperating ENERGY STORAGE SYSTEMS, NET Property, Plant and Equipment Disclosure [Text Block] Concentration Risk Type [Domain] Concentration Risk Type [Domain] 2021 Equity Incentive Plan 2021 Equity Incentive Plan [Member] 2021 Equity Incentive Plan Accounts payable Accounts Payable Fair Value, Recurring Fair Value, Recurring [Member] Accounts receivable, net of allowances of $9,744 and $9,499 as of March 31, 2025 and December 31, 2024, respectively Accounts receivable, net of allowances Accounts Receivable, after Allowance for Credit Loss, Current Conversion price (in dollars per share) Debt Instrument, Convertible, Conversion Price Options granted (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Grants in Period, Gross Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] Net carrying amount Long-Term Debt Pension Adjustments Prior Service Cost Pension Adjustments Prior Service Cost [Member] Document Fiscal Period Focus Document Fiscal Period Focus All Executive Categories All Executive Categories [Member] Changed Peer Group, Footnote Changed Peer Group, Footnote [Text Block] Weighted average remaining contractual life, options outstanding Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Weighted Average Remaining Contractual Term ASSETS Assets Assets [Abstract] Fair Value, by Balance Sheet Grouping [Table] Fair Value, by Balance Sheet Grouping [Table] Document Type Document Type Effective interest percentage Debt Instrument, Interest Rate, Effective Percentage Derivative Contract [Domain] Derivative Contract [Domain] Pension Benefits Adjustments, Footnote Pension Benefits Adjustments, Footnote [Text Block] Schedule of Segment Reporting Information Schedule of Segment Reporting Information, by Segment [Table Text Block] Total Shareholder Return Vs Peer Group Total Shareholder Return Vs Peer Group [Text Block] Number of customers Number of Customers Number of Customers Contractual interest expense Interest Expense, Debt, Excluding Amortization RSUs vested (in shares) RSUs vested (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period Schedule of Contract Balances Contract with Customer, Contract Asset, Contract Liability, and Receivable [Table Text Block] Subsequent Event [Table] Subsequent Event [Table] Maximum Maximum [Member] Beginning balance Ending balance Contract with Customer, Liability Equity Valuation Assumption Difference, Footnote Equity Valuation Assumption Difference, Footnote [Text Block] Antidilutive Securities [Axis] Antidilutive Securities [Axis] Rest of the world Non-US [Member] Accounts payable Accounts Payable, Current Liabilities Liabilities [Abstract] Accounting Policies [Abstract] Revenue Revenues [Abstract] Current Fiscal Year End Date Current Fiscal Year End Date Statistical Measurement [Axis] Statistical Measurement [Axis] PEO Name PEO Name Non-Rule 10b5-1 Arrangement Terminated Non-Rule 10b5-1 Arrangement Terminated [Flag] Loss before provision for income taxes Loss before provision for income taxes Income (Loss) from Continuing Operations before Income Taxes, Noncontrolling Interest Non-PEO NEO Average Total Compensation Amount Non-PEO NEO Average Total Compensation Amount Award Type [Domain] Award Type [Domain] Name Outstanding Recovery, Individual Name Disaggregation of Revenue [Line Items] Disaggregation of Revenue [Line Items] Country Region Country Region Schedule of Potentially Dilutive Shares Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share [Table Text Block] Compensation Actually Paid vs. Company Selected Measure Compensation Actually Paid vs. Company Selected Measure [Text Block] Revision of Prior Period [Axis] Revision of Prior Period [Axis] Non-PEO NEO Non-PEO NEO [Member] Additional Paid-In Capital Additional Paid-in Capital [Member] Award Timing Predetermined Award Timing Predetermined [Flag] Subsequent Event Type [Domain] Subsequent Event Type [Domain] Redemption price, percentage Debt Instrument, Redemption Price, Percentage Customer relationships Customer Relationships [Member] Unbilled receivables, current Unbilled Receivables, Current New Accounting Standards New Accounting Pronouncements, Policy [Policy Text Block] Net loss per share attributable to common stockholders, diluted (in dollars per share) Earnings Per Share, Diluted Finite-Lived Intangible Assets by Major Class [Axis] Finite-Lived Intangible Assets by Major Class [Axis] Less: Accumulated amortization Finite-Lived Intangible Assets, Accumulated Amortization Contract With Customer, Liability [Roll Forward] Contract With Customer, Liability [Roll Forward] Contract With Customer, Liability Non-cash lease expense Operating Lease, Right-of-Use Asset, Periodic Reduction Name Measure Name Entity Interactive Data Current Entity Interactive Data Current Type of Restructuring [Domain] Type of Restructuring [Domain] Deferred revenue Increase (Decrease) in Contract with Customer, Liability Upfront or annual incentive payments received Contract with Customer, Liability, Upfront Or Annual Incentive Payments Received Contract with Customer, Liability, Upfront Or Annual Incentive Payments Received Restatement does not require Recovery Restatement Does Not Require Recovery [Text Block] Weighted average remaining contractual life, options vested and exercisable Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Vested and Expected to Vest, Exercisable, Weighted Average Remaining Contractual Term Write-offs, recoveries and other charges against allowance Accounts Receivable, Write-Offs, Recoveries and Other Charges Accounts Receivable, Write-Offs, Recoveries and Other Charges Number of operating segments Number of Operating Segments Preferred stock, issued (in shares) Preferred Stock, Shares Issued Customer [Axis] Customer [Axis] Disaggregation of Revenue [Table] Disaggregation of Revenue [Table] Employee Severance Employee Severance [Member] Statement of Financial Position [Abstract] Statement of Financial Position [Abstract] Revenue recognized related to deferred revenue generated during the period Contract with Customer, Liability, Revenue Recognized During The Period Contract with Customer, Liability, Revenue Recognized During The Period Stock-based compensation Share-Based Payment Arrangement, Noncash Expense Sales and marketing Selling and Marketing Expense Net loss Net loss Net loss Net loss Net loss attributable to common stockholders Net Income (Loss), Including Portion Attributable to Noncontrolling Interest Provision for income taxes Provision for income taxes Provision for income taxes Income Tax Expense (Benefit) Other expense, net: Nonoperating Income (Expense) [Abstract] Fixed interest rate, annual Debt Instrument, Interest Rate, Stated Percentage Accounts Receivable, Allowance for Credit Loss [Roll Forward] Accounts Receivable, Allowance for Credit Loss [Roll Forward] SUPPLEMENTAL DISCLOSURE OF CASH FLOW INFORMATION Supplemental Cash Flow Information [Abstract] Weighted average period for recognition of stock-based compensation expense Share-Based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Period for Recognition Revenue Revenue from Contract with Customer, Excluding Assessed Tax Total other expense, net Nonoperating Income (Expense) Services and other revenue Service [Member] Statement of Comprehensive Income [Abstract] Concentration Risk Benchmark [Domain] Concentration Risk Benchmark [Domain] Effective tax rate Effective Income Tax Rate Reconciliation, Percent Net cash (used in) provided by investing activities Net Cash Provided by (Used in) Investing Activities Loss from operations Operating Income (Loss) Hardware revenue Hardware [Member] Hardware Number of reportable segments Number of Reportable Segments Total liabilities and stockholders’ (deficit) equity Liabilities and Equity SUBSEQUENT EVENTS Subsequent Events [Text Block] Rule 10b5-1 Arrangement Terminated Rule 10b5-1 Arrangement Terminated [Flag] All Adjustments to Compensation All Adjustments to Compensation [Member] Fair Value Hierarchy and NAV [Axis] Fair Value Hierarchy and NAV [Axis] Accrued payroll Employee-related Liabilities, Current Additional paid-in capital Additional Paid in Capital Commitments and Contingencies Disclosure [Abstract] Energy storage systems placed into service Energy Storage Systems Placed Into Service [Member] Energy Storage Systems Placed Into Service Finite-Lived Intangible Assets, Major Class Name [Domain] Finite-Lived Intangible Assets, Major Class Name [Domain] Underlying Security Market Price Change Underlying Security Market Price Change, Percent Individual: Individual [Axis] Issuance of common stock upon release of restricted stock units Stock Issued During Period, Value, Restricted Stock Award, Net of Forfeitures Accumulated Other Comprehensive (Loss) Income AOCI Attributable to Parent [Member] Period expected to be recognized as revenue Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Period Reportable Segment Reportable Segment [Member] Reportable Segment Long-term Debt, Type [Domain] Long-Term Debt, Type [Domain] Product and Service [Axis] Product and Service [Axis] Entity Address, State or Province Entity Address, State or Province Property, Plant and Equipment [Line Items] Property, Plant and Equipment [Line Items] Statement [Line Items] Statement [Line Items] Schedule of Restricted Stock Activity Schedule of Unvested Restricted Stock Units Roll Forward [Table Text Block] Erroneous Compensation Analysis Erroneous Compensation Analysis [Text Block] Operating expenses: Operating Expenses [Abstract] Outstanding 2030 Convertible Notes (if converted) Outstanding 2030 Convertible Notes [Member] Outstanding 2030 Convertible Notes Schedule of Energy Storage Systems, Net Property, Plant and Equipment [Table Text Block] Compensation Actually Paid vs. Total Shareholder Return Compensation Actually Paid vs. Total Shareholder Return [Text Block] RSUs outstanding, weighted average grant date fair value, beginning (in dollars per share) RSUs outstanding, weighted average grant date fair value, ending (in dollars per share) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value LIABILITIES AND STOCKHOLDERS’ (DEFICIT) EQUITY Liabilities and Equity [Abstract] Internally developed software Software Development [Member] Unamortized Initial Purchasers' debt discount and debt issuance cost Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net Energy storage systems, net Contract with Customer, Asset, after Allowance for Credit Loss, Noncurrent Minimum Minimum [Member] Restatement Determination Date Restatement Determination Date Cost of capped calls Derivative, Capped Call Transaction Costs Derivative, Capped Call Transaction Costs Adoption Date Trading Arrangement Adoption Date Pay vs Performance Disclosure Pay vs Performance Disclosure [Table] Deferred revenue, noncurrent Contract with Customer, Liability, Noncurrent Purchase of energy storage systems Payments to Acquire Machinery and Equipment Property, Plant and Equipment [Table] Property, Plant and Equipment [Table] Options outstanding, weighted average exercise price (in dollars per share) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Weighted Average Exercise Price Concentration Risk [Table] Concentration Risk [Table] Operating lease right-of-use assets Operating Lease, Right-of-Use Asset Erroneously Awarded Compensation Recovery Erroneously Awarded Compensation Recovery [Table] Options outstanding, beginning of period (in shares) Options outstanding, end of period (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Number Provision for expected credit losses Accounts Receivable, Credit Loss Expense (Reversal) Variable Interest Entity [Line Items] Variable Interest Entity [Line Items] Segments [Axis] Segments [Axis] Change in Fair Value as of Vesting Date of Prior Year Equity Awards Vested in Covered Year Change in Fair Value as of Vesting Date of Prior Year Equity Awards Vested in Covered Year [Member] Derivative Instrument [Axis] Derivative Instrument [Axis] Property, Plant and Equipment [Abstract] Outstanding principal Long-Term Debt, Gross Exercise Price Award Exercise Price NET LOSS PER SHARE Earnings Per Share [Text Block] Arrangement Duration Trading Arrangement Duration Subsequent Event Subsequent Event [Member] Options forfeited and cancelled, weighted average exercise price (in dollars per share) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Forfeitures and Cancellations in Period, Weighted Average Exercise Price Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Forfeitures and Cancellations in Period, Weighted Average Exercise Price Schedule of Variable Interest Entities [Table] Variable Interest Entity [Table] Schedule of Convertible Debt Convertible Debt [Table Text Block] Stockholders’ (deficit) equity: Equity, Attributable to Parent [Abstract] RSUs granted, weighted average grant date fair value (in dollars per share) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value Peer Group Issuers, Footnote Peer Group Issuers, Footnote [Text Block] Segments [Domain] Segments [Domain] Outstanding 2028 Convertible Notes (if converted) Outstanding 2028 Convertible Notes [Member] Outstanding 2028 Convertible Notes Material Terms of Trading Arrangement Material Terms of Trading Arrangement [Text Block] Reduction of global workforce, percentage Restructuring and Related Cost, Expected Number of Positions Eliminated, Percent Restructuring and Related Cost, Expected Number of Positions Eliminated, Percent Term Debt Instrument, Term All Individuals All Individuals [Member] SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES Basis of Presentation and Significant Accounting Policies [Text Block] PEO PEO [Member] Income Tax Disclosure [Abstract] Name Trading Arrangement, Individual Name Other income, net Other Nonoperating Income (Expense) Statement of Stockholders' Equity [Abstract] Intangible assets, net Total intangible assets, net Intangible Assets, Net (Excluding Goodwill) Long-Lived Tangible Asset [Axis] Long-Lived Tangible Asset [Axis] Remaining unrecognized stock-based compensation expense for RSUs Share-Based Payment Arrangement, Nonvested Award, Excluding Option, Cost Not yet Recognized, Amount Options vested and exercisable (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Vested and Expected to Vest, Exercisable, Number Capital expenditures on internally-developed software Payments to Develop Software Schedule of Significant Customers Schedules of Concentration of Risk, by Risk Factor [Table Text Block] Awards Close in Time to MNPI Disclosures, Table Awards Close in Time to MNPI Disclosures [Table Text Block] Assets: Assets, Fair Value Disclosure [Abstract] Prior Year End Fair Value of Equity Awards Granted in Any Prior Year that Fail to Meet Applicable Vesting Conditions During Covered Year Prior Year End Fair Value of Equity Awards Granted in Any Prior Year that Fail to Meet Applicable Vesting Conditions During Covered Year [Member] Beginning balance (in shares) Ending balance (in shares) Shares, Outstanding Cash equivalents Cash and Cash Equivalents, Fair Value Disclosure Aggregate Erroneous Compensation Amount Aggregate Erroneous Compensation Amount Local Phone Number Local Phone Number Intangible assets Intangible Assets, Gross (Excluding Goodwill) Aggregate Erroneous Compensation Not Yet Determined Aggregate Erroneous Compensation Not Yet Determined [Text Block] Total operating expenses Operating Expenses Share-based Compensation Arrangement by Share-based Payment Award, Options, Additional Disclosures [Abstract] Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Additional Disclosures [Abstract] Net book value of the billed and unbilled receivable Contract with Customer, Receivable, after Allowance for Credit Loss Other assets Increase (Decrease) in Other Operating Assets Changes in operating assets and liabilities: Increase (Decrease) in Operating Capital [Abstract] Reclassification from deferred costs with suppliers Increase (Decrease) In Deferred Costs With Suppliers Increase (Decrease) In Deferred Costs With Suppliers PEO Total Compensation Amount PEO Total Compensation Amount Long-Lived Tangible Asset [Domain] Long-Lived Tangible Asset [Domain] Statement of Income Location, Balance [Axis] Statement of Income Location, Balance [Axis] COMMITMENTS AND CONTINGENCIES Commitments and Contingencies Disclosure [Text Block] Issuance of fully vested restricted stock units for employee bonuses Stock Issued During Period, Value, Issued for Services Debt Disclosure [Abstract] Common Stock Common Stock [Member] Measure: Measure [Axis] Preferred stock, authorized (in shares) Preferred Stock, Shares Authorized Forgone Recovery due to Expense of Enforcement, Amount Forgone Recovery due to Expense of Enforcement, Amount Debt Instrument, Redemption, Period One Debt Instrument, Redemption, Period One [Member] Customer C Customer C [Member] Customer C Entity Emerging Growth Company Entity Emerging Growth Company Initial strike price (in dollars per share) Derivative, Initial Strike Price Derivative, Initial Strike Price Segment Reporting [Abstract] Entity Central Index Key Entity Central Index Key Other segment expenses, net Segment Reporting, Other Segment Item, Amount General and administrative General and Administrative Expense [Member] Significant Customers Major Customers, Policy [Policy Text Block] Non-GAAP Measure Description Non-GAAP Measure Description [Text Block] Non-PEO NEO Average Compensation Actually Paid Amount Non-PEO NEO Average Compensation Actually Paid Amount Award Timing, How MNPI Considered Award Timing, How MNPI Considered [Text Block] Equity Component [Domain] Equity Component [Domain] Preferred stock, par value (in dollars per share) Preferred Stock, Par or Stated Value Per Share SEGMENT INFORMATION Segment Reporting Disclosure [Text Block] RECONCILIATION OF CASH, CASH EQUIVALENTS, AND RESTRICTED CASH WITHIN THE UNAUDITED CONDENSED CONSOLIDATED BALANCE SHEETS TO THE AMOUNTS SHOWN IN THE STATEMENTS OF CASH FLOWS ABOVE: Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents [Abstract] Additional 402(v) Disclosure Additional 402(v) Disclosure [Text Block] Stock-based compensation APIC, Share-Based Payment Arrangement, Increase for Cost Recognition Entity Shell Company Entity Shell Company Entity Incorporation, State or Country Code Entity Incorporation, State or Country Code Title Trading Arrangement, Individual Title Consolidated Entities [Axis] Consolidated Entities [Axis] Statement [Table] Statement [Table] Total interest expense Interest Expense, Debt Customer A Customer A [Member] Customer A Measurement Frequency [Domain] Measurement Frequency [Domain] Schedule of Variable Interest Entities Schedule of Variable Interest Entities [Table Text Block] Variable Interest Entities Consolidation, Variable Interest Entity, Policy [Policy Text Block] City Area Code City Area Code Current liabilities: Liabilities, Current [Abstract] Cash paid for interest Interest Paid, Excluding Capitalized Interest, Operating Activities Insider Trading Policies and Procedures Not Adopted Insider Trading Policies and Procedures Not Adopted [Text Block] Level 1 Fair Value, Inputs, Level 1 [Member] Concentration Risk Benchmark [Axis] Concentration Risk Benchmark [Axis] Proceeds from employee equity transactions to be remitted to tax authorities, net Proceeds From Employee Equity Transactions Proceeds From Employee Equity Transactions Total current assets Assets, Current Statement of Cash Flows [Abstract] NON-CASH INVESTING AND FINANCING ACTIVITIES Noncash Investing and Financing Items [Abstract] Revision of Prior Period [Domain] Revision of Prior Period [Domain] Schedule of Long-term Debt Instruments [Table] Schedule of Long-Term Debt Instruments [Table] Schedule of Segment Reporting Information, by Segment [Table] Schedule of Segment Reporting Information, by Segment [Table] Weighted-Average Grant Date Fair Value Per Share Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value [Abstract] Subsequent Event Type [Axis] Subsequent Event Type [Axis] Percent Expected to be Recognized as Revenue Revenue, Remaining Performance Obligation, Percentage INCOME TAXES Income Tax Disclosure [Text Block] Earnings Per Share [Abstract] Accumulated deficit Accumulated deficit Retained Earnings (Accumulated Deficit) Financing obligation, current portion Loans Payable, Current Add: Currency translation adjustment Intangible Assets, Foreign Currency Translation Adjustment Intangible Assets, Foreign Currency Translation Adjustment Revenue Revenue from Contract with Customer Benchmark [Member] Inventory Increase (Decrease) in Inventories Debt issuance costs Debt Issuance Costs, Gross General and administrative General and Administrative Expense Contribution paid Payments to Acquire Interest in Joint Venture Organization, Consolidation and Presentation of Financial Statements [Abstract] Aggregate Available Trading Arrangement, Securities Aggregate Available Amount Equity Awards Adjustments Equity Awards Adjustments [Member] Net cash (used in) provided by financing activities Net Cash Provided by (Used in) Financing Activities Underlying Securities Award Underlying Securities Amount Cap price (in dollars per share) Derivative, Cap Price Per Share Derivative, Cap Price Per Share Amendment Flag Amendment Flag Options forfeited and cancelled (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Forfeitures and Cancellations in Period Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Forfeitures and Cancellations in Period Entity Registrant Name Entity Registrant Name Adjustment to Non-PEO NEO Compensation Footnote Adjustment to Non-PEO NEO Compensation Footnote [Text Block] Stock Appreciation Rights (SARs) Stock Appreciation Rights (SARs) [Member] Depreciation and amortization expense Depreciation, Depletion and Amortization Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Table] Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Table] Gross profit (loss) Gross Profit INTANGIBLE ASSETS, NET Intangible Assets Disclosure [Text Block] Foreign currency translation adjustment Foreign currency translation adjustments Other Comprehensive Income (Loss), Foreign Currency Transaction and Translation Adjustment, Net of Tax, Portion Attributable to Parent Upfront payments received from customers Contract with Customer, Liability, Upfront Payments Received From Customers Contract with Customer, Liability, Upfront Payments Received From Customers Fair Value as of Grant Date Award Grant Date Fair Value Customer Concentration Risk Customer Concentration Risk [Member] Subsequent Events [Abstract] Level 2 Fair Value, Inputs, Level 2 [Member] CONVERTIBLE NOTES Debt Disclosure [Text Block] Fair Value Hierarchy and NAV [Domain] Fair Value Hierarchy and NAV [Domain] Geographical [Domain] Geographical [Domain] Recovery of Erroneously Awarded Compensation Disclosure [Line Items] Face amount Debt Instrument, Face Amount Schedule of Disaggregation of Revenue Disaggregation of Revenue [Table Text Block] Entity Address, Postal Zip Code Entity Address, Postal Zip Code Schedule of Stock-based Compensation Expense Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Table Text Block] Principles of Consolidation Consolidation, Policy [Policy Text Block] Restatement Determination Date: Restatement Determination Date [Axis] Title of 12(b) Security Title of 12(b) Security Concentration Risk Type [Axis] Concentration Risk Type [Axis] Common stock, $0.0001 par value; 500,000,000 shares authorized as of March 31, 2025 and December 31, 2024; 166,352,779 and 162,797,684 issued and outstanding as of March 31, 2025 and December 31, 2024, respectively Common Stock, Value, Issued 2030 Convertible Notes 2030 Convertible Notes [Member] 2030 Convertible Notes Share-Based Payment Arrangement [Abstract] Cash and cash equivalents Cash and Cash Equivalents, at Carrying Value Year-over-Year Change in Fair Value of Equity Awards Granted in Prior Years That are Outstanding and Unvested Year-over-Year Change in Fair Value of Equity Awards Granted in Prior Years That are Outstanding and Unvested [Member] Aggregate intrinsic value, options vested and exercisable Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Vested and Expected to Vest, Exercisable, Aggregate Intrinsic Value Threshold trading days Debt Instrument, Convertible, Threshold Trading Days RSUs forfeited, weighted average grant date fair value (in dollars per share) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Forfeitures, Weighted Average Grant Date Fair Value Gain on extinguishment of debt, net Gain (Loss) on Extinguishment of Debt FINANCING ACTIVITIES Net Cash Provided by (Used in) Financing Activities [Abstract] Convertible notes, noncurrent Convertible Debt, Noncurrent Year-end Fair Value of Equity Awards Granted in Covered Year that are Outstanding and Unvested Year-end Fair Value of Equity Awards Granted in Covered Year that are Outstanding and Unvested [Member] Concentration Risk [Line Items] Concentration Risk [Line Items] Preferred stock, $0.0001 par value; 1,000,000 shares authorized as of March 31, 2025 and December 31, 2024; zero shares issued and outstanding as of March 31, 2025 and December 31, 2024 Preferred Stock, Value, Issued Number of Options Outstanding Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding [Roll Forward] Cash and Cash Equivalents [Domain] Cash and Cash Equivalents [Domain] Net loss per share attributable to common stockholders, basic (in dollars per share) Earnings Per Share, Basic Purchase of property and equipment Payments to Acquire Other Property, Plant, and Equipment Accounts payable Increase (Decrease) in Accounts Payable Adjustment To PEO Compensation, Footnote Adjustment To PEO Compensation, Footnote [Text Block] Award Timing MNPI Disclosure Award Timing MNPI Disclosure [Text Block] Purchases of energy storage systems in accounts payable Capital Expenditures Incurred but Not yet Paid Aggregate Pension Adjustments Service Cost Aggregate Pension Adjustments Service Cost [Member] Amortization Amortization Contract origination costs, net Increase (Decrease) In Capitalized Contract Costs Increase (Decrease) In Capitalized Contract Costs Compensation Actually Paid vs. Other Measure Compensation Actually Paid vs. Other Measure [Text Block] Total current liabilities Liabilities, Current Vesting Date Fair Value of Equity Awards Granted and Vested in Covered Year Vesting Date Fair Value of Equity Awards Granted and Vested in Covered Year [Member] Remaining unrecognized stock-based compensation expense for stock options Share-Based Payment Arrangement, Nonvested Award, Option, Cost Not yet Recognized, Amount Total assets Assets Concentration of Credit Risk and Other Uncertainties Concentration Risk, Credit Risk, Policy [Policy Text Block] RSUs granted (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period Other liabilities Other Liabilities, Noncurrent Forgone Recovery due to Violation of Home Country Law, Amount Forgone Recovery due to Violation of Home Country Law, Amount Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Line Items] Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Line Items] Commitments and contingencies (Note 12) Commitments and Contingencies 2028 Convertible Notes 2028 Convertible Notes [Member] 2028 Convertible Notes Customer D Customer D [Member] Customer D Termination Date Trading Arrangement Termination Date BUSINESS Nature of Operations [Text Block] Conversion price, percentage Debt Instrument, Convertible, Threshold Percentage of Stock Price Trigger STOCK-BASED COMPENSATION Share-Based Payment Arrangement [Text Block] Entity Address, City or Town Entity Address, City or Town Issuance of fully vested restricted stock for employee bonuses (in shares) Stock Issued During Period, Shares, Issued for Services Debt Instrument [Axis] Debt Instrument [Axis] Schedule of Activity Under the Plan Share-Based Payment Arrangement, Option, Activity [Table Text Block] Net Income (Loss) Net Income (Loss) Attributable to Parent Total stock-based compensation expense Share-Based Payment Arrangement, Expense Convertible debt Convertible Debt, Fair Value Disclosures Trading Arrangement: Trading Arrangement [Axis] Schedule of Financial Instruments Measured at Fair Value Fair Value, by Balance Sheet Grouping [Table Text Block] Options granted, weighted average exercise price (in dollars per share) Share-Based Compensation Arrangements by Share-Based Payment Award, Options, Grants in Period, Weighted Average Exercise Price Project assets Increase (Decrease) In Project Assets Increase (Decrease) In Project Assets Pay vs Performance Disclosure, Table Pay vs Performance [Table Text Block] RSUs forfeited (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Forfeited in Period Schedule of Intangible Assets Schedule of Finite-Lived Intangible Assets [Table Text Block] Equity Awards Adjustments, Excluding Value Reported in Compensation Table Equity Awards Adjustments, Excluding Value Reported in the Compensation Table [Member] Dividends or Other Earnings Paid on Equity Awards not Otherwise Reflected in Total Compensation for Covered Year Dividends or Other Earnings Paid on Equity Awards not Otherwise Reflected in Total Compensation for Covered Year [Member] Entity File Number Entity File Number Cash and Cash Equivalents [Axis] Cash and Cash Equivalents [Axis] Consolidated Entities [Domain] Consolidated Entities [Domain] REVENUE Revenue from Contract with Customer [Text Block] Document Fiscal Year Focus Document Fiscal Year Focus Non-controlling Interests Noncontrolling Interest [Member] Income Statement [Abstract] Entity Address, Address Line One Entity Address, Address Line One Debt extinguishment amount Extinguishment of Debt, Amount Entity Address, Address Line Two Entity Address, Address Line Two Debt Instrument, Name [Domain] Debt Instrument, Name [Domain] Effect of exchange rate changes on cash, cash equivalents and restricted cash Effect of Exchange Rate on Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Continuing Operations Denominator: Weighted Average Number of Shares Outstanding, Basic [Abstract] Total financial assets Assets, Fair Value Disclosure Accrued expenses and other liabilities Increase (Decrease) in Accrued Liabilities and Other Operating Liabilities Name Forgone Recovery, Individual Name Document Period End Date Document Period End Date Other Other Noncash Income (Expense) Award Timing MNPI Considered Award Timing MNPI Considered [Flag] RSUs outstanding, beginning of period (in shares) RSUs outstanding, ending of period (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Number Revenue reduction Increase (Decrease) in Deferred Revenue Insider Trading Arrangements [Line Items] Outstanding Aggregate Erroneous Compensation Amount Outstanding Aggregate Erroneous Compensation Amount Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] Reclassification to other current assets Increase (Decrease) in Other Current Assets PEO Actually Paid Compensation Amount PEO Actually Paid Compensation Amount Cost of Revenue Cost of revenue Cost of Revenue Revenue recognized related to amounts that were included in beginning balance of deferred revenue Contract with Customer, Liability, Revenue Recognized Adjustment to Compensation: Adjustment to Compensation [Axis] Accounts Receivable Accounts Receivable [Member] Reclassifications Reclassification, Comparability Adjustment [Policy Text Block] Document Transition Report Document Transition Report Document Quarterly Report Document Quarterly Report Customer [Domain] Customer [Domain] Accumulated other comprehensive income (loss) Accumulated Other Comprehensive Income (Loss), Net of Tax Entity Current Reporting Status Entity Current Reporting Status Accumulated Deficit Retained Earnings [Member] Restricted cash included in other noncurrent assets Restricted Cash and Cash Equivalents Pension Adjustments Service Cost Pension Adjustments Service Cost [Member] Weighted-average shares used in computing net loss per share to common stockholders, basic (in shares) Weighted Average Number of Shares Outstanding, Basic Stock Price or TSR Estimation Method Stock Price or TSR Estimation Method [Text Block] Total stockholders’ (deficit) equity Beginning balance Ending balance Equity, Including Portion Attributable to Noncontrolling Interest RSU Outstanding RSUs Restricted Stock Units (RSUs) [Member] Non-cash interest expense, including interest expenses associated with debt issuance costs Amortization of debt discount and debt issuance cost Amortization of Debt Issuance Costs and Discounts Increase (Decrease) in Stockholders' Equity [Roll Forward] Increase (Decrease) in Stockholders' Equity [Roll Forward] Executive Category: Executive Category [Axis] Name Awards Close in Time to MNPI Disclosures, Individual Name Schedule of Provision for Income Taxes and Effective Tax Rates Schedule of Components of Income Tax Expense (Benefit) [Table Text Block] Repayment of financing obligations Repayments of Other Long-Term Debt Entity Filer Category Entity Filer Category Remaining performance obligations Total Remaining Performance Obligations Revenue, Remaining Performance Obligation, Amount Statement of Income Location, Balance [Domain] Statement of Income Location, Balance [Domain] Cost of Revenue Cost of Revenue [Abstract] Company Selected Measure Name Company Selected Measure Name