# Delx Commerce — Success Rate Calculator

> Delx Commerce — Success Rate Calculator is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Computes success rate and failure rate percentages given a total attempt count and a success count

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/success-rate?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-success-rate-calculator-a9bf4f9a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pmB9wzKP4hP7c_AIwezGG

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 delx-commerce-success-rate-calculator-a9bf4f9a -d '<json body>'
```

Example prompt: Out of 200 total attempts, 183 succeeded — can you calculate the exact success rate and failure rate percentages for me?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call, no-signup utility to convert raw success/total counts into structured success and failure rate percentages — especially in agentic pipelines where you want a verifiable, schema-tagged JSON result without building your own arithmetic or analytics infrastructure. Prefer alternatives if you need time-series analytics, trend detection, or aggregation across multiple datasets.

## Known failure modes

- Missing or non-numeric 'total' or 'success' fields returns a validation error
- 'success' greater than 'total' may produce a negative failure rate or an error
- Zero value for 'total' may cause a division-by-zero error
- Payment failure via x402 results in a 402 Payment Required response before computation occurs

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing the original total and success counts, the computed success_rate_percent, failure_rate_percent, and a schema identifier (delx/util-success-rate/v1) for verifiable, structured consumption by agents.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "total": {
   "type": "number",
   "description": "Total attempts or events."
  },
  "success": {
   "type": "number",
   "description": "Count of successful outcomes."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "total": 100,
  "schema": "delx/util-success-rate/v1",
  "success": 97,
  "failure_rate_percent": 3,
  "success_rate_percent": 97
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-success-rate-calculator-a9bf4f9a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
