{"uid":"cap_M5JkFmSa1W-wxMTw0C5dU","slug":"government-grant-income-release-repayment-ledger-ca03d700","name":"Government Grant Income Release & Repayment Ledger","description":"Original fully recognized and cash-received INCOME-related government grant, fixed program support ratio, related costexpenses and repayment events reconstruct systematic grantincome release, deferredcredit, deferred-first refund application, excessrepayment expense and grant-slice cash/P&L bridge. OWN chronology within EACH row: eligible cost recognized FIRST, income=min(remainingdeferred,cost*ratio), then repayment uses remaining deferred credit before excess immediate expense.","url":"https://finops.halowerk.com/v1/income-grant-release-repayment-ledger?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"report":{"type":"object","required":["eligible_cost","support_before_cap","income_release","deferred_after_release","repayment","deferred_repayment_used","repayment_expense","deferred_after","net_grant_pnl","income_to_date","repayment_expense_to_date","net_grant_cash","balance_gap","final_deferred","total_income","total_repayment_expense","total_repaid","total_net_grant_pnl"],"propertyNames":{"enum":["eligible_cost","support_before_cap","income_release","deferred_after_release","repayment","deferred_repayment_used","repayment_expense","deferred_after","net_grant_pnl","income_to_date","repayment_expense_to_date","net_grant_cash","balance_gap","final_deferred","total_income","total_repayment_expense","total_repaid","total_net_grant_pnl"]},"patternProperties":{"^(final_deferred|total_income|total_repayment_expense|total_repaid|total_net_grant_pnl)$":{"type":"object","required":["n","d"],"properties":{"d":{"type":["string","null"],"pattern":"^[1-9][0-9]{0,47}$","maxLength":48},"n":{"type":["string","null"],"pattern":"^(0|-?[1-9][0-9]{0,47})$","maxLength":49}},"additionalProperties":false}},"additionalProperties":{"type":"array","items":{"type":"object","required":["n","d"],"properties":{"d":{"type":["string","null"],"pattern":"^[1-9][0-9]{0,47}$","maxLength":48},"n":{"type":["string","null"],"pattern":"^(0|-?[1-9][0-9]{0,47})$","maxLength":49}},"additionalProperties":false},"maxItems":6,"minItems":1}},"periods":{"type":"array","items":{"type":"object","required":["eligible_cost_domain","repaid"],"properties":{"repaid":{"type":"integer","maximum":1000000,"minimum":0},"eligible_cost_domain":{"type":"array","items":{"type":"integer","maximum":1000000,"minimum":0},"maxItems":2,"minItems":1,"uniqueItems":true}},"additionalProperties":false},"maxItems":6,"minItems":1},"grant_amount":{"type":"integer","maximum":1000000,"minimum":0},"support_ratio_bps":{"type":"integer","maximum":10000,"minimum":1}}},"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_QR0-D85ZdYVCNLY_C4X73","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":"Reconstructs systematic grant income release, deferred credit, repayment allocation, and P&L bridge from government grant parameters and period activity, following a strict per-row chronology of cost recognition, income release, then repayment.","exampleAgentPrompt":"We received a government grant of $500,000 at a 60% support ratio. Over 4 periods our eligible costs were $80,000, $120,000, $100,000, and $90,000, with repayments of $0, $20,000, $0, and $30,000. Can you reconstruct the full income release, deferred credit, repayment allocation, and net grant P&L ledger for each period, including cumulative totals?","exampleUseCases":[{"title":"Quarterly grant income recognition schedule","prompt":"We have a government grant of $200,000 with a 70% support ratio (7000 bps). Our eligible costs each quarter were $50,000 and $60,000, with no repayments. Build me the full income release and deferred credit ledger showing each quarter's income, deferred balance, and running P&L totals."},{"title":"Partial grant repayment expense modeling","prompt":"Our company received a $300,000 grant at a 50% support ratio. In period 1 we had $80,000 eligible costs, in period 2 $60,000 and a $40,000 repayment. Show me how the repayment is absorbed by remaining deferred credit first, and how much becomes an excess repayment expense in period 2, with the full cash and P&L bridge."},{"title":"Multi-period grant close-out reconciliation","prompt":"We're closing out a $150,000 government grant at 8000 bps support ratio over 3 periods with eligible costs of $30,000, $50,000, and $25,000, and repayments of $0, $10,000, and $20,000. Reconstruct the complete grant ledger including final deferred balance, total income recognized, total repayment expense, and total net grant P&L."}],"resultDescription":"Returns a structured ledger with per-period rows showing: eligible cost, support amount before cap, income release, deferred credit after release, repayment amount, deferred credit used for repayment, repayment expense, deferred balance after repayment, net grant P&L, cumulative income to date, cumulative repayment expense to date, net grant cash, and balance gap. Also returns summary totals for final deferred balance, total income, total repayment expense, total repaid, and total net grant P&L — all expressed as exact rational numbers (numerator/denominator pairs).","failureModes":["Invalid support_ratio_bps outside 1–10000 returns validation error","Period arrays exceeding 6 items are rejected","Numerator/denominator strings not matching pattern (e.g. leading zeros, zero denominator) cause schema rejection","Mismatched array lengths between report fields and periods cause computation failure","grant_amount of 0 or missing required fields returns 400 bad request","Rational number overflow beyond 48-digit denominator limit causes rejection"],"whenToPreferThis":"Use this endpoint when you need an exact, standards-compliant reconstruction of government grant accounting across multiple periods — specifically when you need the precise per-row chronological waterfall of cost recognition → income release → deferred credit drawdown → repayment expense, with arbitrary-precision rational arithmetic. Prefer this over generic spreadsheet or ledger tools when auditability, exact deferred credit tracking, and IAS 20-style grant accounting compliance are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-02T19:46:40.125Z","isFirstParty":false,"canonicalSlug":"government-grant-income-release-repayment-ledger-ca03d700"}