Cash and Cash Equivalents, Investments, and Funds Receivable and Amounts Held for Customers - Schedule of Funds Held for Customers (Details) - USD ($) $ in Millions |
Apr. 30, 2026 |
Jul. 31, 2025 |
Apr. 30, 2025 |
Jul. 31, 2024 |
|---|---|---|---|---|
| Cash And Cash Equivalents, Investments, And Funds Receivable And Amounts Held For Customers [Abstract] | ||||
| Restricted cash and restricted cash equivalents | $ 7,233 | $ 6,597 | $ 4,741 | $ 3,490 |
| Restricted available-for-sale debt securities | 150 | 150 | 150 | 150 |
| Funds receivable | 377 | 329 | 330 | 281 |
| Total funds receivable and amounts held for customers | $ 7,760 | $ 7,076 | $ 5,221 | $ 3,921 |
| X | ||||||||||
- Definition Available-For-Sale Securities, Debt Securities, Funds Held For Customers No definition available.
|
| X | ||||||||||
- Definition Cash And Cash Equivalents, Investments, And Funds Receivable And Amounts Held For Customers No definition available.
|
| X | ||||||||||
- Definition Funds Receivable And Amounts Held For Customers No definition available.
|
| X | ||||||||||
- Definition Amount of restricted investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of cash and cash equivalent restricted as to withdrawal or usage. Cash includes, but is not limited to, currency on hand, demand deposit with financial institution, and account with general characteristic of demand deposit. Cash equivalent includes, but is not limited to, short-term, highly liquid investment that is both readily convertible to known amount of cash and so near maturity that it presents insignificant risk of change in value because of change in interest rate. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|