Fair Value Measurements and Financial Instruments (Details) - USD ($) $ in Millions | Mar. 31, 2024 | Dec. 31, 2023 |
Assets | | |
Short-term investments | $ 2,528 | |
Short-term investments | 2,524 | $ 2,507 |
Corporate debt securities | Other assets, noncurrent | | |
Assets | | |
Short-term investments | 4 | 4 |
Fair Value, Recurring | | |
Assets | | |
Cash and cash equivalents | 2,558 | 2,369 |
Short-term investments | 2,524 | 2,507 |
Total assets at fair value | 7,398 | 6,267 |
Liabilities | | |
Total liabilities at fair value | 15 | 60 |
Fair Value, Recurring | Foreign exchange derivative | | |
Liabilities | | |
Other liabilities, current | 15 | 55 |
Other liabilities, noncurrent | | 5 |
Fair Value, Recurring | Prepaids and other current assets | Foreign exchange derivative | | |
Assets | | |
Other assets | 35 | 27 |
Fair Value, Recurring | Certificates of deposit | | |
Assets | | |
Short-term investments | 13 | 172 |
Fair Value, Recurring | Government bonds | | |
Assets | | |
Short-term investments | 345 | 333 |
Fair Value, Recurring | Commercial paper | | |
Assets | | |
Short-term investments | 500 | 366 |
Fair Value, Recurring | Corporate debt securities | | |
Assets | | |
Short-term investments | 1,479 | 1,491 |
Fair Value, Recurring | Corporate debt securities | Other assets, noncurrent | | |
Assets | | |
Other assets | 4 | 4 |
Fair Value, Recurring | Mortgage-backed and asset-backed securities | | |
Assets | | |
Short-term investments | 187 | 145 |
Fair Value, Recurring | Money market funds | | |
Assets | | |
Cash and cash equivalents | 2,144 | 2,018 |
Funds receivable and amounts held on behalf of customers | 2,277 | 1,360 |
Fair Value, Recurring | Certificates of deposit | | |
Assets | | |
Cash and cash equivalents | | 1 |
Fair Value, Recurring | Government bonds | | |
Assets | | |
Cash and cash equivalents | 124 | 115 |
Fair Value, Recurring | Commercial paper | | |
Assets | | |
Cash and cash equivalents | 251 | 223 |
Fair Value, Recurring | Corporate debt securities | | |
Assets | | |
Cash and cash equivalents | 39 | 12 |
Fair Value, Recurring | Level 1 | | |
Assets | | |
Cash and cash equivalents | 2,144 | 2,018 |
Short-term investments | 0 | 0 |
Total assets at fair value | 4,421 | 3,378 |
Liabilities | | |
Total liabilities at fair value | 0 | 0 |
Fair Value, Recurring | Level 1 | Foreign exchange derivative | | |
Liabilities | | |
Other liabilities, current | 0 | 0 |
Other liabilities, noncurrent | | 0 |
Fair Value, Recurring | Level 1 | Prepaids and other current assets | Foreign exchange derivative | | |
Assets | | |
Other assets | 0 | 0 |
Fair Value, Recurring | Level 1 | Certificates of deposit | | |
Assets | | |
Short-term investments | 0 | 0 |
Fair Value, Recurring | Level 1 | Government bonds | | |
Assets | | |
Short-term investments | 0 | 0 |
Fair Value, Recurring | Level 1 | Commercial paper | | |
Assets | | |
Short-term investments | 0 | 0 |
Fair Value, Recurring | Level 1 | Corporate debt securities | | |
Assets | | |
Short-term investments | 0 | 0 |
Fair Value, Recurring | Level 1 | Corporate debt securities | Other assets, noncurrent | | |
Assets | | |
Other assets | 0 | 0 |
Fair Value, Recurring | Level 1 | Mortgage-backed and asset-backed securities | | |
Assets | | |
Short-term investments | 0 | 0 |
Fair Value, Recurring | Level 1 | Money market funds | | |
Assets | | |
Cash and cash equivalents | 2,144 | 2,018 |
Funds receivable and amounts held on behalf of customers | 2,277 | 1,360 |
Fair Value, Recurring | Level 1 | Certificates of deposit | | |
Assets | | |
Cash and cash equivalents | | 0 |
Fair Value, Recurring | Level 1 | Government bonds | | |
Assets | | |
Cash and cash equivalents | 0 | 0 |
Fair Value, Recurring | Level 1 | Commercial paper | | |
Assets | | |
Cash and cash equivalents | 0 | 0 |
Fair Value, Recurring | Level 1 | Corporate debt securities | | |
Assets | | |
Cash and cash equivalents | 0 | 0 |
Fair Value, Recurring | Level 2 | | |
Assets | | |
Cash and cash equivalents | 414 | 351 |
Short-term investments | 2,524 | 2,507 |
Total assets at fair value | 2,973 | 2,885 |
Liabilities | | |
Total liabilities at fair value | 15 | 60 |
Fair Value, Recurring | Level 2 | Foreign exchange derivative | | |
Liabilities | | |
Other liabilities, current | 15 | 55 |
Other liabilities, noncurrent | | 5 |
Fair Value, Recurring | Level 2 | Prepaids and other current assets | Foreign exchange derivative | | |
Assets | | |
Other assets | 35 | 27 |
Fair Value, Recurring | Level 2 | Certificates of deposit | | |
Assets | | |
Short-term investments | 13 | 172 |
Fair Value, Recurring | Level 2 | Government bonds | | |
Assets | | |
Short-term investments | 345 | 333 |
Fair Value, Recurring | Level 2 | Commercial paper | | |
Assets | | |
Short-term investments | 500 | 366 |
Fair Value, Recurring | Level 2 | Corporate debt securities | | |
Assets | | |
Short-term investments | 1,479 | 1,491 |
Fair Value, Recurring | Level 2 | Corporate debt securities | Other assets, noncurrent | | |
Assets | | |
Other assets | 0 | 0 |
Fair Value, Recurring | Level 2 | Mortgage-backed and asset-backed securities | | |
Assets | | |
Short-term investments | 187 | 145 |
Fair Value, Recurring | Level 2 | Money market funds | | |
Assets | | |
Cash and cash equivalents | 0 | 0 |
Funds receivable and amounts held on behalf of customers | 0 | 0 |
Fair Value, Recurring | Level 2 | Certificates of deposit | | |
Assets | | |
Cash and cash equivalents | | 1 |
Fair Value, Recurring | Level 2 | Government bonds | | |
Assets | | |
Cash and cash equivalents | 124 | 115 |
Fair Value, Recurring | Level 2 | Commercial paper | | |
Assets | | |
Cash and cash equivalents | 251 | 223 |
Fair Value, Recurring | Level 2 | Corporate debt securities | | |
Assets | | |
Cash and cash equivalents | 39 | 12 |
Fair Value, Recurring | Level 3 | | |
Assets | | |
Cash and cash equivalents | 0 | 0 |
Short-term investments | 0 | 0 |
Total assets at fair value | 4 | 4 |
Liabilities | | |
Total liabilities at fair value | 0 | 0 |
Fair Value, Recurring | Level 3 | Foreign exchange derivative | | |
Liabilities | | |
Other liabilities, current | 0 | 0 |
Other liabilities, noncurrent | | 0 |
Fair Value, Recurring | Level 3 | Prepaids and other current assets | Foreign exchange derivative | | |
Assets | | |
Other assets | 0 | 0 |
Fair Value, Recurring | Level 3 | Certificates of deposit | | |
Assets | | |
Short-term investments | 0 | 0 |
Fair Value, Recurring | Level 3 | Government bonds | | |
Assets | | |
Short-term investments | 0 | 0 |
Fair Value, Recurring | Level 3 | Commercial paper | | |
Assets | | |
Short-term investments | 0 | 0 |
Fair Value, Recurring | Level 3 | Corporate debt securities | | |
Assets | | |
Short-term investments | 0 | 0 |
Fair Value, Recurring | Level 3 | Corporate debt securities | Other assets, noncurrent | | |
Assets | | |
Other assets | 4 | 4 |
Fair Value, Recurring | Level 3 | Mortgage-backed and asset-backed securities | | |
Assets | | |
Short-term investments | 0 | 0 |
Fair Value, Recurring | Level 3 | Money market funds | | |
Assets | | |
Cash and cash equivalents | 0 | 0 |
Funds receivable and amounts held on behalf of customers | 0 | 0 |
Fair Value, Recurring | Level 3 | Certificates of deposit | | |
Assets | | |
Cash and cash equivalents | | 0 |
Fair Value, Recurring | Level 3 | Government bonds | | |
Assets | | |
Cash and cash equivalents | 0 | 0 |
Fair Value, Recurring | Level 3 | Commercial paper | | |
Assets | | |
Cash and cash equivalents | 0 | 0 |
Fair Value, Recurring | Level 3 | Corporate debt securities | | |
Assets | | |
Cash and cash equivalents | $ 0 | $ 0 |