Link a payment
loan_link_paymentTie the statement row that paid the loan to it, split into principal, interest and escrow: as the lender printed it, or by the schedule when no split is given. Read loan_candidates for rows that look like the payment. When the lender's statement prints the split (principal, interest, escrow), pass it: it is the record, and it must add up to the row. With no split given, the schedule works it out from the balance and the rate, and the result says so. Anything above the scheduled payment and escrow goes to principal. Effects: payment split and recorded; the row posts once, through the loan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| escrow | No | As the lender printed it, if it did. In cents (integer minor units) — 1250 means $12.50. | |
| reason | Yes | Why this row is this payment. | |
| loan_id | Yes | The loan, e.g. LN-0001. An existing loan_loan id. | |
| interest | No | As the lender printed it, if it did. In cents (integer minor units) — 1250 means $12.50. | |
| principal | No | As the lender printed it, if it did. In cents (integer minor units) — 1250 means $12.50. | |
| transaction_id | Yes | The statement row that paid it. An existing purch_transaction id. |