AP

    Agent Payment Reconciliation

    by Khristian Kopachelli

    1

    Financial reconciliation for AI agent revenue, matching x402 and crypto settlements to a clean, auditable ledger.

    $12

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    AP

    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

    CategoryCountTotal USDC (Gross)Total FeesNet Revenue
    Matched Charges142355.007.10347.90
    Unmatched Inflows212.500.2512.25
    Underpayments10.500.010.49
    Stuck Charges (>24h)3N/AN/AN/A

    Flagged Issues

    • Unmatched Inflow: 0x742d...af4b - 10.00 USDC. No corresponding charge_id found 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

    1. Review the two unmatched inflows to see if they belong to delayed batch processes.
    2. Trigger a 402 "Payment Required" response for the underpaid charge_abc_123.
    3. 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

    1. Log Charges by recording the logical paid call including the endpoint and intended price.
    2. Ingest Settlements from on-chain movements, capturing transaction hashes and facilitator fees.
    3. Run Matching to link settlements to charges, flagging underpayments or unmatched funds.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

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

    Listed5 days ago

    What's inside

    Frequently Asked Questions

    This skill solves the 'missing link' problem in agent-to-agent payments by automatically matching raw on-chain transaction data with your specific API call logs, ensuring gas costs and facilitator fees are correctly accounted for.

    The skill is designed to work with any agent framework that utilizes x402 payment flows or USDC/stablecoin settlements, and it integrates seamlessly with append-only stores like SQLite, Postgres, or Cloudflare D1.

    Unlike simple prompts, this skill uses an immutable ledger model that prevents common accounting errors like double-booking, rounding discrepancies, or lost audit trails during high-volume settlements.

    Upon purchase, you receive the full logic for the reconciliation engine, standardized ledger schemas for your database, and pre-configured report templates for auditing net versus gross revenue.

    The skill handles discrepancies by flagging unmatched inflows and underpayments for manual review, and it manages refunds through a separate adjustment layer that keeps your original charge records intact.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.