NOTES_PAYABLE by default), and records the proceeds and repayments against it.
A loan is made up of three related concepts:
- Proceeds: the funds (or assets) received when the loan is drawn. A proceed is either a cash disbursement or an asset that the loan financed (for example, financed equipment). See the Loan Proceed object.
- Payments: repayments made against the loan, each split into principal, interest, and fee portions. See the Loan Payment object.
- Ledger account: the dedicated liability account Layer maintains for the loan, exposed as
loan_account.
Attributes
Unique identifier for the loan.
ID of the Business that holds the loan.
Unique ID of the loan in your system for linking purposes.
Human-friendly name for the loan.
The type of loan. Values can be:
TERM_LOAN, MCA, FLEX_LOAN, LINE_OF_CREDIT, LEASE, EQUIPMENT_FINANCINGThe dedicated ledger (liability) account for this loan.
Current outstanding balance of the loan, in cents.
The loan’s active opening balance, if one has been set: pre-existing debt recorded against Opening Balance Equity rather than explained by recorded proceeds and payments. Contains
ledger_account_id, ledger_account_name, balance (in cents), effective_at, created_at, updated_at, transaction_tags, memo, metadata, and reference_number. See Backfilling existing loans.Date the loan was originated.
Original principal, in cents. Present for
TERM_LOAN, MCA, FLEX_LOAN, LEASE, and EQUIPMENT_FINANCING.Credit limit, in cents. Present for
LINE_OF_CREDIT.Fixed fee, expressed as a percentage in a decimal string (for example,
"15" for a 15% fee). Present for MCA and FLEX_LOAN.Loan term in months. Present for
TERM_LOAN, LEASE, and EQUIPMENT_FINANCING.When the loan was fully repaid, if applicable.
When the loan was cancelled, if applicable.
When the loan was archived, if applicable.
Internal note about the loan.
Arbitrary JSON object you can attach for your own use. Layer stores and returns it unchanged.
Reference number for the loan.
Tags applied to this loan.
Loan Proceed object
A Loan Proceed represents funds (or an asset) received when a loan is drawn. A proceed is one of two types:DISBURSEMENT: a cash disbursement, received via amethodsuch as ACH or check.ASSET: an asset the loan financed (for example, financed equipment). The funded asset is referenced byasset_id.
Attributes
Unique identifier for the loan proceed.
ID of the Business that holds the loan.
Unique ID of the proceed in your system for linking purposes.
ID of the loan this proceed belongs to.
How the proceeds were received. Values can be:
ASSET, DISBURSEMENTPayment method used for the proceed. Values can be:
CASH, CHECK, CREDIT_CARD, ACH, CREDIT_BALANCE, OTHERProceed amount, in cents.
ID of the asset funded by this proceed. Present for
ASSET proceeds.Date the proceed was received.
When the proceed was archived, if applicable.
Internal note about the proceed.
Arbitrary JSON object you can attach for your own use.
Reference number for the proceed.
Tags applied to this proceed.
Loan Payment object
A Loan Payment is a repayment made against a loan. Each payment is broken into one or more splits by type (PRINCIPAL, INTEREST, FEE), and the splits must sum to the payment amount. Payments can optionally be deferred: recorded but not posted to the ledger until they are paid out or their due date is reached.
Attributes
Unique identifier for the loan payment.
ID of the Business that made the payment.
Unique ID of the payment in your system for linking purposes.
ID of the loan this payment applies to.
The principal, interest, and fee splits that make up this payment. The split amounts sum to
amount.Total payment amount, in cents.
Date of the payment.
Whether posting to the ledger is deferred.
Payment method. Values can be:
CASH, CHECK, CREDIT_CARD, ACH, CREDIT_BALANCE, OTHERPayment processor, if any.
The clearing account used for the payment, if any.
When the payment was archived, if applicable.
Internal note about the payment.
Arbitrary JSON object you can attach for your own use.
Reference number for the payment.
Tags applied to this payment.