XML 98 R82.htm IDEA: XBRL DOCUMENT
v3.23.2

Debt - Additional Information (Details) $ / shares in Units, $ in Thousands |  |  | 12 Months Ended |  |
--- | --- | --- | --- | --- | ---
Feb. 04, 2022 USD ($) | Nov. 23, 2021 USD ($) tradingDay segment $ / shares | Jun. 30, 2023 USD ($) | Jun. 30, 2022 USD ($) | Jun. 30, 2021 USD ($) | Jun. 07, 2023 USD ($) | May 16, 2022 USD ($)
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Loans held for investment |  |  | $ 4,361,965 | $ 2,485,534 |  |  |
Extinguishment of convertible debt |  |  | 206,567 | 0 | $ 0 |  |
Extinguishment of convertible debt |  |  | $ 89,841 | 0 | $ 0 |  |
Fair Value, Liability, Recurring Basis, Unobservable Input Reconciliation, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration] |  |  | Other (expense) income, net |  |  |  |
Remaining life |  |  | 41 months |  |  |  |
Funding debt |  |  | $ 1,764,812 | 672,577 |  |  |
Repurchase Agreement |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Long-term debt |  |  | 11,000 | 27,000 |  |  |
Warehouse Credit Facilities | Funding debt | Asset Pledged as Collateral |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Loans held for investment |  |  | $ 1,700,000 | 500,000 |  |  |
2022-X1 | Senior Pledged Securities |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Investment interest rate |  |  | 7.23% |  |  |  |
2021-Z1 | Senior Pledged Securities |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Investment interest rate |  |  | 7.23% |  |  |  |
2021-Z2 | Senior Pledged Securities |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Investment interest rate |  |  | 7.23% |  |  |  |
2021-Z1 and 2021-Z2 | Repurchase Agreement | Other Receivables |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Pledged securities |  |  | $ 18,900 | 32,400 |  |  |
Convertible Senior Notes |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Conversion ratio |  | 0.0046371 |  |  |  |  |
Debt instrument, authorized repurchase amount |  |  |  |  |  | $ 800,000 |
Funding costs |  |  | 3,900 | 2,400 |  |  |
Convertible Senior Notes | Conversion Period One |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Threshold trading days | tradingDay |  | 20 |  |  |  |  |
Threshold consecutive trading days | segment |  | 30 |  |  |  |  |
Threshold percentage of stock price trigger |  | 130.00% |  |  |  |  |
Debt instrument, redemption price, percentage |  | 100.00% |  |  |  |  |
Convertible Senior Notes | Conversion Period Two |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Threshold consecutive trading days | tradingDay |  | 5 |  |  |  |  |
Minimum percentage of common stock price trigger |  | 98.00% |  |  |  |  |
Convertible Senior Notes | Convertible Debt |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Borrowings outstanding |  |  | 296,400 |  |  |  |
Long-term debt |  |  | 1,414,208 |  |  |  |
Securitization issued |  | $ 1,725,000 | 1,425,900 |  |  |  |
Proceeds from debt |  | $ 1,704,000 |  |  |  |  |
Conversion price of redeemable convertible preferred stock (in USD per share) | $ / shares |  | $ 215.65 |  |  |  |  |
Extinguishment of convertible debt |  |  | 206,600 |  |  |  |
Debt instrument, repurchased face amount |  |  | 299,100 |  |  |  |
Extinguishment of convertible debt |  |  | 89,800 |  |  |  |
PayBright Funding Facilities | Funding debt | Asset Pledged as Collateral |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Loans held for investment |  |  | 412,800 | $ 210,100 |  |  |
Revolving facilities |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Aggregate commitment amount of credit facility | $ 165,000 |  |  |  |  |  | $ 205,000
Unused commitment fee percentage | 0.20% |  |  |  |  |  |
Funding debt |  |  | 0 |  |  |  |
Revolving facilities | Fed Funds Effective Rate Overnight Index Swap Rate |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Basis spread | 0.50% |  |  |  |  |  |
Revolving facilities | One Month London Interbank Offered Rate (LIBOR) |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Basis spread | 1.00% |  |  |  |  |  |
Revolving facilities | Base Rate |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Basis spread | 0.85% |  |  |  |  |  |
Revolving facilities | LIBOR |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Basis spread | 1.85% |  |  |  |  |  |
Revolving facilities | Funding debt |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Borrowings outstanding |  |  | 1,775,698 |  |  |  |
Long-term debt |  |  | $ 1,764,812 |  |  |  |
Revolving facilities | Warehouse Credit Facilities | Funding debt |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Covenant, period prior to final maturity date borrowings can occur |  |  | 12 months |  |  |  |
Aggregate commitment amount of credit facility |  |  | $ 3,300,000 |  |  |  |
Borrowings outstanding |  |  | 1,400,000 |  |  |  |
Remaining amount available of credit facility |  |  | 1,900,000 |  |  |  |
Revolving facilities | PayBright Funding Facilities | Funding debt |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Aggregate commitment amount of credit facility |  |  | 548,400 |  |  |  |
Borrowings outstanding |  |  | 349,600 |  |  |  |
Remaining amount available of credit facility |  |  | $ 198,800 |  |  |  |
Minimum | Revolving facilities | Warehouse Credit Facilities |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Unused commitment fee percentage |  |  | 0.00% |  |  |  |
Minimum | Revolving facilities | Warehouse Credit Facilities | Funding debt |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Advance rate percentage |  |  | 82.00% |  |  |  |
Minimum | Revolving facilities | Warehouse Credit Facilities | Funding debt | LIBOR |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Basis spread |  |  | 1.75% |  |  |  |
Minimum | Revolving facilities | PayBright Funding Facilities | Funding debt | Commercial paper rate |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Basis spread |  |  | 1.25% |  |  |  |
Maximum | Revolving facilities | Warehouse Credit Facilities |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Unused commitment fee percentage |  |  | 0.75% |  |  |  |
Maximum | Revolving facilities | Warehouse Credit Facilities | Funding debt |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Advance rate percentage |  |  | 86.00% |  |  |  |
Maximum | Revolving facilities | Warehouse Credit Facilities | Funding debt | LIBOR |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Basis spread |  |  | 2.20% |  |  |  |
Maximum | Revolving facilities | PayBright Funding Facilities | Funding debt | Commercial paper rate |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |
Basis spread |  |  | 4.25% |  |  |  |

X
- Definition Debt Instrument, Advance Rate Percentage + References No definition available. + Details
Name: | afrm_DebtInstrumentAdvanceRatePercentage
Namespace Prefix: | afrm_
Data Type: | dtr-types1:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt Instrument, Authorized Repurchase Amount + References No definition available. + Details
Name: | afrm_DebtInstrumentAuthorizedRepurchaseAmount
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Debt Instrument, Covenant, Period Prior To Final Maturity Date Borrowings Can Occur + References No definition available. + Details
Name: | afrm_DebtInstrumentCovenantPeriodPriorToFinalMaturityDateBorrowingsCanOccur
Namespace Prefix: | afrm_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt Instrument, Remaining Life + References No definition available. + Details
Name: | afrm_DebtInstrumentRemainingLife
Namespace Prefix: | afrm_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | instant

X
- Definition Minimum Percentage Of Trading Price To Last Reported Sale Price + References No definition available. + Details
Name: | afrm_MinimumPercentageOfTradingPriceToLastReportedSalePrice
Namespace Prefix: | afrm_
Data Type: | dtr-types1:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage points added to the reference rate to compute the variable rate on the debt instrument. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentBasisSpreadOnVariableRate1
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -SubTopic 10 -Topic 210 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479853/942-210-S99-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-4 + Details
Name: | us-gaap_DebtInstrumentCarryingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of assets pledged to secure a debt instrument. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480848/942-470-50-3 + Details
Name: | us-gaap_DebtInstrumentCollateralAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The price per share of the conversion feature embedded in the debt instrument. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-5 + Details
Name: | us-gaap_DebtInstrumentConvertibleConversionPrice1
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Ratio applied to the conversion of debt instrument into equity with equity shares divided by debt principal amount. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481112/505-10-50-3 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(5)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 7 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481112/505-10-50-7 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481112/505-10-50-6 + Details
Name: | us-gaap_DebtInstrumentConvertibleConversionRatio1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | duration

X
- Definition Threshold period of specified consecutive trading days within which common stock price to conversion price of convertible debt instrument must exceed threshold percentage for specified number of trading days to trigger conversion feature. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Minimum percentage of common stock price to conversion price of convertible debt instruments to determine eligibility of conversion. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Threshold number of specified trading days that common stock price to conversion price of convertible debt instruments must exceed threshold percentage within a specified consecutive trading period to trigger conversion feature. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentConvertibleThresholdTradingDays
Namespace Prefix: | us-gaap_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Face (par) amount of debt instrument at time of issuance. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482900/835-30-50-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1B Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 69B -Publisher FASB -URI https://asc.fasb.org//1943274/2147481568/470-20-55-69B Reference 4: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 69C -Publisher FASB -URI https://asc.fasb.org//1943274/2147481568/470-20-55-69C Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482925/835-30-45-2 Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 55 -Paragraph 8 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482949/835-30-55-8 + Details
Name: | us-gaap_DebtInstrumentFaceAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Percentage price of original principal amount of debt at which debt can be redeemed by the issuer. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph e -SubTopic 470 -Topic 942 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480848/942-470-50-3 + Details
Name: | us-gaap_DebtInstrumentRedemptionPricePercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Face (par) amount of the original debt instrument that was repurchased. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentRepurchasedFaceAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Indicates line item in statement in which net income is reported that includes gain (loss) from liability measured at fair value using unobservable input (level 3). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_FairValueRecurringBasisUnobservableInputReconciliationLiabilityGainLossStatementOfIncomeExtensibleList
Namespace Prefix: | us-gaap_
Data Type: | enum2:enumerationSetItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amortized cost excluding accrued interest, before allowance for credit loss, of financing receivable. Excludes net investment in lease. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479344/326-20-45-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 3B -Publisher FASB -URI https://asc.fasb.org//1943274/2147479319/326-20-50-3B Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479319/326-20-50-5 + Details
Name: | us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Difference between the fair value of payments made and the carrying amount of debt which is extinguished prior to maturity. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 45 -Paragraph 28 -Subparagraph (b) -SubTopic 10 -Topic 230 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482740/230-10-45-28 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 470 -SubTopic 50 -Section 40 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481303/470-50-40-2 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 470 -SubTopic 50 -Section 40 -Paragraph 4 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481303/470-50-40-4 + Details
Name: | us-gaap_GainsLossesOnExtinguishmentOfDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of the cost of borrowed funds accounted for as interest expense. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 946 -SubTopic 830 -Name Accounting Standards Codification -Section 55 -Paragraph 10 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480167/946-830-55-10 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 946 -SubTopic 220 -Name Accounting Standards Codification -Section 45 -Paragraph 3 -Subparagraph (i) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483581/946-220-45-3 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-07(3)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483575/946-220-S99-1 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 22 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482810/280-10-50-22 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 3 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482925/835-30-45-3 Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 942 -SubTopic 220 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-04.9) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483589/942-220-S99-1 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 220 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (210.5-03(11)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483621/220-10-S99-2 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Topic 835 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483013/835-20-50-1 + Details
Name: | us-gaap_InterestExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Rate of interest on investment. + References Reference 1: 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 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-2 Reference 3: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-5 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SX 210.12-12A(Column A)(Footnote 2)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-2 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SX 210.12-12A(Column A)(Footnote 3)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-2 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.12-12(Column A)(Footnote 2)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-1 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 6 -Subparagraph (SX 210.12-14(Column A)(Footnote 2)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-6 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.12-12(Column A)(Footnote 4)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-1 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.12-12B(Column A)(Footnote 3)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-3 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 3 -Subparagraph (SX 210.12-12B(Column A)(Footnote 4)(a)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-3 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 6 -Subparagraph (SX 210.12-14(Column A)(Footnote 3)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-6 + Details
Name: | us-gaap_InvestmentInterestRate
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The carrying value as of the balance sheet date of the current and noncurrent portions of long-term obligations drawn from a line of credit, which is a bank's commitment to make loans up to a specific amount. Examples of items that might be included in the application of this element may consist of letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to a maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line. Includes short-term obligations that would normally be classified as current liabilities but for which (a) postbalance sheet date issuance of a long term obligation to refinance the short term obligation on a long term basis, or (b) the enterprise has entered into a financing agreement that clearly permits the enterprise to refinance the short-term obligation on a long term basis and the following conditions are met (1) the agreement does not expire within 1 year and is not cancelable by the lender except for violation of an objectively determinable provision, (2) no violation exists at the BS date, and (3) the lender has entered into the financing agreement is expected to be financially capable of honoring the agreement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -SubTopic 10 -Topic 210 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 944 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(16)(a)(2)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479440/944-210-S99-1 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479853/942-210-S99-1 + Details
Name: | us-gaap_LineOfCredit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The fee, expressed as a percentage of the line of credit facility, for the line of credit facility regardless of whether the facility has been used. + References No definition available. + Details
Name: | us-gaap_LineOfCreditFacilityCommitmentFeePercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

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/2009/role/commonPracticeRef -Topic 235 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(f)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480678/235-10-S99-1 + Details
Name: | us-gaap_LineOfCreditFacilityLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of borrowing capacity currently available under the credit facility (current borrowing capacity less the amount of borrowings outstanding). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, after deduction of unamortized premium (discount) and debt issuance cost, of long-term debt. Excludes lease obligation. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -SubTopic 10 -Topic 210 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 69B -Publisher FASB -URI https://asc.fasb.org//1943274/2147481568/470-20-55-69B Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 69C -Publisher FASB -URI https://asc.fasb.org//1943274/2147481568/470-20-55-69C Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1D -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-1D Reference 5: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 944 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(16)(a)(2)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479440/944-210-S99-1 Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479853/942-210-S99-1 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Subparagraph (b)(3) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481139/470-20-50-4 + Details
Name: | us-gaap_LongTermDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The cash inflow from additional borrowings, net of cash paid to third parties in connection with debt origination. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 230 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 14 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482740/230-10-45-14 + Details
Name: | us-gaap_ProceedsFromDebtNetOfIssuanceCosts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash outflow from the repayment of a long-term debt instrument which can be exchanged for a specified amount of another security, typically the entity's common stock, at the option of the issuer or the holder. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482740/230-10-45-15 + Details
Name: | us-gaap_RepaymentsOfConvertibleDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=afrm_RepurchaseAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=afrm_WarehouseCreditFacilitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_LineOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PledgedStatusAxis=us-gaap_AssetPledgedAsCollateralMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=afrm_AffirmAssetSecuritizationTrust2022X1NotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_InvestmentTypeAxis=afrm_SeniorPledgedSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=afrm_AffirmAssetSecuritizationTrust2021Z1NotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=afrm_AffirmAssetSecuritizationTrust2021Z2NotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=afrm_AffirmAssetSecuritizationTrust2021Z1And2021Z2NotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_DebtInstrumentAxis=afrm_ConvertibleSeniorNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | afrm_DebtInstrumentConversionAxis=afrm_ConversionPeriodOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | afrm_DebtInstrumentConversionAxis=afrm_ConversionPeriodTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_ConvertibleDebtMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=afrm_PayBrightFundingFacilitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_RevolvingCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | afrm_VariableRateComponentAxis=us-gaap_FederalFundsEffectiveSwapRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | afrm_VariableRateComponentAxis=afrm_OneMonthLondonInterbankOfferedRateLIBORMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | afrm_VariableRateComponentAxis=us-gaap_BaseRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=afrm_LIBORMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=afrm_CommercialPaperRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |