{"uid":"cap_RhOV0mtJH-8iGVzEZzq0L","slug":"x402-trust-layer-payment-intent-compiler-69acdf11","name":"x402 Trust Layer Payment Intent Compiler","description":"68 paid x402 trust infrastructure APIs: guard, semantic escrow, mandate diff, certified seller network, KYM, mandates, compliance, disputes, and orchestration.","url":"https://x402trustlayer.xyz/api/payment-intent/compile?utm_source=zero.xyz","method":"POST","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":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["ok","status","allowed","summary","withinBudget","totalEstimatedUsdc","maxBudgetUsdc","currentEndpointCostUsdc","recommendedFirstStep","planSummary","steps","executionOrder","suiteBaseUrl"],"properties":{"ok":{"type":"boolean"},"steps":{"type":"array","items":{"type":"object","required":["step","path","priceUsdc","purpose"],"properties":{"path":{"type":"string"},"step":{"type":"number"},"purpose":{"type":"string"},"priceUsdc":{"type":"number"}}}},"status":{"type":"string"},"allowed":{"type":"boolean"},"summary":{"type":"string"},"planSummary":{"type":"string"},"suiteBaseUrl":{"type":"string"},"withinBudget":{"type":"boolean"},"maxBudgetUsdc":{"type":"number"},"executionOrder":{"type":"array","items":{"type":"string"}},"totalEstimatedUsdc":{"type":"number"},"recommendedFirstStep":{"type":"string"},"currentEndpointCostUsdc":{"type":"number"}}}}}}},"responseSchema":{"type":"json","example":{"ok":true,"steps":[{"path":"/api/guard/pre-x402","step":1,"purpose":"Spend policy + risk","priceUsdc":0.05},{"path":"/api/router/route","step":2,"purpose":"Pick marketplace API","priceUsdc":0.02},{"path":"/api/receipt-auditor/verify","step":3,"purpose":"Verify settlement","priceUsdc":0.05}],"status":"ok","allowed":true,"summary":"Compiled 3-step downstream plan ($0.12 est.) within $1 budget","planSummary":"Step 1: Guard preflight; Step 2: Route marketplace; Step 3: Verify receipt","suiteBaseUrl":"https://x402trustlayer.xyz","withinBudget":true,"maxBudgetUsdc":1,"executionOrder":["POST https://x402trustlayer.xyz/api/guard/pre-x402","POST https://x402trustlayer.xyz/api/router/route","POST https://x402trustlayer.xyz/api/receipt-auditor/verify"],"totalEstimatedUsdc":0.12,"recommendedFirstStep":"POST https://x402trustlayer.xyz/api/guard/pre-x402","currentEndpointCostUsdc":0.15}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.15","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.15/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9rTk5-zLf2V3t0um-Owr0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.15","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compiles a multi-step downstream execution plan for x402 trust infrastructure APIs, estimating total USDC cost and ordering API calls within a specified budget.","exampleAgentPrompt":"Can you compile a GET-based x402 trust layer payment intent plan and tell me which API steps to run, in what order, and whether the total estimated cost fits within a $1 USDC budget?","exampleUseCases":null,"resultDescription":"Returns a JSON object with a boolean ok/allowed status, an ordered array of steps (each with path, price in USDC, and purpose), a human-readable plan summary, total estimated USDC cost, whether the plan is within the specified budget, the recommended first step URL, and the suite base URL.","failureModes":["Invalid or missing 'type' field (must be 'http') returns validation error","Unsupported HTTP method (only GET, HEAD, DELETE allowed) returns enum violation error","Budget exceeded results in withinBudget: false with plan still returned","Service unavailable or upstream routing failure returns non-ok status","Malformed input object causes schema rejection"],"whenToPreferThis":"Use this endpoint when you need to pre-plan and cost-estimate a sequence of x402 trust layer API calls before executing them — especially when operating under a USDC budget constraint and needing an ordered execution roadmap with guard, router, and receipt-auditor steps. Prefer this over ad-hoc API calls when orchestration, budget compliance, and step sequencing matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T18:43:06.749Z","isFirstParty":false,"canonicalSlug":"x402-trust-layer-payment-intent-compiler-69acdf11"}