Agent Payment Reconciliation
Financial reconciliation for AI agent revenue, matching x402 and crypto settlements to a clean, auditable ledger.
$12
Agent Payment Reconciliation
Example session with this skill installed
Reconcile today's x402 settlements against the charge log and identify any unmatched inflows or underpayments.
- Read your context and instructions
- Compiled the agent payment reconciliation
I have completed the daily reconciliation for the provided transaction logs. I matched 142 settlements to existing charges, flagged 2 unmatched inflows, and identified 1 underpayment.
Daily Reconciliation Report
| Category | Count | Total USDC (Gross) | Total Fees | Net Revenue |
|---|---|---|---|---|
| Matched Charges | 142 | 355.00 | 7.10 | 347.90 |
| Unmatched Inflows | 2 | 12.50 | 0.25 | 12.25 |
| Underpayments | 1 | 0.50 | 0.01 | 0.49 |
| Stuck Charges (>24h) | 3 | N/A | N/A | N/A |
Flagged Issues
- Unmatched Inflow:
0x742d...af4b- 10.00 USDC. No correspondingcharge_idfound in the 10-minute window. - Unmatched Inflow:
0x31b9...22e1- 2.50 USDC. Possible direct transfer without API metadata. - Underpayment:
charge_abc_123. Expected: 1.00 USDC. Received: 0.50 USDC. Settlement ignored per matching rules.
Audit Summary
- Invariant Check:
sum(settlements) - sum(adjustments) = 360.15 USDC. - Status: Passed with 3 warnings.
- Ledger Integrity: All records appended to immutable store.
Next steps
- Review the two unmatched inflows to see if they belong to delayed batch processes.
- Trigger a 402 "Payment Required" response for the underpaid
charge_abc_123. - Investigate the 3 stuck charges to determine if the provider failed to broadcast the transaction.
Connects securely to your tools. The creator never sees your data.
About this skill
Tracking agent revenue is difficult when dealing with on-chain settlements, facilitator fees, and gas costs. This skill enforces ledger discipline for crypto and stablecoin payments, ensuring every transaction is accounted for and auditable.
What it does
- Multi-source reconciliation matches x402 flows, direct transfers, and exchange payouts into a structured ledger.
- Automated matching links settlements to charges using payment-payload hashes or time-window heuristics.
- Dispute handling manages refunds and adjustments without modifying original charge records.
- Fee tracking records gross and net revenue separately to account for facilitator fees and gas costs.
- Anomaly detection flags unmatched inflows and stuck charges for manual review.
How it works
- Log Charges by recording the logical paid call including the endpoint and intended price.
- Ingest Settlements from on-chain movements, capturing transaction hashes and facilitator fees.
- Run Matching to link settlements to charges, flagging underpayments or unmatched funds.
- Generate Reports using the daily reconciliation checklist to verify revenue and audit trails.
Frameworks & tools
Works with any append-only store such as SQLite, Postgres, or Cloudflare D1. Designed for x402 payment flows and USDC/stablecoin receipt streams.
Why this beats prompting it yourself
Generic prompts often fail to maintain strict accounting invariants, leading to "rounded" payments or lost audit trails. This skill enforces an immutable ledger model that prevents double-booking and ensures every cent is tracked from tx_hash to net revenue.
Use cases
- Reconcile paid API revenue for AI agents.
- Track USDC settlements across multiple chains.
- Audit facilitator fees and gas costs for agent-to-agent transactions.
- Manage refunds and credits for failed agent tasks.
Known limitations
Does not support chargebacks as they do not exist in crypto. Requires a facilitator-verified payment response for high-trust environments rather than client-side transaction hashes.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 days ago
Requires
Nothing to install.
Permissions
No special permissions declared or detected
What's inside
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.