Step 1: Create the loan
Create a loan withloan_type set to TERM_LOAN and disburse the full amount up front with a single DISBURSEMENT proceed. Set loan_term_months and an external_id so you can reference the loan later without storing Layer’s IDs.
Request
Step 2: Record repayments
Each repayment is a loan payment split intoPRINCIPAL and INTEREST. Unlike MCAs and flex loans, term loans have no fee_percentage to derive from, so every loan payment must include explicit splits. The interest portion posts to INTEREST_EXPENSE by default; override it with the split’s account_identifier.
Pre-create scheduled payments (recommended)
If you have an amortization schedule, we recommend creating the future payments up front withdefer_posting set to true. A deferred payment is recorded immediately but is not posted to the ledger until its date arrives (or it is paid out), so the books stay accurate as each installment comes due without you having to call back every month.
Create one loan payment per scheduled installment:
Request
Record payments as they happen
If you don’t have a schedule, create each loan payment when the repayment occurs using the same call withdefer_posting omitted (it defaults to false), so the payment posts to the ledger immediately.