# x402 Quality Escrow Settle

> x402 Quality Escrow Settle is a paid API for AI agents from x402-agent-suite-production.up.railway.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-01).

Settles a quality escrow by evaluating service quality and deciding whether to release or withhold escrowed USDC payment based on a quality score threshold.

## Facts

- Endpoint: POST https://x402-agent-suite-production.up.railway.app/api/quality-escrow/settle?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-quality-escrow-settle-fb753739
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1HwwHxvkQk6CLk31C4KAi

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 x402-quality-escrow-settle-fb753739 -d '<json body>'
```

Example prompt: Settle the quality escrow for escrow ID 'escrow-abc123' — check the quality score against the release threshold and release the USDC if it passes, or withhold it if the service quality didn't meet the bar.

## When to prefer this

Use this endpoint when you need to finalize an x402 quality escrow — i.e., after a paid service call has completed and you want to programmatically decide whether the escrowed USDC should be released to the provider based on a quality score threshold. Prefer this over general refund or payment endpoints when the escrow decision is quality-driven rather than dispute-driven.

## Known failure modes

- Missing required 'type' or 'method' fields returns 400 validation error
- Invalid HTTP method (must be GET, HEAD, or DELETE) returns schema validation error
- Escrow ID not found returns error with not-found status
- Quality score below release threshold results in allowed:false and funds withheld
- Payment not yet confirmed causes settlement to fail
- Network or Railway infrastructure downtime returns 5xx error
- Insufficient USDC balance or escrow already settled returns conflict error

## How this service works

24 paid x402 infrastructure APIs for AI agent fleets: buy advisor, audition coach, guard, proxy, MPP, attestations, and pipeline orchestration.

## Output

Returns a JSON object with ok (boolean), allowed (boolean), summary string, decision, action taken, escrowId, escrowStatus, qualityScore, releaseThreshold, amountUsdc, and an array of reasons explaining the settlement decision.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "status",
      "ok",
      "allowed",
      "summary",
      "action",
      "escrowId",
      "escrowStatus",
      "decision",
      "qualityScore",
      "releaseThreshold",
      "amountUsdc",
      "reasons"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "action": {
       "type": "string"
      },
      "status": {
       "type": "string"
      },
      "allowed": {
       "type": "boolean"
      },
      "reasons": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": "string"
      },
      "decision": {
       "type": "string"
      },
      "escrowId": {
       "type": "string"
      },
      "amountUsdc": {
       "type": "number"
      },
      "escrowStatus": {
       "type": "string"
      },
      "qualityScore": {
       "type": "number"
      },
      "releaseThreshold": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "allowed": true,
  "summary": "Paid response after x402 settlement"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-quality-escrow-settle-fb753739/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-suite-production.up.railway.app](https://www.zero.xyz/host/x402-agent-suite-production.up.railway.app/llms.txt)
