Skip to content
Fourohtwo

x402-web3-fin-gateway.vercel.app/api/v1/reconcile-statements

Deterministically reconciles Alipay, WeChat Pay, Stripe, PayPal, or bank CSV/JSON statements against electronic invoices (CN Digital e-Invoice XML/PDF, UBL 2.1 XML, CSV, JSON) using exact BigInt micro-unit math: 1:1 order-ID matching, vendor+amount+date matching, cross-currency FX spread matching, and N-to-1 subset-sum combined invoice matching. Outputs structured JSON summary, anomaly alerts, UTF

BaseAnswering
POSThttps://x402-web3-fin-gateway.vercel.app/api/v1/reconcile-statements

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402-web3-fin-gateway.vercel.app/api/v1/reconcile-statements", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"invoices":[{"content":"{\"invoiceNumber\":\"INV-9001\",\"orderId\":\"ord_1001\",\"sellerName\":\"AWS Cloud\",\"issueDate\":\"2026-11-21\",\"totalAmount\":99.00,\"currency\":\"USD\"}","filename":"inv_aws.json"}],"statements":[{"content":"id,date,merchant,amount,currency\nord_1001,2026-11-20,AWS Cloud,99.00,USD\n","filename":"stripe_nov.csv"}],"baseCurrency":"USD"}),
});
console.log(await res.json());

Example input

{
  "invoices": [
    {
      "content": "{\"invoiceNumber\":\"INV-9001\",\"orderId\":\"ord_1001\",\"sellerName\":\"AWS Cloud\",\"issueDate\":\"2026-11-21\",\"totalAmount\":99.00,\"currency\":\"USD\"}",
      "filename": "inv_aws.json"
    }
  ],
  "statements": [
    {
      "content": "id,date,merchant,amount,currency\nord_1001,2026-11-20,AWS Cloud,99.00,USD\n",
      "filename": "stripe_nov.csv"
    }
  ],
  "baseCurrency": "USD"
}