{"uid":"cap_2xk2cidU9rEO9LSxcTXVx","slug":"delx-commerce-batch-error-budget-check-bce240be","name":"Delx Commerce — Batch Error Budget Check","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-error-budget-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"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"}},"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_5A9f9Tv9BW5Y4B2Xo7BFE","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":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Pre-deployment batch validation gate","prompt":"Before I deploy, I processed 1000 records and 18 failed. Can you check if that's within my error budget where I allow at most 20 failures and a maximum failure fraction of 0.03?"},{"title":"SLA compliance check after nightly job","prompt":"My nightly ETL batch finished: 8500 total records, 42 failed. Is that within budget if my SLA says max 50 failures and a failure fraction no higher than 0.005?"},{"title":"Automated QA gate for data pipeline","prompt":"We ran a data pipeline over 250 records with 5 failures — verify this passes our error budget before we continue, given a maximum of 10 failed and a failure fraction cap of 0.04."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:46.047Z","isFirstParty":false,"canonicalSlug":"delx-commerce-batch-error-budget-check-bce240be"}