Developers and method
API and conventions
The calculation conventions behind every number, and the JSON API on the API plan.
API (plan: API)
Send your access key as Authorization: Bearer rmc_... (or x-rmc-key: rmc_...). JSON in, JSON out.
POST /api/v1/check
{"loan_amount":"350000","note_rate":"6.375","term_months":"360","prepaid_finance_charges":"5000",
"odd_days":"17","apor":"6.12","lien":"first","disclosed_apr":"6.6","disclosed_finance_charge":"440000"}
Returns the payment, amount financed, finance charge, APR bracket (apr.lo, apr.hi, apr.apr3), the checks you asked for, and the full schedule (cents).
POST /api/v1/batch
{"loans":[{"loan_id":"A1","loan_amount":"350000","note_rate":"6.375","term_months":"360"}, ...]} -> 202 {"id":"..."}
GET /api/batches/{id} status and summary; GET /api/batches/{id}/results.csv|exceptions.csv|report.pdf returns {"url": ...}, a short-lived download link.Field rules: money in dollars with up to 2 decimals; rates in percent with up to 3 decimals (APOR 2); a value with more decimals is rejected, never silently rounded. Errors are JSON {"error": "..."} with HTTP 400, 401, 402, 413 or 429.
Conventions
- C1 payment = exact level payment rounded to the nearest cent, halves up.
- C2 monthly interest = balance x monthly rate rounded to the nearest cent, halves up.
- C3 the last payment is the remaining balance plus its interest.
- C4 odd-day interest = principal x annual rate x days / 365, nearest cent, collected at consummation as a prepaid finance charge.
- C5 ARM: after the stated number of payments the payment is recomputed at the new rate on the balance for the remaining months.
- APR: Regulation Z Appendix J actuarial method, monthly unit period; a first period of 1 + odd/30 whole periods plus a fraction of a period. The result is a bracket proven by exact integer comparisons (never a float guess). The first-period-irregularity-disregarded APR (12 CFR 1026.17(c)(4)) is shown too, and used only where the loan qualifies.
- Tolerance (12 CFR 1026.22(a)(2)-(5)): 1/8 point for a regular transaction, 1/4 point for an irregular one (multiple advances, irregular payment periods or irregular payment amounts; an odd first period or odd first or final payment does not count). An ARM is regular unless you flag it. The result shows the classification, its reason and which paragraph made the APR accurate. You can override the classification with
transaction_type. - Finance charge: total of payments minus amount financed (loan less prepaid finance charges less odd-day interest). General disclosure test: understated by more than $100 fails (12 CFR 1026.18(d)(1)). Separate context-specific tests, each labelled with its section: rescission (1026.23(g)) and after foreclosure is initiated (1026.23(h)). See Rules and citations.
- Higher-priced: APR at or above APOR + 1.5 points (first lien), + 2.5 (first lien above the conforming limit), + 3.5 (subordinate).
New optional inputs: apor_date (YYYY-MM-DD, the rate-set date), transaction_type (auto, regular, irregular), multiple_advances, irregular_payment_periods, irregular_payment_amounts, refinance_new_creditor (yes or no). GET /api/rules returns every rule with its citation. APOR is not fetched: take it from the FFIEC APOR tables.