XML 104 R88.htm IDEA: XBRL DOCUMENT
v3.23.2

Investments - Marketable Securities (Details) - USD ($) $ in Thousands | Jun. 30, 2023 | Jun. 30, 2022
--- | --- | ---
Marketable Securities [Line Items] |  |
Marketable securities | $ 1,387,049 | $ 2,061,695
Money market funds | Cash Equivalents |  |
Marketable Securities [Line Items] |  |
Marketable securities | 97,129 | 162,483
Certificates of deposit |  |
Marketable Securities [Line Items] |  |
Marketable securities | 97,224 | 300,390
Certificates of deposit | Cash Equivalents |  |
Marketable Securities [Line Items] |  |
Marketable securities | 0 | 16,026
Corporate bonds |  |
Marketable Securities [Line Items] |  |
Marketable securities | 256,772 | 368,671
Commercial paper |  |
Marketable Securities [Line Items] |  |
Marketable securities | 266,193 | 478,293
Commercial paper | Cash Equivalents |  |
Marketable Securities [Line Items] |  |
Marketable securities | 54,402 | 229,272
Agency bonds |  |
Marketable Securities [Line Items] |  |
Marketable securities | 84,276 | 0
Agency bonds | Cash Equivalents |  |
Marketable Securities [Line Items] |  |
Marketable securities | 60,865 | 0
Government bonds, Non-US |  |
Marketable Securities [Line Items] |  |
Marketable securities | 9,151 | 17,955
Government bonds, US |  |
Marketable Securities [Line Items] |  |
Marketable securities | 441,096 | 378,386
Government bonds, US | Cash Equivalents |  |
Marketable Securities [Line Items] |  |
Marketable securities | 0 | 58,541
Securitization notes receivable and certificates |  |
Marketable Securities [Line Items] |  |
Marketable securities | 18,913 | 51,678
Other |  |
Marketable Securities [Line Items] |  |
Marketable securities | $ 1,028 | $ 0

X
- Definition Amount of investment in marketable security. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(2)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03.4) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479853/942-210-S99-1 + Details
Name: | us-gaap_MarketableSecurities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_MarketableSecuritiesLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_MoneyMarketFundsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=us-gaap_CashEquivalentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_CertificatesOfDepositMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_CorporateBondSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_CommercialPaperMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_AgencySecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=afrm_NonUSGovernmentAgenciesDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_USGovernmentAgenciesDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=afrm_SecuritizationNotesReceivableAndCertificatesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_OtherDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |