# BRAINIAC Grant Compliance Expense Eligibility Check

> BRAINIAC Grant Compliance Expense Eligibility Check is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-17).

Checks a list of expenses against user-supplied grant rules to determine which expense categories are eligible or ineligible under those rules.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/grant-compliance/expense-eligibility-check?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-grant-compliance-expense-eligibility-check-2aef4313
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0rRxxUoCeDipAcaxVUpuh

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 brainiac-grant-compliance-expense-eligibility-check-2aef4313 -d '<json body>'
```

Example prompt: Can you check these grant expenses against our eligibility rules — staff salary ($4,000, category: staff) and alcohol for the launch ($200, category: hospitality) — where the rules say staff is eligible and hospitality is ineligible?

## When to prefer this

Use this endpoint when you need a fast, rule-based eligibility screen for a batch of expenses against explicit grant category rules you supply yourself — especially in automated compliance pipelines or pre-submission audits. It is not a substitute for official funder review and explicitly disclaims any formal compliance determination, so prefer it for internal pre-checks, flagging, or reporting preparation rather than final approval workflows.

## Known failure modes

- Missing required fields (id, description, category, amount) on any expense returns a validation error
- No rules provided or empty rules array causes a schema validation failure
- Expense category not covered by any supplied rule results in a 'not supplied' status rather than an error
- Category strings exceeding 80 characters are rejected
- More than 80 expenses or 40 rules in a single request will be rejected by schema limits
- Network or payment failure via x402 results in no response being returned

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

Returns a JSON object with each expense's eligibility status (matches_rule or excluded_by_rule), a detail explanation per expense, a list of compliance findings with codes and observations, the timestamp of the check, and explicit limitations disclaiming that this is not an official approval and compliance has not been formally determined.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rules": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "category",
     "decision"
    ],
    "properties": {
     "category": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "decision": {
      "enum": [
       "eligible",
       "ineligible"
      ],
      "type": "string"
     }
    },
    "additionalProperties": false
   },
   "maxItems": 40,
   "minItems": 1
  },
  "expenses": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "description",
     "category",
     "amount"
    ],
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "amount": {
      "type": "number",
      "maximum": 1000000000000,
      "minimum": 0
     },
     "category": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "description": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 80,
   "minItems": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "excluded_by_rule",
  "expenses": [
   {
    "id": "E1",
    "amount": 4000,
    "detail": "A supplied rule says this category is eligible. This is not a funder decision.",
    "status": "matches_rule",
    "category": "staff",
    "description": "Coordinator salary"
   },
   {
    "id": "E2",
    "amount": 200,
    "detail": "A supplied rule says this category is ineligible. This is not a funder decision.",
    "status": "excluded_by_rule",
    "category": "hospitality",
    "description": "Alcohol for launch"
   }
  ],
  "findings": [
   {
    "code": "expense_rules_only",
    "kind": "observed",
    "detail": "An expense is excluded only when a supplied rule says that category is ineligible. Other categories stay not supplied."
   }
  ],
  "checkedAt": "2026-11-02T19:00:00.000Z",
  "limitations": [
   "This is not an official approval, and compliance was not determined.",
   "Rules, eligibility criteria, budgets, and evidence are used only when they are supplied in the request.",
   "Labeled lines are read as written. Unlabeled prose is not turned into a grant rule.",
   "A matching evidence id does not judge whether the evidence is sufficient."
  ],
  "officialApproval": false,
  "complianceDetermined": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-grant-compliance-expense-eligibility-check-2aef4313/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
