{"uid":"cap_wMqv1R-EIodN-ORySQ9ro","slug":"replate-intelligence-api-advanced-receipt-intelligence-0fe85e1e","name":"Replate Intelligence API – Advanced Receipt Intelligence","description":"Paid receipt, personal, and aggregate commerce intelligence for autonomous agents.","url":"https://replate-backend61.vercel.app/api/intelligence/advanced","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"receiptId":{"type":["string","number"]},"receiptHash":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$"},"userAddress":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"}}},"responseSchema":{"type":"json","example":{"report":{},"success":true,"receiptId":"1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TcrGFUSb6Pr1VDHpw8Ltu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a receipt by ID or hash to produce an advanced intelligence report for users or autonomous agents.","exampleAgentPrompt":"Run an advanced intelligence report on receipt ID 42 with hash 0xabc123...def456 for my wallet address 0xDeAdBeEf...1234 and tell me what it finds.","exampleUseCases":[{"title":"Autonomous agent expense auditing","prompt":"Check receipt ID 7 with hash 0x1a2b3c4d...e5f6 for my wallet 0xAbCd...5678 and give me a full intelligence report so I can audit this expense automatically."},{"title":"On-chain purchase verification","prompt":"I need to verify what's in receipt hash 0xdeadbeef...cafe01 — can you pull the advanced intelligence report for wallet 0x9999...0000 and receipt ID 15?"},{"title":"Agent-driven receipt data enrichment","prompt":"For my agent pipeline, analyze receipt ID 3 using hash 0x0123...abcd and wallet 0xFeed...BeeF and return the full intelligence report so we can categorize the purchase."}],"resultDescription":"Returns a JSON object containing a `success` boolean, the `receiptId` echoed back, and a `report` object with advanced intelligence details derived from the submitted receipt — likely including itemized data, spending categories, merchant details, or anomaly flags depending on the receipt content.","failureModes":["Invalid or malformed receiptHash (not matching 0x + 64 hex chars) returns a validation error","Invalid userAddress format (not a valid 40-char hex Ethereum address) causes rejection","Unknown or non-existent receiptId returns an empty or failed report","Insufficient USDC payment (x402 payment not completed) blocks the response","Network or backend timeout on vercel deployment may return a 5xx error"],"whenToPreferThis":"Choose this endpoint when you need advanced, structured intelligence extracted from a specific receipt identified by its ID or on-chain hash, especially in autonomous agent workflows where wallet-level attribution is required. Prefer this over generic OCR or receipt-scanning tools when the receipt is already indexed in the Replate system and you need a rich, machine-readable report rather than raw text extraction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:31:02.208Z","isFirstParty":false}