XML 90 R72.htm IDEA: XBRL DOCUMENT
v3.22.2.2

Employee Benefits (Details) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Jun. 30, 2022 | Jun. 30, 2021 | Jun. 30, 2020
Retirement Benefits [Abstract] |  |  |
Service period | 90 days |  |
Health and welfare benefits expense | $ 20.6 | $ 10.5 | $ 7.1

X
- Definition Defined Contribution Plan, Requisite Service Period + References No definition available. + Details
Name: | afrm_DefinedContributionPlanRequisiteServicePeriod
Namespace Prefix: | afrm_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Employee Benefits Expense + References No definition available. + Details
Name: | afrm_EmployeeBenefitsExpense
Namespace Prefix: | afrm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_CompensationAndRetirementDisclosureAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration