# Government Grant Income Release & Repayment Ledger

> Government Grant Income Release & Repayment Ledger is a paid API for AI agents from finops.halowerk.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-12-02).

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.

## Facts

- Endpoint: POST https://finops.halowerk.com/v1/income-grant-release-repayment-ledger?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/government-grant-income-release-repayment-ledger-ca03d700
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M5JkFmSa1W-wxMTw0C5dU

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability government-grant-income-release-repayment-ledger-ca03d700 -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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).

## Request schema (JSON Schema)

```json
{
 "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",
       "maxi
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/government-grant-income-release-repayment-ledger-ca03d700/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from finops.halowerk.com](https://www.zero.xyz/host/finops.halowerk.com/llms.txt)
