{"uid":"cap_u9l84d8AjSWHNt-evkNHs","slug":"delx-commerce-batch-completion-gate-a7da25ca","name":"Delx Commerce — Batch Completion Gate","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/batch-completion-gate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"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"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_k5puKktUiVkrtFPyGAyud","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates whether a batch job has met a minimum success fraction threshold based on total, failed, pending, and succeeded counts","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Pipeline quality gate before downstream step","prompt":"My ETL pipeline just finished a batch: 1000 total records, 972 succeeded, 18 failed, 10 still pending. Check if we hit a 0.90 minimum success fraction so we can safely trigger the next stage."},{"title":"Agent fleet task completion check","prompt":"I had a fleet of agents run 200 tasks — 185 succeeded, 10 failed, 5 are pending. Does that pass a 0.85 minimum success threshold?"},{"title":"Batch inference validation before publishing results","prompt":"We ran inference on 300 items: 295 succeeded, 3 failed, 2 pending. Validate whether that meets a 0.98 success fraction gate before we publish the results."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:52.975Z","isFirstParty":false,"canonicalSlug":"delx-commerce-batch-completion-gate-a7da25ca"}