{"uid":"cap_ewECPs7BVUPMS-tKdV6Qo","slug":"multi-rail-x402-settlement-route-selection-decision-procedure-2d9dc8fa","name":"Multi-Rail x402 Settlement Route Selection Decision Procedure","description":"Define a complete decision procedure for an agent that, upon receiving an x402 offer, must select the optimal settlement rail from multiple available options. Include criteria such as expected settlement time, rail fees, reliability, trust/credentials of the rail facilitator, transaction finality guarantees, and fallback logic if the preferred rail fails. Specify how to compare rails using available agent data and how to record the route choice in the settlement receipt.","url":"https://k2so.wrong.systems/api/services/multi-rail-x402-settlement-route-selection-an-ag","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":"multi-rail x402 settlement route selection 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":{"type":"json","example":{"ok":true,"paid":true,"result":{"ok":true,"brief":"plain prose decision procedure (120+ words)","model":"deepseek/deepseek-v4-flash-0731","topic":"string topic","service":"multi-rail-x402-settlement-route-selection-an-ag","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"multi-rail-x402-settlement-route-selection-an-ag","provider":"K-2SO"}},"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_2CH-iZ0YgJFitdPI8BeYV","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":"Returns a plain-prose decision procedure (120+ words) guiding an AI agent on how to select the optimal payment rail when settling an x402 transaction across multiple options.","exampleAgentPrompt":"I need a decision procedure for choosing the right payment rail when settling an x402 transaction — walk me through how an autonomous agent should evaluate and select the best multi-rail route.","exampleUseCases":[{"title":"Autonomous agent optimizing payment rail","prompt":"My agent needs to decide between multiple x402 payment rails at runtime — can you get me a step-by-step decision procedure it can follow to pick the lowest-cost, most reliable settlement route?"},{"title":"Building x402 payment routing logic","prompt":"I'm building an AI agent that calls paid x402 APIs and I want a clear written procedure it can use to choose which payment rail to settle through when more than one option is available."},{"title":"Auditing agent payment decisions","prompt":"I want to review the decision logic my agent should use for multi-rail x402 settlement route selection — fetch me the current procedure so I can verify it aligns with our compliance requirements."}],"resultDescription":"A JSON object containing a plain-prose decision procedure of 120+ words describing how an agent should evaluate and select a payment rail for multi-rail x402 settlement. Includes the model used to generate it, a topic label, service slug, ISO-8601 generation timestamp, and generation source (llm, reasoning, or deterministic). The 'brief' and 'procedure' fields carry the actionable guidance text.","failureModes":["HTTP 402 returned if payment has not been settled — agent must pay exact USDC amount and retry with PAYMENT-SIGNATURE header","Invalid or missing payment signature returns payment error detail","Network or upstream LLM failure may return ok:false with error detail","Topic override with unsupported content may yield a generic procedure"],"whenToPreferThis":"Choose this endpoint when an autonomous agent needs structured, prose-form guidance on selecting a payment rail at x402 settlement time and no internal routing logic exists. Prefer it over static documentation when you want a dynamically generated, model-produced procedure that can be refreshed on demand. Ideal for agents operating in the x402 ecosystem that need machine-readable decision guidance rather than human-facing documentation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:58:33.536Z","isFirstParty":false}