XML 112 R96.htm IDEA: XBRL DOCUMENT
v3.23.2

Fair Value of Financial Assets and Liabilities - Assets and Liabilities Measured at Fair Value on Recurring Basis (Details) - USD ($) $ in Thousands | Jun. 30, 2023 | Jun. 30, 2022 | Jun. 30, 2021
--- | --- | --- | ---
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Servicing assets | $ 900 | $ 1,200 |
Derivative instruments | 50,545 | 49,983 |
Servicing liabilities | 1,392 | 2,673 | $ 3,961
Money market funds |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Cash and cash equivalents | 97,129 | 162,483 |
Certificates of deposit |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Cash and cash equivalents |  | 16,026 |
Restricted cash | 97,224 | 300,390 |
Corporate bonds |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Restricted cash | 256,772 | 368,671 |
Commercial paper |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Cash and cash equivalents | 54,402 | 229,272 |
Restricted cash | 266,193 | 478,293 |
Agency bonds |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Cash and cash equivalents | 60,865 |  |
Restricted cash | 84,276 |  |
Government bonds, Non-US |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Restricted cash | 9,151 | 17,955 |
Government bonds, US |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Cash and cash equivalents |  | 58,541 |
Restricted cash | 441,096 | 378,386 |
Recurring |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Securitization notes receivable and residual trust certificates |  | 51,678 |
Servicing assets | 880 | 1,192 |
Derivative instruments | 50,545 | 49,983 |
Other | 1,028 |  |
Total assets | 1,438,474 | 2,112,870 |
Servicing liabilities | 1,392 | 2,673 |
Performance fee liability | 1,581 | 1,710 |
Residual trust certificates, held by third-parties | 125 | 377 |
Contingent consideration |  | 23,348 |
Profit share liability | 1,832 | 1,987 |
Total liabilities | 4,930 | 30,095 |
Recurring | Securitization notes receivable and certificates |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Securitization notes receivable and residual trust certificates | 18,913 |  |
Level 1 |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Other | 0 | 0 |
Total assets | 0 | 0 |
Total liabilities | 0 | 0 |
Level 1 | Money market funds |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Cash and cash equivalents | 97,129 | 162,483 |
Level 1 | Certificates of deposit |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Cash and cash equivalents |  | 0 |
Restricted cash | 0 | 0 |
Level 1 | Corporate bonds |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Restricted cash | 0 | 0 |
Level 1 | Commercial paper |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Cash and cash equivalents | 0 | 0 |
Restricted cash | 0 | 0 |
Level 1 | Agency bonds |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Cash and cash equivalents | 0 |  |
Restricted cash | 0 |  |
Level 1 | Government bonds, Non-US |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Restricted cash | 0 | 0 |
Level 1 | Government bonds, US |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Cash and cash equivalents |  | 0 |
Restricted cash | 0 | 0 |
Level 1 | Recurring |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Securitization notes receivable and residual trust certificates |  | 0 |
Servicing assets | 0 | 0 |
Derivative instruments | 0 | 0 |
Other | 0 |  |
Total assets | 97,129 | 162,483 |
Servicing liabilities | 0 | 0 |
Performance fee liability | 0 | 0 |
Residual trust certificates, held by third-parties | 0 | 0 |
Contingent consideration |  | 0 |
Profit share liability | 0 | 0 |
Total liabilities | 0 | 0 |
Level 1 | Recurring | Securitization notes receivable and certificates |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Securitization notes receivable and residual trust certificates | 0 |  |
Level 2 |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Other | 9,325 | 12,661 |
Total assets | 9,401 | 15,331 |
Total liabilities | 1,053,866 | 984,285 |
Level 2 | Money market funds |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Cash and cash equivalents | 0 | 0 |
Level 2 | Certificates of deposit |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Cash and cash equivalents |  | 16,026 |
Restricted cash | 97,224 | 300,390 |
Level 2 | Corporate bonds |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Restricted cash | 256,772 | 368,671 |
Level 2 | Commercial paper |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Cash and cash equivalents | 54,402 | 229,272 |
Restricted cash | 266,193 | 478,293 |
Level 2 | Agency bonds |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Cash and cash equivalents | 60,865 |  |
Restricted cash | 84,276 |  |
Level 2 | Government bonds, Non-US |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Restricted cash | 9,151 | 17,955 |
Level 2 | Government bonds, US |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Cash and cash equivalents |  | 58,541 |
Restricted cash | 441,096 | 378,386 |
Level 2 | Recurring |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Securitization notes receivable and residual trust certificates |  | 0 |
Servicing assets | 0 | 0 |
Derivative instruments | 50,545 | 49,983 |
Other | 0 |  |
Total assets | 1,320,524 | 1,897,517 |
Servicing liabilities | 0 | 0 |
Performance fee liability | 0 | 0 |
Residual trust certificates, held by third-parties | 0 | 0 |
Contingent consideration |  | 0 |
Profit share liability | 0 | 0 |
Total liabilities | 0 | 0 |
Level 2 | Recurring | Securitization notes receivable and certificates |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Securitization notes receivable and residual trust certificates | 0 |  |
Level 3 |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Other | 0 | 0 |
Total assets | 4,397,931 | 2,412,871 |
Total liabilities | 3,526,407 | 2,212,789 |
Level 3 | Money market funds |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Cash and cash equivalents | 0 | 0 |
Level 3 | Certificates of deposit |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Cash and cash equivalents |  | 0 |
Restricted cash | 0 | 0 |
Level 3 | Corporate bonds |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Restricted cash | 0 | 0 |
Level 3 | Commercial paper |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Cash and cash equivalents | 0 | 0 |
Restricted cash | 0 | 0 |
Level 3 | Agency bonds |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Cash and cash equivalents | 0 |  |
Restricted cash | 0 |  |
Level 3 | Government bonds, Non-US |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Restricted cash | 0 | 0 |
Level 3 | Government bonds, US |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Cash and cash equivalents |  | 0 |
Restricted cash | 0 | 0 |
Level 3 | Securitization notes receivable and certificates |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Securitization notes receivable and residual trust certificates | 18,913 |  |
Level 3 | Recurring |  |  |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] |  |  |
Securitization notes receivable and residual trust certificates |  | 51,678 |
Servicing assets | 880 | 1,192 |
Derivative instruments | 0 | 0 |
Other | 1,028 |  |
Total assets | 20,821 | 52,870 |
Servicing liabilities | 1,392 | 2,673 |
Performance fee liability | 1,581 | 1,710 |
Residual trust certificates, held by third-parties | 125 | 377 |
Contingent consideration |  | 23,348 |
Profit share liability | 1,832 | 1,987 |
Total liabilities | $ 4,930 | $ 30,095 |

X
- Definition Commercial Agreement, Profit Share Liability, Fair Value Disclosure + References No definition available. + Details
Name: | afrm_CommercialAgreementProfitShareLiabilityFairValueDisclosure
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Performance Fee Liability, Fair Value Disclosure + References No definition available. + Details
Name: | afrm_PerformanceFeeLiabilityFairValueDisclosure
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Residual Trust Certificates Asset, Fair Value Disclosure + References No definition available. + Details
Name: | afrm_ResidualTrustCertificatesAssetFairValueDisclosure
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Residual Trust Certificates, Fair Value Disclosure + References No definition available. + Details
Name: | afrm_ResidualTrustCertificatesFairValueDisclosure
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Restricted Cash, Fair Value Disclosure + References No definition available. + Details
Name: | afrm_RestrictedCashFairValueDisclosure
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_AssetsFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of liability recognized arising from contingent consideration in a business combination. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 805 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (c)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479581/805-30-50-1 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 25 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479668/805-30-25-6 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 35 -Paragraph 1 -Subparagraph (b) -SubTopic 30 -Topic 805 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479613/805-30-35-1 + Details
Name: | us-gaap_BusinessCombinationContingentConsiderationLiability
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Fair value portion of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. + References No definition available. + Details
Name: | us-gaap_CashAndCashEquivalentsFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value, after the effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes assets not subject to a master netting arrangement and not elected to be offset. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-12 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 55 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480493/946-210-55-1 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a)(4) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-1 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-1 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-1 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (c)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-1 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (f) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 12: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a)(3) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-04(3)(c)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479617/946-210-S99-1 Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5C -Subparagraph (SX 210.12-13C(Column H)(Footnote 7)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5C Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-04(3)(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479617/946-210-S99-1 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5 -Subparagraph (SX 210.12-13(Column A)(Footnote 3)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5 Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5C -Subparagraph (SX 210.12-13C(Column H)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5C Reference 18: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5A -Subparagraph (SX 210.12-13A(Column E)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5A Reference 19: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5B -Subparagraph (SX 210.12-13B(Column E)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5B Reference 20: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5B -Subparagraph (SX 210.12-13B(Column E)(Footnote 4)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5B Reference 21: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483466/210-20-50-3 Reference 22: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 22 -Publisher FASB -URI https://asc.fasb.org//1943274/2147483444/210-20-55-22 Reference 23: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 10 -Publisher FASB -URI https://asc.fasb.org//1943274/2147483444/210-20-55-10 Reference 24: http://www.xbrl.org/2003/role/disclosureRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 10 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482907/825-10-50-10 + Details
Name: | us-gaap_DerivativeAssets
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 Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-2 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-2 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-3 + Details
Name: | us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Fair value of financial and nonfinancial obligations. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_LiabilitiesFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Fair value portion of other assets. + References No definition available. + Details
Name: | us-gaap_OtherAssetsFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Aggregate amount of servicing assets that are subsequently measured at fair value and servicing assets that are subsequently measured using the amortization method. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 860 -SubTopic 50 -Name Accounting Standards Codification -Section 45 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481260/860-50-45-2 + Details
Name: | us-gaap_ServicingAsset
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value of a liability representing servicing arrangements under which the estimated future revenue from contractually specified servicing fees, late charges, and other ancillary revenues are not expected to adequately compensate the servicer. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 860 -SubTopic 50 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481229/860-50-50-3 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 860 -SubTopic 50 -Name Accounting Standards Codification -Section 45 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481260/860-50-45-2 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 860 -SubTopic 50 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481260/860-50-45-1 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 860 -SubTopic 50 -Name Accounting Standards Codification -Section 45 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481260/860-50-45-2 + Details
Name: | us-gaap_ServicingLiabilityAtFairValueAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_MoneyMarketFundsMember
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_FairValueByMeasurementFrequencyAxis=us-gaap_FairValueMeasurementsRecurringMember
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_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel2Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel3Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |