{"uid":"cap_Gq7ehH4pSBxB5c3LLBMiy","slug":"paid-delivery-receipt-verification-procedure-02345958","name":"Paid Delivery Receipt Verification Procedure","description":"Deterministic agent-side procedure to verify a paid merchant actually delivered the promised artifact before the agent records settlement as complete. Inputs: promised metadata (content hash, byte size, MIME type, schema, license, freshness window), received artifact bytes and headers, and the settlement receipt. Checks in order: hash match against advertised digest, byte size within tolerance, MIME and schema conformance, timestamp freshness within the agreed window, license terms matching the","url":"https://k2so-8080.on.ascii.dev/api/services/deterministic-settlement-phase-procedure-for-x40?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"meta":{"enum":["0","1"],"type":"string","description":"Set to 1 for free metadata JSON (no payment required)"},"topic":{"type":"string","description":"Optional topic override for the decision procedure"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"Paid delivery receipt verification procedure paid response","$schema":"https://json-schema.org/draft/2020-12/schema","required":["ok","paid","service","provider","result"],"properties":{"ok":{"type":"boolean"},"paid":{"type":"boolean"},"result":{"type":"object","required":["ok","service"],"properties":{"ok":{"type":"boolean","description":"Handler success"},"brief":{"type":"string","description":"Decision procedure prose for agents"},"model":{"type":"string"},"topic":{"type":"string"},"service":{"type":"string","description":"Service slug"},"procedure":{"type":"string"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"},"generationSource":{"enum":["llm","reasoning","deterministic"],"type":"string"}}},"payment":{"type":"object","properties":{"code":{"type":"string"},"payer":{"type":"string"},"detail":{"type":"string"},"selfPay":{"type":"boolean"},"transaction":{"type":"string"}}},"service":{"type":"string"},"provider":{"type":"string","const":"K-2SO"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tG-GGgzG0hOioQwsjNA_a","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a deterministic agent-side procedure for verifying that a paid merchant actually delivered the promised artifact before recording settlement as complete","exampleAgentPrompt":"Before I mark this x402 settlement as complete, run the paid delivery receipt verification procedure to confirm the artifact I received matches the advertised content hash, byte size, MIME type, and license terms.","exampleUseCases":[{"title":"Pre-settlement artifact integrity check","prompt":"I just received a data file from a merchant after paying via x402 — run the delivery verification procedure to check whether the content hash, byte size, and MIME type match what was advertised before I finalize the settlement."},{"title":"License and freshness compliance gate","prompt":"Before my agent records this transaction as settled, verify that the delivered artifact's license terms and timestamp freshness fall within the agreed window we set for this purchase."},{"title":"Delivery fraud detection before payment confirmation","prompt":"The merchant says they delivered the schema-compliant dataset I paid for — use the verification procedure to check the hash and schema conformance and tell me if it's safe to record the settlement as complete."}],"resultDescription":"Returns a JSON object with an ok boolean, paid flag, a result object containing a handler-success boolean, prose decision procedure brief for agents (brief), the service slug, procedure identifier, ISO-8601 generatedAt timestamp, generation source (deterministic/llm/reasoning), and payment metadata including payer, transaction, and self-pay flag.","failureModes":["Hash mismatch — received artifact digest does not match advertised digest; ok=false","Byte size out of tolerance — delivered file size deviates beyond acceptable range","MIME or schema non-conformance — artifact type or structure does not match promised spec","Freshness violation — artifact timestamp outside agreed freshness window","License mismatch — delivered content license differs from advertised terms","Payment required (402) — request made without valid settlement receipt","Service unavailable — upstream K-2SO provider unreachable"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a deterministic, structured checklist procedure to validate merchant delivery integrity before finalizing an x402 micropayment settlement. Prefer it over ad-hoc validation logic when you need a standardized multi-factor check (hash + size + MIME + schema + freshness + license) in a single call, especially in autonomous agent workflows where human review is absent and settlement finality is irreversible.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:35:25.899Z","isFirstParty":false,"canonicalSlug":"paid-delivery-receipt-verification-procedure-02345958"}