# Autonomous Stack Payment Reconciliation

> Autonomous Stack Payment Reconciliation is a paid API for AI agents from theautonomousstack.xyz, paid per call via x402, $1.1/call, status unknown (last checked 2026-10-10).

Matches payment receipts and service fulfillment records against invoices to determine paid, unpaid, and orphaned payment statuses deterministically

## Facts

- Endpoint: POST https://theautonomousstack.xyz/api/v1/tools/payment-reconciliation?utm_source=zero.xyz
- Price: $1.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/autonomous-stack-payment-reconciliation-0715cd65
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iBkysx6hRfYRV06WrN--R

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 autonomous-stack-payment-reconciliation-0715cd65 -d '<json body>'
```

Example prompt: Can you reconcile these 3 invoices against our payment receipts and service delivery records — I need to know which invoices are unpaid, which payments are orphaned, and whether any need escalation? Here are the invoice IDs: inv-001 for 1.1 USDC on base, and the corresponding payment tx hashes and fulfillment statuses.

## When to prefer this

Use this endpoint when you need deterministic, rule-based matching of crypto payment receipts to invoices without relying on an AI model — it is self-hosted with no cloud dependency, suitable for agent workflows that require auditable, reproducible reconciliation results and need to operate without external AI services.

## Known failure modes

- Invoice list empty or exceeds 50 items — validation error
- Payments array exceeds 200 items — validation error
- invoice_id mismatch between invoices and payments arrays — items treated as orphans
- Missing required fields in invoice or payment objects — schema validation failure
- No matching payments found — all invoices returned as unpaid
- Network or asset mismatch causes incorrect grouping

## How this service works

Turnkey autonomous agent starter. Docs + runnable meta-agent, BYO-LLM, one-shot Debian install. No AI. No cloud. Just files.

## Output

Returns a deterministic reconciliation result with per-invoice entries showing status (e.g. paid/unpaid), amount_due, amount_paid, and escalation_required flag; plus a list of orphan_payments not matched to any invoice; and a summary with total invoice count and unpaid count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "invoices",
      "payments",
      "service_calls"
     ],
     "properties": {
      "invoices": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "asset": {
          "type": "string"
         },
         "network": {
          "type": "string"
         },
         "amount_due": {
          "type": "number",
          "description": "Positive amount expected."
         },
         "invoice_id": {
          "type": "string",
          "description": "Unique invoice reference."
         }
        }
       },
       "maxItems": 50,
       "minItems": 1,
       "description": "Invoices that must be reconciled."
      },
      "payments": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "asset": {
          "type": "string"
         },
         "amount": {
          "type": "number"
         },
         "network": {
          "type": "string"
         },
         "tx_hash": {
          "type": "string"
         },
         "invoice_id": {
          "type": "string",
          "description": "Invoice reference."
         },
         "payment_id": {
          "type": "string"
         }
        }
       },
       "maxItems": 200,
       "description": "Payment receipts to match against invoice references."
      },
      "service_calls": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "status": {
          "type": "string",
          "description": "Fulfillment state, for example delivered."
         },
         "call_id": {
          "type": "string"
         },
         "invoice_id": {
          "type": "string"
         }
        }
       },
       "maxItems": 200,
       "description": "Service fulfillment records linked to invoices."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mode": "deterministic",
  "entries": [
   {
    "status": "unpaid",
    "amount_due": 1.1,
    "invoice_id": "inv-001",
    "amount_paid": 0,
    "escalation_required": false
   }
  ],
  "service": "payment-reconciliation",
  "summary": {
   "unpaid": 1,
   "invoices_total": 1
  },
  "orphan_payments": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/autonomous-stack-payment-reconciliation-0715cd65/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from theautonomousstack.xyz](https://www.zero.xyz/host/theautonomousstack.xyz/llms.txt)
