XML 79 R62.htm IDEA: XBRL DOCUMENT
v3.25.0.1

Debt - Additional Information (Details) |  |  |  | 3 Months Ended | 6 Months Ended |  |  |
--- | --- | --- | --- | --- | --- | --- | --- | ---
Dec. 20, 2024 USD ($) day $ / shares | Jun. 26, 2024 | Nov. 23, 2021 USD ($) day $ / shares | Dec. 31, 2024 USD ($) extension | Dec. 31, 2023 USD ($) | Dec. 31, 2024 USD ($) extension tradingDay | Dec. 31, 2023 USD ($) | Dec. 13, 2024 USD ($) | Nov. 05, 2024 USD ($) | Dec. 06, 2023 USD ($)
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |
Gain on extinguishment of debt |  |  |  |  |  | $ 82,418,000 | $ 0 |  |  |
Long-term debt, gross |  |  |  | $ 7,347,212,000 |  | $ 7,347,212,000 |  |  |  |
2029 Notes | Conversion Period One |  |  |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |
Redemption price (as a percentage) | 100.00% |  |  |  |  |  |  |  |  |
2029 Notes | Convertible Debt |  |  |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |
Debt instrument, face amount | $ 920,000,000 |  |  |  |  |  |  |  |  |
Fixed interest rate | 0.75% |  |  | 0.75% |  | 0.75% |  |  |  |
Proceeds from debt | $ 903,000,000 |  |  |  |  |  |  |  |  |
Conversion ratio | 0.0098992 |  |  |  |  |  |  |  |  |
Conversion price of redeemable convertible preferred stock (in USD per share) | $ / shares | $ 101.02 |  |  |  |  |  |  |  |  |
Debt instrument, convertible, trading day observation period | tradingDay |  |  |  |  |  | 40 |  |  |  |
Long-term debt, gross |  |  |  | $ 920,000,000 |  | $ 920,000,000 |  |  |  |
Remaining life |  |  |  |  |  | 59 months |  |  |  |
2029 Notes | Convertible Debt | Conversion Period One |  |  |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |
Threshold trading days | day | 20 |  |  |  |  |  |  |  |  |
Threshold consecutive trading days | day | 30 |  |  |  |  |  |  |  |  |
Threshold percentage of stock price trigger | 130.00% |  |  |  |  |  |  |  |  |
2029 Notes | Convertible Debt | Conversion Period Two |  |  |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |
Threshold consecutive trading days | day | 5 |  |  |  |  |  |  |  |  |
Period following threshold consecutive trading days | 5 days |  |  |  |  |  |  |  |  |
Minimum percentage of common stock price trigger | 98.00% |  |  |  |  |  |  |  |  |
2026 Notes |  |  |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |
Conversion ratio |  |  | 0.0046371 |  |  |  |  |  |  |
2026 Notes | Convertible Debt |  |  |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |
Debt instrument, face amount |  |  | $ 1,725,000,000 |  |  |  |  |  |  |
Fixed interest rate |  |  | 0.00% | 0.00% |  | 0.00% |  |  |  |
Proceeds from debt |  |  | $ 1,704,000,000 |  |  |  |  |  |  |
Conversion price of redeemable convertible preferred stock (in USD per share) | $ / shares |  |  | $ 215.65 |  |  |  |  |  |  |
Debt instrument, convertible, trading day observation period | tradingDay |  |  |  |  |  | 40 |  |  |  |
Repurchased amount |  |  |  |  |  |  |  | $ 960,000,000 |  |
Debt repurchased during the period |  |  |  | $ 960,000,000.0 |  | $ 1,100,500,000 |  |  |  |
Repurchased carrying amount |  |  |  | 955,600,000 |  | 1,095,300,000 |  |  |  |
Gain on extinguishment of debt |  |  |  | 62,800,000 |  | 82,400,000 |  |  |  |
Authorized repurchase amount |  |  |  |  |  |  |  |  | $ 500,000,000 | $ 800,000,000
Repayments of convertible debt |  |  |  | 892,800,000 |  | 1,012,900,000 |  |  |  |
Gain (loss) on repurchase of debt instrument |  |  |  |  | $ 0 |  | $ 0 |  |  |
Long-term debt, gross |  |  |  | $ 248,704,000 |  | $ 248,704,000 |  |  |  |
Remaining life |  |  |  |  |  | 23 months |  |  |  |
2026 Notes | Convertible Debt | Conversion Period One |  |  |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |
Threshold trading days | day |  |  | 20 |  |  |  |  |  |  |
Threshold consecutive trading days | day |  |  | 30 |  |  |  |  |  |  |
Threshold percentage of stock price trigger |  |  | 130.00% |  |  |  |  |  |  |
Redemption price (as a percentage) |  |  | 100.00% |  |  |  |  |  |  |
2026 Notes | Convertible Debt | Conversion Period Two |  |  |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |
Threshold consecutive trading days | day |  |  | 5 |  |  |  |  |  |  |
Period following threshold consecutive trading days |  |  | 5 years |  |  |  |  |  |  |
Minimum percentage of common stock price trigger |  |  | 98.00% |  |  |  |  |  |  |
US warehouse facilities | Minimum |  |  |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |
Revolving period term, period prior to final maturity date |  |  |  |  |  | 4 months |  |  |  |
Debt instrument, advance rate percentage |  |  |  |  |  | 70.00% |  |  |  |
US warehouse facilities | Maximum |  |  |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |
Revolving period term, period prior to final maturity date |  |  |  |  |  | 12 months |  |  |  |
Debt instrument, advance rate percentage |  |  |  |  |  | 86.00% |  |  |  |
Sale and Repurchase Agreements | Funding Debt |  |  |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |
Debt instrument, term |  |  |  |  |  | 3 months |  |  |  |
Number of term extensions | extension |  |  |  | 1 |  | 1 |  |  |  |
Extension term |  |  |  |  |  | 3 months |  |  |  |
Long-term debt, gross |  |  |  | $ 48,751,000 |  | $ 48,751,000 |  |  |  |
Sale and Repurchase Agreements | Minimum | Funding Debt |  |  |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |
Fixed interest rate |  |  |  | 5.79% |  | 5.79% |  |  |  |
Sale and Repurchase Agreements | Maximum | Funding Debt |  |  |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |
Fixed interest rate |  |  |  | 6.66% |  | 6.66% |  |  |  |
Revolving facilities |  |  |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |
Unused Commitment Fees |  | 0.20% |  |  |  |  |  |  |  |
International warehouse facilities | Minimum |  |  |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |
Debt instrument, advance rate percentage |  |  |  |  |  | 67.00% |  |  |  |
International warehouse facilities | Maximum |  |  |  |  |  |  |  |  |  |
Line of Credit Facility [Line Items] |  |  |  |  |  |  |  |  |  |
Debt instrument, advance rate percentage |  |  |  |  |  | 88.00% |  |  |  |

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, Convertible, Period Following Threshold Consecutive Trading Days + References No definition available. + Details
Name: | afrm_DebtInstrumentConvertiblePeriodFollowingThresholdConsecutiveTradingDays
Namespace Prefix: | afrm_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt Instrument, Convertible, Trading Day Observation Period + References No definition available. + Details
Name: | afrm_DebtInstrumentConvertibleTradingDayObservationPeriod
Namespace Prefix: | afrm_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt Instrument, Debt Repurchased During The Period + References No definition available. + Details
Name: | afrm_DebtInstrumentDebtRepurchasedDuringThePeriod
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Debt Instrument, Extension Term + References No definition available. + Details
Name: | afrm_DebtInstrumentExtensionTerm
Namespace Prefix: | afrm_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt Instrument, Number Of Term Extensions + References No definition available. + Details
Name: | afrm_DebtInstrumentNumberOfTermExtensions
Namespace Prefix: | afrm_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

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: | duration

X
- Definition Debt Instrument, Repurchased Carrying Amount + References No definition available. + Details
Name: | afrm_DebtInstrumentRepurchasedCarryingAmount
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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

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 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/2147478546/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 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://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -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 2: 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 3: 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 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/exampleRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 55 -Paragraph 8 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482949/835-30-55-8 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://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 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 835 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482925/835-30-45-2 + Details
Name: | us-gaap_DebtInstrumentFaceAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Contractual interest rate for funds borrowed, under the debt agreement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)(a)(1)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 1B -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481139/470-20-50-1B + Details
Name: | us-gaap_DebtInstrumentInterestRateStatedPercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
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 -Topic 942 -SubTopic 470 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org/1943274/2147477734/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 Period of time between issuance and maturity of debt instrument, in PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentTerm
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of gain (loss) from the difference between the repurchase price of a debt instrument initially issued by the entity and the net carrying amount of the debt at the time of its repurchase. + References No definition available. + Details
Name: | us-gaap_GainLossOnRepurchaseOfDebtInstrument
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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 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/2003/role/disclosureRef -Topic 470 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481544/470-10-50-6 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 470 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481544/470-10-50-6 Reference 3: 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 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 -Topic 230 -SubTopic 10 -Name Accounting Standards Codification -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_DebtInstrumentAxis=afrm_ConvertibleSeniorNotesDue2029Member
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: | us-gaap_LongtermDebtTypeAxis=us-gaap_ConvertibleDebtMember
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_DebtInstrumentAxis=afrm_ConvertibleSeniorNotesDue2026Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=afrm_USWarehouseFacilitiesMember
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: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_DebtInstrumentAxis=afrm_FundingDebtMember
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: | us-gaap_CreditFacilityAxis=afrm_InternationalWarehouseFacilitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |