# Agent Spend Bookkeeping

> Agent Spend Bookkeeping is a paid API for AI agents from api.eucompliance.tools, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

Retrieves a bookkeeping-ready statement of an AI agent wallet's USDC payments on Base, converting each to EUR at the ECB rate of the payment date, grouped by payee with EU VAT treatment (reverse charge, Art. 44/196), exportable as JSON or CSV.

## Facts

- Endpoint: GET https://api.eucompliance.tools/x402/agent-spend
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-spend-bookkeeping-bc12a7e6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__pIVfhjckg6vIrN0M_iQx

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 agent-spend-bookkeeping-bc12a7e6
```

Example prompt: Pull a 30-day bookkeeping statement for my agent wallet 0xABCD1234... — convert every USDC payment to EUR using ECB rates, group by payee, add reverse charge VAT treatment, and give me the result as a CSV.

## When to prefer this

Choose this endpoint when you need EU-compliant, auditable bookkeeping records for an AI agent's on-chain USDC payments, especially when EUR conversion at ECB historical rates and reverse charge VAT treatment (Art. 44/196) are required. It is purpose-built for agent micro-payment accounting on Base and saves significant manual reconciliation work compared to querying raw blockchain data and computing VAT manually.

## Known failure modes

- Invalid or malformed wallet address returns a 400 error
- Period out of range (less than 1 or more than 90 days) returns a validation error
- No transactions found for the wallet in the specified period returns an empty statement
- ECB rate unavailable for a specific date may cause conversion gaps or fallback rates
- Network or RPC issues reading Base chain data may cause timeouts or partial results
- Unsupported format value (not 'json' or 'csv') returns a 400 bad request

## How this service works

Bookkeeping statement for an AI agent's own spending: reads every USDC payment of a wallet from Base, converts each to EUR at the ECB rate of the payment date, groups by payee, adds the VAT treatment (reverse charge, Art. 44/196) and returns a bookkeeping-ready statement plus CSV export. Agent micro-payments become auditable.

## Output

A structured statement listing each USDC payment made by the agent wallet over the requested period, with the EUR equivalent at the ECB rate on the payment date, payee grouping, EU VAT treatment annotation (reverse charge, Art. 44/196), and a bookkeeping-ready summary. Available in JSON or CSV format.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "wallet"
     ],
     "properties": {
      "days": {
       "type": "integer",
       "description": "period in days, 1-90, default 30"
      },
      "format": {
       "type": "string",
       "description": "'json' or 'csv'"
      },
      "wallet": {
       "type": "string",
       "description": "agent wallet address (0x…)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-spend-bookkeeping-bc12a7e6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.eucompliance.tools](https://www.zero.xyz/host/api.eucompliance.tools/llms.txt)
