> ## Documentation Index
> Fetch the complete documentation index at: https://docs.layerfi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Loan data

Layer models loans as first-class financial events. Each loan has a dedicated ledger account, one or more **proceeds** (the funds or assets received when the loan is drawn), and **payments** split into principal, interest, and fee portions. See the [Loan object](/api-reference/loan/loan) for the full data model and the [loan endpoints](/api-reference/v1/loans/create-loan) for the API.

Every loan has a `loan_type`. Follow the guide for the type you're importing:

| Loan type                                                      | `loan_type`           |
| -------------------------------------------------------------- | --------------------- |
| [Term loans](/guides/loans/term-loans)                         | `TERM_LOAN`           |
| [Merchant cash advances](/guides/loans/merchant-cash-advances) | `MCA`                 |
| [Flex loans](/guides/loans/flex-loans)                         | `FLEX_LOAN`           |
| [Lines of credit](/guides/loans/lines-of-credit)               | `LINE_OF_CREDIT`      |
| [Leases](/guides/loans/leases)                                 | `LEASE`               |
| [Equipment financing](/guides/loans/equipment-financing)       | `EQUIPMENT_FINANCING` |

Importing a loan that is already partially repaid, without the full history of proceeds and payments? See [Backfilling existing loans](/guides/loans/backfilling-existing-loans).

<Note>
  Loan support may need to be enabled for your platform. Reach out to your Layer contact for access.
</Note>
