{"uid":"cap_zcX7M55Zj17_NQp4C91Q5","slug":"delx-commerce-payout-if-yes-84878dfa","name":"Delx Commerce Payout-If-Yes","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/payout-if-yes?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"shares":{"type":"integer","description":"Input field: shares."}}},"responseSchema":{"type":"json","example":{"payout":200,"schema":"delx/util-payout-if-yes/v1","shares":200}},"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_XFNQPGuDoE4RhIoCbcmi6","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":"Returns a payout value equal to the input share count when the condition is 'yes', enabling conditional pay-per-result logic for agents.","exampleAgentPrompt":"Run a payout-if-yes calculation for 200 shares and tell me what I get back — I only want to pay out if the answer is yes.","exampleUseCases":[{"title":"Agent reward on positive task outcome","prompt":"I have an agent that completed a task and the result came back positive — calculate the payout for 150 shares so it gets compensated only because the answer was yes."},{"title":"Conditional micropayment for data verification","prompt":"I only want to pay for this data result if the check comes back as yes — run the payout-if-yes calculation for 500 shares and show me what the payout would be."},{"title":"Automated share-based bonus distribution","prompt":"Trigger a yes-conditional payout calculation for 300 shares for my agent fleet — I need to know the payout amount before I finalize the USDC transfer on Base."}],"resultDescription":"Returns a JSON object containing the computed payout amount (equal to shares input), the schema identifier 'delx/util-payout-if-yes/v1', and the echoed shares value. Example: {payout: 200, schema: 'delx/util-payout-if-yes/v1', shares: 200}.","failureModes":["Missing or invalid 'shares' field returns a validation error","Non-integer shares value causes a schema rejection","Payment not included via x402 protocol results in 402 Payment Required response","Negative or zero share count may return an error or zero payout","Network or blockchain settlement delays may cause timeout"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-result conditional payout computation that only triggers value when a yes condition is met. Ideal for agent-to-agent micropayment workflows using USDC on Base or Solana via the x402 protocol, where no signup or subscription is required and verifiable delivery matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:55.929Z","isFirstParty":false,"canonicalSlug":"delx-commerce-payout-if-yes-84878dfa"}