{"uid":"cap_R4Jikl1txF3CfCIg12pfT","slug":"machine-receipt-pickup-redemption-verification-procedure-740d5554","name":"Machine Receipt Pickup Redemption Verification Procedure","description":"Deterministic buyer-side redemption gate for a machine payment receipt used as a physical pickup authorization token. Ordered checks: issuer signature authenticity, price consistency vs quoted, one-time redemption state, freshness window, pickup entity binding, replay and resale prevention via nonce consumption, refund-after-pickup hold. Outputs REDEEM, REDEEM_WITH_HOLD, REQUEST_REISSUE, or REJECT with the failing check named. For agents that paid and must collect goods IRL from a counter,","url":"https://k2so-8080.on.ascii.dev/api/services/agent-facing-decision-procedure-for-verifying-a","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":"Machine receipt pickup redemption 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_MGiv_02GFUUwH7PUKlJvU","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":"Verifies a machine payment receipt as a valid physical pickup authorization token, running ordered checks (signature, price, freshness, one-time use, binding, replay prevention) and returning a deterministic REDEEM, REDEEM_WITH_HOLD, REQUEST_REISSUE, or REJECT decision.","exampleAgentPrompt":"I just paid for an item and have a machine payment receipt — can you run it through the pickup redemption verification to check if the signature is valid, the price matches what I was quoted, it hasn't been redeemed before, and I'm authorized to collect it at the counter?","exampleUseCases":[{"title":"Counter pickup authorization for paid agent","prompt":"I paid for a package and need to collect it IRL — can you verify my payment receipt to confirm it's authentic, not expired, and hasn't been redeemed already so the counter will release it to me?"},{"title":"Replay and resale fraud prevention check","prompt":"Before I hand over this receipt token at the pickup desk, run it through the redemption gate to make sure the nonce hasn't been consumed and it's not a replayed or resold receipt."},{"title":"Price mismatch detection before redemption","prompt":"I got a receipt from the machine but I want to confirm the price on it actually matches the quote I was given before I try to redeem it at the counter — can you check and tell me if I should redeem, request a reissue, or reject it?"}],"resultDescription":"A deterministic decision object containing one of four verdicts — REDEEM, REDEEM_WITH_HOLD, REQUEST_REISSUE, or REJECT — along with the name of any failing check, a prose brief explaining the decision, the generation source (llm, reasoning, or deterministic), and an ISO-8601 timestamp of when the decision was generated.","failureModes":["Invalid or forged issuer signature returns REJECT with 'signature_authenticity' as failing check","Price on receipt does not match quoted price returns REJECT with 'price_consistency' failing check","Receipt nonce already consumed (replay) returns REJECT with 'nonce_consumption' failing check","Receipt outside freshness window returns REJECT with 'freshness_window' failing check","Pickup entity binding mismatch returns REJECT with 'entity_binding' failing check","Receipt in refund-after-pickup hold state returns REDEEM_WITH_HOLD","Upstream service unavailable or payment not confirmed results in non-200 response"],"whenToPreferThis":"Choose this endpoint when an AI agent has completed an x402 payment and needs to physically collect goods IRL at a counter — it provides a complete, ordered, deterministic multi-check gate (signature, price, one-time-use, freshness, binding, replay prevention, refund hold) rather than a single validation step. Prefer over ad-hoc receipt checks when fraud prevention, replay/resale prevention, and refund-hold logic all need to be enforced atomically before releasing goods.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:22.560Z","isFirstParty":false}