{"uid":"cap_uQ2lOu6cjOoYJms9CMIjH","slug":"daily-simple-interest-payment-ledger-71e13a3f","name":"Daily Simple Interest Payment Ledger","description":"Originalprincipal/annualbps/datedpayments determine outstanding-principal-onlydailyaccrual,interest-first/principalallocation,unappliedoverpay andconservedendbalances. OWN365day/no-fees/no-capitalization/exactrationalprofile;NOTuniversalcontract/servicer/legal/tax/creditadvice/payoffquote/actualpaymentorrefundcertification. Oneboundedpaymentcapturekeeps2wholehistories.Strictkeys/objectorderirrelevant/paymentarraysordered/canonicaldecimaln-dstringsorbothnull.","url":"https://finops.halowerk.com/v1/daily-simple-interest-payment-ledger?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"report":{"type":"object","required":["steps","final_principal","final_interest","interest_accrued_total","paid_interest_total","paid_principal_total","unapplied_total"],"properties":{"steps":{"type":"array","items":{"type":"object","required":["accrued","interest_paid","principal_paid","unapplied","principal_after","interest_after"],"propertyNames":{"enum":["accrued","interest_paid","principal_paid","unapplied","principal_after","interest_after"]},"additionalProperties":{"type":"object","required":["n","d"],"properties":{"d":{"anyOf":[{"type":"string","pattern":"^[1-9][0-9]{0,63}$","maxLength":64},{"type":"null"}]},"n":{"anyOf":[{"type":"string","pattern":"^(0|[1-9][0-9]{0,63})$","maxLength":64},{"type":"null"}]}},"additionalProperties":false}},"maxItems":4,"minItems":1}},"propertyNames":{"enum":["steps","final_principal","final_interest","interest_accrued_total","paid_interest_total","paid_principal_total","unapplied_total"]},"additionalProperties":{"type":"object","required":["n","d"],"properties":{"d":{"anyOf":[{"type":"string","pattern":"^[1-9][0-9]{0,63}$","maxLength":64},{"type":"null"}]},"n":{"anyOf":[{"type":"string","pattern":"^(0|[1-9][0-9]{0,63})$","maxLength":64},{"type":"null"}]}},"additionalProperties":false}},"end_day":{"type":"integer","maximum":365,"minimum":0},"payments":{"type":"array","items":{"type":"object","required":["day","amount_minor_domain"],"properties":{"day":{"type":"integer","maximum":365,"minimum":0},"amount_minor_domain":{"type":"array","items":{"type":"integer","maximum":1000000,"minimum":0},"maxItems":2,"minItems":1}},"additionalProperties":false},"maxItems":4,"minItems":1},"annual_rate_bps":{"type":"integer","maximum":10000,"minimum":0},"principal_minor":{"type":"integer","maximum":1000000,"minimum":0}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RZhAoeDmjEvfDvf1nM6ZO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a daily simple interest (DSI) loan payment ledger — allocating payments interest-first then principal, tracking unapplied overpayments, and producing end balances across up to 4 payments within a 365-day window.","exampleAgentPrompt":"I have a $5,000 loan at 8% annual interest (800 bps). Can you calculate the daily simple interest payment ledger for a 365-day term with two payments: $2,000 on day 90 and $3,200 on day 270, and show me how much goes to interest vs principal each time and what the final balance is?","exampleUseCases":[{"title":"Auto loan payment allocation check","prompt":"I took out a $10,000 auto loan at 6% annual interest (600 bps). I made two payments: $4,500 on day 60 and $6,000 on day 180. Can you build the daily simple interest ledger showing exactly how much of each payment went to interest vs principal, any unapplied overpayment, and the final outstanding balance at day 365?"},{"title":"Personal loan early payoff simulation","prompt":"I have a $3,500 personal loan at 12% annual interest (1200 bps). What does the payment ledger look like if I pay $1,000 on day 30, $1,000 on day 120, and $2,000 on day 200? Show me the interest-first allocation, leftover principal, and any unapplied amounts at day 300."},{"title":"Incremental ledger update with new payment","prompt":"I already have a partial DSI ledger report for a $7,500 loan at 950 bps and need to add a new payment of $3,000 on day 180 and extend the report to day 220. Can you rebuild the full two-history ledger with the updated payment, showing daily accrual, interest and principal paid, and end balances?"}],"resultDescription":"Returns a structured report object containing: per-payment step details (accrued interest, interest paid, principal paid, unapplied overpayment, principal after, interest after) all as exact rational fractions (n/d strings or null), plus final aggregate totals for principal, interest accrued, interest paid, principal paid, and unapplied amounts — all in minor currency units using exact decimal arithmetic.","failureModes":["Invalid basis points (must be 0–10000) returns validation error","Principal or payment amounts exceeding 1,000,000 minor units rejected","Payment day or end_day outside 0–365 range rejected","More than 4 payments in the payments array rejected","Malformed rational fraction strings (n/d not matching pattern) cause schema rejection","Payments array not in chronological order may produce incorrect ledger","Missing required fields in report object for incremental update causes error"],"whenToPreferThis":"Use this endpoint when you need exact rational arithmetic (no floating-point rounding) for a daily simple interest loan ledger within a single 365-day term, with interest-first payment allocation, unapplied overpayment tracking, and up to 4 payments. It is NOT a general-purpose loan servicer, payoff quote engine, or legal/tax advisor — choose it specifically for precise DSI amortization computation where exact fractional arithmetic matters and you need both a fresh and an incremental (two-history) ledger view.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T12:49:52.663Z","isFirstParty":false,"canonicalSlug":"daily-simple-interest-payment-ledger-71e13a3f"}