{"uid":"cap_Sfss5e7_zgurqarthRXFg","slug":"truthbear-tier-2-payment-receipt-x402-d05ad6c3","name":"TruthBear Tier 2 Payment Receipt (x402)","description":"Tiered payment receipt (tier 2): pay once with x402 and get back a short-lived receipt token that /pay/verify checks for you. The tier is fixed by the path - you do not send it. Optional ?ref= carries your own opaque reference, such as a query hash, straight through to the receipt. This mints a receipt rather than returning data, so there is no lookup that can come back empty. $0.03 per call.","url":"https://api.truthbear.co/pay/tier2?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"ref":{"type":"string","description":"optional - opaque reference such as a query hash"},"tier":{"type":"string","description":"optional - ignored; fixed to 2 by this path"}},"additionalProperties":false}}},"output":{"type":"object","required":["type"],"properties":{"type":{"const":"json"}}}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_e72dpOqotGmRKyfDyeUBP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Processes a $0.03 USDC x402 payment and returns a short-lived receipt token for tier 2 access, optionally carrying an opaque reference through to the receipt.","exampleAgentPrompt":"Pay for tier 2 access on TruthBear and get me the receipt token — tag it with my query hash 'abc123def456' so I can verify it later.","exampleUseCases":[{"title":"One-off tier 2 data access","prompt":"I need to pay for a single tier 2 TruthBear call and get a receipt token back — use my reference ID 'report-2024-07-q3' so I can match it to this request."},{"title":"Automated agent payment gating","prompt":"Before fetching the tier 2 gauge data, go ahead and pay the $0.03 USDC fee and grab the receipt token, tagging it with hash 'sha256-feed9a' so the verify step can confirm it."},{"title":"Audit-trail receipt for compliance","prompt":"Run a tier 2 payment on TruthBear and attach the reference string 'compliance-run-882' to the receipt so our audit log can track which queries were paid for."}],"resultDescription":"A short-lived JSON receipt token confirming that the $0.03 USDC x402 payment was processed for tier 2 access. The receipt optionally includes the caller-supplied opaque reference string (e.g. a query hash). This token can subsequently be passed to /pay/verify to confirm access authorization.","failureModes":["Payment rejected — insufficient USDC balance or x402 handshake failure, returns 402 Payment Required","Receipt token expires before it is verified — caller must use token promptly after minting","Invalid or malformed ref parameter — may be silently ignored or cause a 400 Bad Request","Network timeout during payment settlement — receipt not issued, caller should retry","Duplicate payment attempt — may result in a new receipt or an error depending on server deduplication logic"],"whenToPreferThis":"Use this endpoint when you need tier 2 access on api.truthbear.co and must pay via the x402 micropayment protocol at $0.03 USDC per call. Choose this over tier 1 when the downstream resource requires a tier 2 receipt specifically, and over tier 3 when the higher-cost tier is unnecessary. The optional ref parameter makes this ideal when you need to correlate the receipt to a specific query hash or job ID for auditing or verification downstream via /pay/verify.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T18:35:29.091Z","isFirstParty":false,"canonicalSlug":"truthbear-tier-2-payment-receipt-x402-d05ad6c3"}