Payments API¶
Process, allocate, reverse, and refund loan payments. Supports recurring payments and payment previews.
Base permission: IsViewerOrAbove (read), IsLoanOfficerOrAbove (write)
Endpoints¶
Payments¶
| Method | Path | Description | Permission |
|---|---|---|---|
GET |
/payments |
List all payments | IsViewerOrAbove |
GET |
/payments/{id} |
Get payment | IsViewerOrAbove |
GET |
/loans/{id}/payments |
List loan's payments | IsViewerOrAbove |
POST |
/loans/{id}/payments |
Record payment | IsLoanOfficerOrAbove |
Record Payment¶
{
"amount": "500.00",
"payment_method": "ach",
"payment_instrument_id": "772a0622-a4bd-63f6-c938-668877662222",
"effective_date": "2026-01-15",
"external_id": "PMT-EXT-001"
}
Response (201):
{
"id": "883b1733-b5ce-74g7-d049-779988773333",
"loan_id": "550e8400-e29b-41d4-a716-446655440000",
"amount": "500.00",
"payment_method": "ach",
"status": "completed",
"effective_date": "2026-01-15",
"principal_applied": "412.50",
"interest_applied": "62.50",
"fees_applied": "25.00",
"created_at": "2026-01-15T14:30:00Z"
}
Payment allocation follows the lending program's payment_allocation_order (typically: fees, interest, principal).
Preview Payment¶
Dry-run payment allocation without recording the payment.
Response (200):
{
"amount": "500.00",
"principal_applied": "412.50",
"interest_applied": "62.50",
"fees_applied": "25.00",
"remaining_principal": "8087.50",
"overpayment": "0.00"
}
Business Actions¶
Reverse Payment¶
Creates a reversing entry and re-accrues interest. Optionally assesses an NSF fee.
Preconditions: Payment must be in completed status.
Effects:
- Creates reversing GL journal entries
- Re-accrues interest from the payment's effective date
- Optionally assesses an NSF fee per fee schedule
- Recalculates delinquency
Refund Payment¶
Backdate Payment¶
Change the effective date of a payment and reprocess allocation.
Record Reimbursement¶
Record a reimbursement to the borrower (not a payment allocation).
Recurring Payments¶
| Method | Path | Description |
|---|---|---|
GET |
/loans/{id}/recurring-payments |
List recurring payments |
POST |
/loans/{id}/recurring-payments |
Create recurring payment |
POST |
/recurring-payments/{id}/cancel |
Cancel recurring payment |
Create Recurring Payment¶
{
"payment_instrument_id": "772a0622-a4bd-63f6-c938-668877662222",
"amount": "312.50",
"frequency": "monthly",
"start_date": "2026-02-01",
"end_date": null
}
Payment Methods¶
| Value | Description |
|---|---|
ach |
ACH bank transfer |
wire |
Wire transfer |
check |
Check payment |
card |
Credit/debit card |
cash |
Cash payment |
other |
Other method |
See Also¶
- Payment Processing --- Allocation rules, GL entries, suspense handling
- Loans API --- Loan management and nested payment endpoints
- Fees API --- NSF fee assessment on reversals
- General Ledger --- GL entries created by payments