{"uid":"cap_y7wC7e4LbhxZ8_36OirQ8","slug":"delx-commerce-json-enum-fields-check-07eb2a53","name":"Delx Commerce — JSON Enum Fields 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/json-enum-fields-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"enums":{"type":"object","description":"Enums supplied to JSON Enum Fields Check; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true},"object":{"type":"object","description":"Object supplied to JSON Enum Fields Check; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true}}},"responseSchema":{"type":"json","example":{"result":{"passed":true,"invalid_fields":[]},"schema":"delx/util-json-enum-fields-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"754b21ec3bf827fca52ae9e586537f3d14e39c664553bd2f27e0638c10c32ba6","external_calls":0},"operation":"data_batch:json_enum_fields_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_BFyHnCcyU5ph95n9voy-r","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 that fields in a JSON object match their expected enum values as defined by a supplied enums schema","exampleAgentPrompt":"Check whether all the enum fields in this JSON object are valid against these enum definitions — enums: {status: ['active','inactive','pending'], role: ['admin','user','guest']}, object: {status: 'active', role: 'superuser', name: 'Alice'}.","exampleUseCases":[{"title":"API payload validation before processing","prompt":"Before I store this incoming API payload, check that its enum fields are valid — enums are {priority: ['low','medium','high'], state: ['open','closed','archived']}, and the object is {priority: 'urgent', state: 'open', id: 42}."},{"title":"Form submission enum compliance check","prompt":"I have a form submission with these enums: {gender: ['male','female','nonbinary','prefer_not_to_say'], subscription: ['free','pro','enterprise']} — can you verify that this object is compliant: {gender: 'female', subscription: 'premium', age: 28}?"},{"title":"Data pipeline quality gate","prompt":"Run an enum fields check on this batch record before it enters our pipeline — enums: {region: ['us','eu','apac'], tier: ['1','2','3']}, object: {region: 'latam', tier: '2', volume: 500}."}],"resultDescription":"Returns a JSON object indicating whether all enum fields passed validation (passed: true/false), a list of invalid_fields (empty array if all pass), a status string ('pass' or 'fail'), an operation identifier, and evidence metadata including whether input was retained (always false), the SHA-256 hash of the input, and the number of external calls made (always 0 — processed in memory).","failureModes":["Malformed JSON input causing parse errors","Object or enums exceeding 128 properties (maxProperties limit)","Missing or null required fields returning validation errors","Unexpected enum key mismatches if enums object keys don't match object keys","Network or payment processing errors returning HTTP 402 or 5xx"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call, no-signup enum field validator for JSON objects — particularly in agentic pipelines where you want verifiable, tamper-evident validation with a SHA-256 input hash and a guaranteed no-retention policy. Prefer this over building custom enum validation logic when you need an auditable, external validation step that produces a structured pass/fail result with evidence metadata, especially in USDC-native micropayment workflows via the x402 protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:01.004Z","isFirstParty":false,"canonicalSlug":"delx-commerce-json-enum-fields-check-07eb2a53"}