XML 137 R121.htm IDEA: XBRL DOCUMENT
v3.23.2

Equity Incentive Plans - Components and Classification of Stock-based Compensation (Details) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Jun. 30, 2023 | Jun. 30, 2022 | Jun. 30, 2021
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] |  |  |
Total stock-based compensation in operating expenses | $ 451,709 | $ 390,983 | $ 292,507
Capitalized into property, equipment and software, net | 80,108 | 54,542 | 13,999
Total stock-based compensation | 531,817 | 445,525 | 306,506
General and administrative |  |  |
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] |  |  |
Total stock-based compensation in operating expenses | 239,923 | 248,797 | 196,554
Technology and data analytics |  |  |
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] |  |  |
Total stock-based compensation in operating expenses | 181,396 | 116,531 | 76,643
Sales and marketing |  |  |
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] |  |  |
Total stock-based compensation in operating expenses | 25,914 | 23,224 | 17,092
Processing and servicing |  |  |
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] |  |  |
Total stock-based compensation in operating expenses | $ 4,476 | $ 2,431 | $ 2,218

X
- Definition Amount of expense for award under share-based payment arrangement. Excludes amount capitalized. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SAB Topic 14.F) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479830/718-10-S99-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (h)(1)(i) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_AllocatedShareBasedCompensationExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of cost capitalized for award under share-based payment arrangement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (h)(1)(ii) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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 No definition available. + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cost expensed and capitalized for award under share-based payment arrangement. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 718 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (h)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_GeneralAndAdministrativeExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=afrm_TechnologyAndDataAnalyticsExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_SellingAndMarketingExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=afrm_ProcessingAndServicingExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |