XML 100 R82.htm IDEA: XBRL DOCUMENT
v3.22.2.2

Investments - Securities Available for Sale (Details) - USD ($) $ in Thousands | Jun. 30, 2022 | Jun. 30, 2021
--- | --- | ---
Debt Securities, Available-for-sale [Line Items] |  |
Amortized Cost | $ 1,907,255 | $ 16,144
Gross Unrealized Gains | 207 | 29
Gross Unrealized Losses | (8,229) | 0
Allowance for Credit Losses | (21) | (3)
Fair Value | 1,899,212 | 16,170
Certificates of deposit, corporate bonds, and commercial paper classified as cash and cash equivalents | 1,899,212 | 16,170
Certificates of deposit |  |
Debt Securities, Available-for-sale [Line Items] |  |
Amortized Cost | 317,331 |
Gross Unrealized Gains | 6 |
Gross Unrealized Losses | (921) |
Allowance for Credit Losses | 0 |
Fair Value | 316,416 |
Certificates of deposit, corporate bonds, and commercial paper classified as cash and cash equivalents | 316,416 |
Corporate bonds |  |
Debt Securities, Available-for-sale [Line Items] |  |
Amortized Cost | 371,907 |
Gross Unrealized Gains | 7 |
Gross Unrealized Losses | (3,243) |
Allowance for Credit Losses | 0 |
Fair Value | 368,671 |
Certificates of deposit, corporate bonds, and commercial paper classified as cash and cash equivalents | 368,671 |
Commercial paper |  |
Debt Securities, Available-for-sale [Line Items] |  |
Amortized Cost | 708,694 |
Gross Unrealized Gains | 16 |
Gross Unrealized Losses | (1,145) |
Allowance for Credit Losses | 0 |
Fair Value | 707,565 |
Certificates of deposit, corporate bonds, and commercial paper classified as cash and cash equivalents | 707,565 |
Government bonds, Non-US |  |
Debt Securities, Available-for-sale [Line Items] |  |
Amortized Cost | 18,196 |
Gross Unrealized Gains | 0 |
Gross Unrealized Losses | (241) |
Allowance for Credit Losses | 0 |
Fair Value | 17,955 |
Certificates of deposit, corporate bonds, and commercial paper classified as cash and cash equivalents | 17,955 |
Government bonds, US |  |
Debt Securities, Available-for-sale [Line Items] |  |
Amortized Cost | 438,947 |
Gross Unrealized Gains | 0 |
Gross Unrealized Losses | (2,020) |
Allowance for Credit Losses | 0 |
Fair Value | 436,927 |
Certificates of deposit, corporate bonds, and commercial paper classified as cash and cash equivalents | 436,927 |
Securitization notes receivable and certificates |  |
Debt Securities, Available-for-sale [Line Items] |  |
Amortized Cost | 52,180 | 16,144
Gross Unrealized Gains | 178 | 29
Gross Unrealized Losses | (659) | 0
Allowance for Credit Losses | (21) | (3)
Fair Value | 51,678 | 16,170
Certificates of deposit, corporate bonds, and commercial paper classified as cash and cash equivalents | 51,678 | $ 16,170
Certificates Of Deposit, Corporate Bonds, Commercial Paper, and US Government Bonds | Cash Equivalents |  |
Debt Securities, Available-for-sale [Line Items] |  |
Fair Value | 303,800 |
Certificates of deposit, corporate bonds, and commercial paper classified as cash and cash equivalents | $ 303,800 |

X
- Definition Amount, before tax, of unrealized gain in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, before tax, of unrealized loss in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 45 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=124258926&loc=SL82898722-210454 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(6)) -URI https://asc.fasb.org/extlink&oid=126897435&loc=d3e534808-122878 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 45 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=124258926&loc=SL82898722-210454 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 1 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=124260329&loc=d3e26610-111562 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (aa) -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563 + Details
Name: | us-gaap_AvailableForSaleSecuritiesDebtSecurities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of allowance for credit loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 50 -Paragraph 9 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=124269663&loc=SL82922900-210455 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 50 -Paragraph 9 -Subparagraph (i) -URI https://asc.fasb.org/extlink&oid=124269663&loc=SL82922900-210455 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (aaa) -URI https://asc.fasb.org/extlink&oid=126970911&loc=d3e27161-111563 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 30 -Section 45 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=124258926&loc=SL82898722-210454 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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_ScheduleOfAvailableForSaleSecuritiesLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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=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=afrm_CertificatesOfDepositCorporateBondsCommercialPaperAndUSGovernmentBondsMember
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: |