v3.20.1
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Jan. 31, 2020
Jan. 31, 2019
Jan. 31, 2018
Net Cash Provided by (Used in) Operating Activities [Abstract]      
Net loss $ (141,779) $ (140,077) $ (135,490)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:      
Depreciation and amortization 23,026 14,815 7,111
Loss on disposal of fixed assets 0 191 0
Amortization of intangible assets 487 583 628
Amortization of deferred contract acquisition costs 35,459 28,642 12,481
Change in fair value of redeemable convertible preferred stock warrant liability 6,022 3,576 264
Provision for bad debts 556 551 400
Stock-based compensation expense 79,940 20,505 12,343
Accretion of marketable securities purchased at a discount (1,247) (1,152) 0
Non-cash interest expense 435 98 1,036
Other non-cash charges (427) 0 0
Changes in operating assets and liabilities, net of business combinations      
Accounts receivable (73,067) (33,413) (35,268)
Deferred contract acquisition costs (86,594) (45,073) (25,338)
Prepaid expenses and other assets (43,467) (5,819) (12,718)
Accounts payable (6,570) (2,403) 7,136
Accrued expenses and other current liabilities 9,173 3,564 16,603
Accrued payroll and benefits 17,526 971 9,005
Deferred revenue 280,768 131,117 82,169
Other liabilities, noncurrent (298) 356 872
Net cash provided by (used in) operating activities 99,943 (22,968) (58,766)
Net Cash Provided by (Used in) Investing Activities [Abstract]      
Purchases of property and equipment (80,198) (35,851) (22,906)
Capitalized internal-use software (7,289) (6,794) (6,542)
Purchase of strategic investments (1,000) 0 0
Business combinations, net of cash acquired 0 0 (6,471)
Acquisition of intangible assets 0 0 (307)
Purchases of marketable securities (779,701) (199,335) (9,559)
Proceeds from sales of marketable securities 9,581 0 0
Maturities of marketable securities 228,976 99,950 17,455
Net cash used in investing activities (629,631) (142,030) (28,330)
Net Cash Provided by (Used in) Financing Activities [Abstract]      
Proceeds from the issuance of common stock upon initial public offering, net of underwriting discounts 665,092 0 0
Proceeds from issuance of redeemable convertible preferred stock, net of issuance costs 0 206,896 130,435
Repayment of loan payable 0 (6,158) (19,324)
Proceeds from revolving line of credit 0 10,000 10,000
Repayment of revolving line of credit 0 (20,000) 0
Issuance of notes receivable to related parties 0 0 (370)
Repayment of notes receivable from related parties 0 198 2,389
Payments of contingent consideration 0 (242) 0
Payments of indemnity holdback 0 (1,887) 0
Repurchase of stock options 0 (2,330) 0
Payments of deferred offering costs (5,872) 0 0
Proceeds from issuance of common stock upon exercise of stock options 21,512 3,912 3,701
Proceeds from the issuance of common stock upon exercise of early exercisable stock options 10,264 0 0
Proceeds from issuance of common stock under the employee stock purchase plan 12,365 0 0
Settlement related to stockholder short-swing trade profit 2,283 0 0
Capital contributions from non-controlling interest holders 500 0 0
Net cash provided by financing activities 706,144 190,389 126,831
Effect of foreign exchange rates on cash and cash equivalents (66) (162) 618
Net increase in cash and cash equivalents 176,390 25,229 40,353
Cash and cash equivalents, beginning of period 88,408 63,179 22,826
Cash and cash equivalents, end of period 264,798 88,408 63,179
Supplemental disclosure of cash flow information:      
Interest paid 7 449 1,648
Income taxes paid 1,862 1,394 107
Supplemental disclosure of non-cash investing and financing activities:      
Indemnity holdback consideration associated with business combinations 0 0 1,799
Contingent consideration associated with business combinations 0 474 635
Conversion of redeemable convertible preferred stock to common stock 557,912 0 0
Conversion of redeemable convertible preferred stock warrant liabilities reclassified to additional paid-in capital 10,559 0 0
Net (decrease) increase in deferred offering costs, accrued but not paid (2,858) 2,858 0
Net (decrease) increase in property and equipment included in accounts payable and accrued expenses (3,193) 3,004 3,482
Accretion of redeemable convertible preferred stock 0 0 5,853
Vesting of early exercised options $ 2,704 $ 543 $ 574