v3.26.1
Stockholders' Equity - Schedule of Stock Based Compensation Cost from Stock Options, RSUs and ESPP (Details) - USD ($)
$ in Thousands
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2024
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items]      
Total amount charged to operating loss $ 229,778 $ 242,532 $ 248,375
Property and equipment (capitalized internal-use software) 22,654 13,881 8,432
Total stock-based compensation 252,432 256,413 256,807
Income Statement Location: us-gaap:CostOfGoodsAndServiceExcludingDepreciationDepletionAndAmortization      
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items]      
Total amount charged to operating loss 8,554 9,627 9,309
Income Statement Location: us-gaap:GeneralAndAdministrativeExpense      
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items]      
Total amount charged to operating loss 78,082 82,981 81,209
Income Statement Location: us-gaap:ResearchAndDevelopmentExpense      
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items]      
Total amount charged to operating loss 92,456 107,603 103,382
Income Statement Location: us-gaap:SellingAndMarketingExpense      
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items]      
Total amount charged to operating loss 32,752 39,992 49,070
Income Statement Location: bill:RestructuringChargesAndOtherShareBasedCompensationExpense      
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items]      
Total amount charged to operating loss 15,485 0 3,574
Subscription and transaction fees | Income Statement Location: us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax      
Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items]      
Total amount charged to operating loss $ 2,449 $ 2,329 $ 1,831