# Delx Commerce — Batch Completion Gate

> Delx Commerce — Batch Completion Gate 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).

Validates whether a batch job has met a minimum success fraction threshold based on total, failed, pending, and succeeded counts

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/batch-completion-gate?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-completion-gate-a7da25ca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_u9l84d8AjSWHNt-evkNHs

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-completion-gate-a7da25ca -d '<json body>'
```

Example prompt: I ran a batch of 500 tasks and 490 succeeded, 5 failed, and 5 are still pending — can you check if that meets a minimum success fraction of 0.95 to decide whether to proceed?

## When to prefer this

Choose this endpoint when you need a lightweight, auditable, pay-per-call gate to decide whether a batch job's success rate meets a threshold before proceeding — especially in agent workflows where verifiable, zero-retention computation and cryptographic evidence (input hash) matter. Prefer it over rolling your own arithmetic when you need a tamper-evident, externally verifiable result with no signup or infrastructure overhead.

## Known failure modes

- Inconsistent counts (total does not equal failed + pending + succeeded) returns counts_consistent: false
- Missing required fields returns a validation error
- Non-numeric input types cause schema rejection
- Payment not received results in HTTP 402 before computation begins

## 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 accepted (accepted), whether it has reached a terminal state (terminal), the computed success fraction, whether the input counts are consistent, an overall pass/fail status, and an evidence block including an input SHA-256 hash, confirmation that no data is retained, and a count of zero external calls made.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "total": {
   "type": "integer",
   "description": "Total supplied to Batch Completion Gate; used only for this bounded calculation and processed in memory without retention."
  },
  "failed": {
   "type": "integer",
   "description": "Failed supplied to Batch Completion Gate; used only for this bounded calculation and processed in memory without retention."
  },
  "pending": {
   "type": "integer",
   "description": "Pending supplied to Batch Completion Gate; used only for this bounded calculation and processed in memory without retention."
  },
  "succeeded": {
   "type": "integer",
   "description": "Succeeded supplied to Batch Completion Gate; used only for this bounded calculation and processed in memory without retention."
  },
  "minimum_success_fraction": {
   "type": "number",
   "description": "Minimum Success Fraction supplied to Batch Completion Gate; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "accepted": true,
   "terminal": true,
   "success_fraction": 0.98,
   "counts_consistent": true
  },
  "schema": "delx/util-batch-completion-gate/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "45cc9ea2025aa13c530cde0b88f740e2a6bf1c0fe987a0a48ab911605f109e36",
   "external_calls": 0
  },
  "operation": "data_batch:batch_completion_gate"
 }
}
```

## More

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