# Agent Commerce Gate — Pre-Payment Counterparty Risk Check

> Agent Commerce Gate — Pre-Payment Counterparty Risk Check is a paid API for AI agents from contextiq.trango-compute.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Runs a combined identity, reputation, and payment-challenge check on a counterparty before allowing a payment to proceed, returning a scored allow/warn/block decision.

## Facts

- Endpoint: POST https://contextiq.trango-compute.com/api/v1/policy-check/x402-v2
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-commerce-gate-pre-payment-counterparty-risk-check-653c7916
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aFnKkv48nBo-k7Pot5VuZ

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 agent-commerce-gate-pre-payment-counterparty-risk-check-653c7916 -d '<json body>'
```

Example prompt: Before I send this payment, run a counterparty risk check on the agent I'm about to pay — I need an identity and reputation score with an allow/warn/block decision so I know if it's safe to proceed.

## When to prefer this

Choose this endpoint when an AI agent needs a single unified pre-payment gate that combines identity lookup (ERC-8004), reputation scoring, and payment challenge validation (x402) into one scored allow/warn/block decision — especially in agentic commerce flows where multiple risk signals must be aggregated before funds are released. Prefer this over calling individual inspector endpoints when you need a consolidated policy decision rather than raw inspection data.

## Known failure modes

- Missing or malformed score/decision fields returns a 400 validation error
- Counterparty identity not resolvable via ERC-8004 or x402 lookup leads to a degraded or blocked decision
- Payment challenge validation fails, resulting in a block decision
- Network timeout or upstream inspector service unavailability causes a 503 response
- Insufficient USDC balance to cover the $0.02 per-call fee results in payment rejection

## How this service works

Agent Commerce Gate — pre-payment counterparty risk check (identity + reputation + payment challenge) — per call

## Output

Returns a composite risk score out of a maximum score, a decision string (allow, warn, or block), and an array of individual check reasons each containing the check name, detail description, points awarded, and maximum possible points for that check.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "score": {
   "type": "number"
  },
  "reasons": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "check": {
      "type": "string"
     },
     "detail": {
      "type": "string"
     },
     "points": {
      "type": "number"
     },
     "maxPoints": {
      "type": "number"
     }
    }
   }
  },
  "decision": {
   "type": "string",
   "description": "allow, warn, or block"
  },
  "maxScore": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-commerce-gate-pre-payment-counterparty-risk-check-653c7916/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from contextiq.trango-compute.com](https://www.zero.xyz/host/contextiq.trango-compute.com/llms.txt)
