{"uid":"cap_r1xsJuuUN9wCzx4wPLGwE","slug":"capi2-agent-commerce-commerce-receipt-issuance-7156d7bf","name":"CAPI2 Agent Commerce - Commerce Receipt Issuance","description":"Programmable authority checks and tamper-evident receipts for autonomous agents, sold through sustainable x402 commerce.","url":"https://capi2-agent-commerce.vandurmedries.workers.dev/v1/commerce-receipts/issue","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seller":{"type":"string"},"request":{"type":"object"},"delivery":{"type":"object"}}},"responseSchema":{"type":"json","example":{"protocol":"capi2.commerce_receipt/1.0","receipt_id":"cr_...","request_sha256":"...","delivery_sha256":"..."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nOI6hFxs2zFMpPxxafRd9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Issues cryptographically verifiable commerce receipts with SHA-256 evidence hashes for x402 agent-to-agent transactions","exampleAgentPrompt":"Issue a verifiable commerce receipt for seller 'merchant-agent-42' confirming the delivery was completed — I need the SHA-256 hashes of both the original request and the delivery so I can prove the transaction happened.","exampleUseCases":[{"title":"Auditable agent marketplace sale","prompt":"We just completed a sale through our agent marketplace — can you issue a verifiable receipt for seller 'shop-agent-007' with the request and delivery details so both parties have cryptographic proof of the transaction?"},{"title":"Dispute-proof delivery confirmation","prompt":"I need a tamper-proof commerce receipt for the delivery that just went through — seller is 'vendor-x402-prod', and I want SHA-256 hashes of both the purchase request and the confirmed delivery so we can resolve any future disputes."},{"title":"Sustainable x402 commerce audit trail","prompt":"Create a CAPI2 commerce receipt for this automated purchase — seller ID is 'eco-vendor-9', and I need the receipt ID and evidence hashes archived so our compliance system can verify the transaction was completed sustainably."}],"resultDescription":"Returns a JSON object conforming to the capi2.commerce_receipt/1.0 protocol, including a unique receipt_id (prefixed 'cr_'), a SHA-256 hash of the original commerce request, and a SHA-256 hash of the delivery object — providing cryptographically verifiable evidence that both request and delivery occurred.","failureModes":["Missing or malformed seller field returns a validation error","Malformed request or delivery objects may cause hash generation failure","Payment of $0.01 USDC via x402 must be included or the endpoint returns HTTP 402","Duplicate submissions may produce new receipt IDs rather than idempotent results","Network timeouts on Cloudflare Workers edge may result in incomplete receipt issuance"],"whenToPreferThis":"Choose this endpoint when you need cryptographically verifiable, tamper-proof receipts for agent-to-agent commerce transactions following the x402 protocol. It is especially suited for autonomous agent workflows where both parties need independent proof of a completed transaction without relying on a centralized ledger. Prefer it over generic logging or payment APIs when auditable SHA-256 evidence hashes for both the request and delivery are required for compliance, dispute resolution, or sustainable commerce certification.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:41:09.366Z","isFirstParty":false}