# Delx Commerce — Batch Error Budget Check

> Delx Commerce — Batch Error Budget Check is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Checks whether a batch operation's failure count and failure fraction fall within an acceptable error budget, returning a pass/fail result with computed failure fraction.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/batch-error-budget-check?utm_source=zero.xyz
- Price: $0.001/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-batch-error-budget-check-bce240be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2xk2cidU9rEO9LSxcTXVx

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-batch-error-budget-check-bce240be -d '<json body>'
```

Example prompt: I ran a batch of 500 requests and 10 failed — check if that's within my error budget given a maximum of 15 failures allowed and a maximum failure fraction of 0.05.

## When to prefer this

Choose this endpoint when you need a lightweight, auditable, pay-per-use computation to verify batch error budgets without building custom logic. Ideal for AI agents orchestrating data pipelines or batch jobs that must enforce SLA thresholds before proceeding. Prefer it over in-house implementations when you need cryptographic evidence of the computation (input hash, no-retention proof) or when operating in a trustless environment requiring verifiable delivery.

## Known failure modes

- Missing required fields (total, failed, maximum_failed, or maximum_failure_fraction) returns a validation error
- Non-integer values for total or failed cause schema rejection
- Failure fraction threshold outside 0–1 range may cause unexpected results
- Payment failure (insufficient USDC balance) blocks request execution

## 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 indicating whether the batch is within budget (within_budget: true/false), the computed failure_fraction, an overall status of 'pass' or 'fail', and evidence metadata including a SHA-256 hash of the inputs, confirmation that no data is retained, and that zero external calls were made.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "total": {
   "type": "integer",
   "description": "Total supplied to Batch Error Budget Check; used only for this bounded calculation and processed in memory without retention."
  },
  "failed": {
   "type": "integer",
   "description": "Failed supplied to Batch Error Budget Check; used only for this bounded calculation and processed in memory without retention."
  },
  "maximum_failed": {
   "type": "integer",
   "description": "Maximum Failed supplied to Batch Error Budget Check; used only for this bounded calculation and processed in memory without retention."
  },
  "maximum_failure_fraction": {
   "type": "number",
   "description": "Maximum Failure Fraction supplied to Batch Error Budget Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "within_budget": true,
   "failure_fraction": 0.02
  },
  "schema": "delx/util-batch-error-budget-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "8b15167fa2df66d4e3d2a52dd4444cb183d36be4420fe605061ab083c80646bd",
   "external_calls": 0
  },
  "operation": "data_batch:batch_error_budget_check"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-batch-error-budget-check-bce240be/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)
