{"uid":"cap__pIVfhjckg6vIrN0M_iQx","slug":"agent-spend-bookkeeping-bc12a7e6","name":"Agent Spend Bookkeeping","description":"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.","url":"https://api.eucompliance.tools/x402/agent-spend","method":"GET","headers":{},"bodySchema":{"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}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_588FGQVxRwCa-dOZZe3tm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Monthly accounting report for agent fleet","prompt":"Generate a 30-day EUR bookkeeping statement for my agent wallet 0x1234abcd... on Base, grouped by payee with reverse charge VAT annotations, and export it as CSV so I can hand it to my accountant."},{"title":"End-of-quarter VAT compliance audit","prompt":"I need the last 90 days of USDC payments from wallet 0xDeAdBeEf... converted to EUR at the ECB rate of each payment date, with Art. 44/196 VAT treatment applied — return it as JSON so I can review the full breakdown."},{"title":"Quick spend check for a single agent","prompt":"What did my agent wallet 0xFeed1234... spend in the last 7 days? Show me each payment in EUR with the payee and VAT treatment so I can spot any unexpected charges."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:43:09.573Z","isFirstParty":false}