# Invoice Duplicate & Overpayment Recovery Analyzer

> Invoice Duplicate & Overpayment Recovery Analyzer is a paid API for AI agents from mcp-factory.bowling-anthony.workers.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Analyzes invoices, payments, and credits to detect overpayments, duplicate imports, and generate credit recovery request evidence bundles

## Facts

- Endpoint: POST https://mcp-factory.bowling-anthony.workers.dev/invoice-duplicate-recovery/analyze
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/invoice-duplicate-overpayment-recovery-analyzer-55c1dfac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Z7RHcRFzZnyeX88VZz-lE

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 invoice-duplicate-overpayment-recovery-analyzer-55c1dfac -d '<json body>'
```

Example prompt: I think we overpaid vendor V1 on invoice INV-100 — we have two payments of $100 each plus a $20 credit applied. Can you run the invoice duplicate recovery analysis and tell me if we're owed a refund and how much?

## When to prefer this

Use this endpoint when you need to programmatically detect overpayments, duplicate payments, or misapplied credits across vendor invoices and need a structured evidence bundle suitable for initiating a credit recovery request. It is specifically suited to accounts-payable reconciliation workflows where multiple payments and credits may apply to a single invoice. Prefer this over manual spreadsheet reconciliation or generic accounting APIs when you need auditability and a machine-readable evidence bundle with per-invoice breakdowns.

## Known failure modes

- Mismatched currency codes across payments and invoices may cause computation errors
- Missing or malformed invoice/payment IDs result in orphan records rather than matched analysis
- Incorrect minor unit digit specification leads to wrong amount calculations
- Payments referencing non-existent invoices returned as orphan_payments with no credit request generated
- Invalid or missing vendor_id may result in empty or unlinked result sets

## How this service works

Customer-input analysis tools with per-call x402 v2 USDC payments on Base. Discovery and examples are free.

## Output

Returns a JSON object with per-invoice summaries including gross, net, credited, expected, overpaid, and outstanding amounts in both decimal and minor units; a list of credit requests with reason codes and full evidence bundles (linked payment IDs, credit IDs, invoice details); lists of orphan payments, orphan credits, and duplicate imports; and a disclaimer clarifying this is a computed evidence bundle, not a legal or financial determination.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "counts": {
   "issues": 0,
   "credits": 1,
   "invoices": 1,
   "payments": 2,
   "credit_requests": 1,
   "duplicate_imports": 0
  },
  "invoices": [
   {
    "issues": [],
    "summary": {
     "net": "180.00",
     "gross": "200.00",
     "credited": "20.00",
     "expected": "100.00",
     "overpaid": "80.00",
     "net_minor": "18000",
     "gross_minor": "20000",
     "outstanding": "0.00",
     "credited_minor": "2000",
     "expected_minor": "10000",
     "overpaid_minor": "8000",
     "outstanding_minor": "0"
    },
    "currency": "USD",
    "vendor_id": "V1",
    "credit_ids": [
     "C1"
    ],
    "invoice_id": "INV-100",
    "payment_ids": [
     "P1",
     "P2"
    ],
    "minor_unit_digits": 2,
    "excluded_payment_ids": []
   }
  ],
  "disclaimer": "Computed evidence bundle for requesting vendor credit review. Not a legal or financial determination of refund entitlement, and no request or financial action is sent or taken automatically.",
  "orphan_credits": [],
  "credit_requests": [
   {
    "amount": "80.00",
    "reason": "net_payments_exceed_supplied_invoice_total",
    "currency": "USD",
    "evidence": {
     "credits": [
      {
       "amount": "20.00",
       "credit_id": "C1",
       "payment_id": "P2"
      }
     ],
     "invoice": {
      "amount": "100.00",
      "currency": "USD",
      "vendor_id": "V1",
      "invoice_id": "INV-100"
     },
     "payments": [
      {
       "amount": "100.00",
       "currency": "USD",
       "payment_id": "P1"
      },
      {
       "amount": "100.00",
       "currency": "USD",
       "payment_id": "P2"
      }
     ]
    },
    "vendor_id": "V1",
    "credit_ids": [
     "C1"
    ],
    "invoice_id": "INV-100",
    "payment_ids": [
     "P1",
     "P2"
    ],
    "amount_minor": "8000"
   }
  ],
  "orphan_payments": [],
  "duplicate_imports": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/invoice-duplicate-overpayment-recovery-analyzer-55c1dfac/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-factory.bowling-anthony.workers.dev](https://www.zero.xyz/host/mcp-factory.bowling-anthony.workers.dev/llms.txt)
