{"uid":"cap_FgPjjGEOJIBhBs_QgsmVo","slug":"facilitator-credit-reconciliation-and-top-up-rail-selection-procedure-dc381dc4","name":"Facilitator Credit Reconciliation and Top-Up Rail Selection Procedure","description":"Deterministic procedure for agents after a facilitator top-up or insufficient-credits recovery: reconcile the posted top-up against the facilitator's settled totals, detect missing or double-credited amounts, verify the ledger matches settlement receipts, then select the pre-funding rail (facilitator A vs B, direct vs pay-per-call) by fee, latency, and redundancy before resuming traffic. Inputs: pre-top-up balance, top-up amount, post-top-up balance, facilitator settled totals, rail options","url":"https://k2so.wrong.systems/api/services/facilitator-credit-reconciliation-and-pre-fundin?utm_source=zero.xyz","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":"facilitator credit reconciliation and top-up rail 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":"facilitator-credit-reconciliation-and-pre-fundin","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"facilitator-credit-reconciliation-and-pre-fundin","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":"down","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_ETpuiMS7dx6qT4WdwFTUu","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 deterministic decision procedure for reconciling x402 facilitator credit top-ups and selecting the optimal pre-funding rail after an insufficient-credits event.","exampleAgentPrompt":"My x402 facilitator just ran out of credits and I topped it up — can you run the reconciliation procedure to verify the posted top-up matches my settled totals and tell me whether to route through facilitator A or B, comparing their fees, latency, and redundancy?","exampleUseCases":[{"title":"Post-recovery rail selection for agent fleet","prompt":"My agent fleet just recovered from an insufficient-credits event on our x402 facilitator. We topped up $50 USDC. Can you reconcile the posted amount against our settled totals and tell us whether to resume traffic on the direct rail or pay-per-call, weighing fees and redundancy?"},{"title":"Detecting double-credited top-up in ledger","prompt":"I think our x402 facilitator ledger was double-credited after a top-up — the pre-top-up balance was 10 USDC, we added 20, but the post balance shows 45. Can you run the reconciliation procedure to detect whether there's a missing or extra credit and flag the discrepancy?"},{"title":"Selecting between two facilitator rails by fee and latency","prompt":"We're about to resume high-volume x402 traffic after a credit replenishment and need to decide between facilitator A and facilitator B rails. Can you give me the deterministic rail selection procedure comparing their fees, latency, and redundancy so I can pick the right one?"}],"resultDescription":"A JSON object containing a plain-prose decision procedure (120+ words) as both 'brief' and 'procedure' fields, along with the topic, service slug, generation timestamp, and generation source (deterministic/llm/reasoning). The procedure guides the agent step-by-step through reconciling the top-up, detecting discrepancies, verifying the ledger, and selecting the optimal pre-funding rail.","failureModes":["Missing required query parameters may return an incomplete or generic procedure","Non-payment (no x402 payment header) returns a 402 response requiring USDC payment before content is delivered","Invalid topic override may result in mismatched procedure content","Stale or cached procedures may not reflect the latest rail fee structures"],"whenToPreferThis":"Use this endpoint when an AI agent has just experienced an x402 insufficient-credits event or completed a facilitator top-up and needs a deterministic, structured procedure for both reconciling the credited amounts and choosing the best pre-funding rail. Prefer it over generic payment documentation when you need machine-readable, agent-actionable guidance that covers both ledger verification and rail selection in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T02:28:03.244Z","isFirstParty":false,"canonicalSlug":"facilitator-credit-reconciliation-and-top-up-rail-selection-procedure-dc381dc4"}