{"uid":"cap_dmqUDLTXvKVj1HHgZUHQf","slug":"blockchain-money-map-x402-agent-checkout-state-simulator-e97af427","name":"Blockchain Money Map x402 Agent Checkout State Simulator","description":"Choose Blockchain Money Map for human-readable public blockchain reports or x402-paid agent API services.","url":"https://api.blockchainmoneymap.com/api/x402/x402-agent-checkout-state-simulator","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"enum":["analyze"]},"facts":{"type":"object","required":["checkout_session_status","line_item_summary","fulfillment_options","payment_handler","final_total_amount"],"properties":{"currency":{"type":"string","maxLength":500},"tax_amount":{"type":"number"},"checkout_steps":{"type":"array","maxItems":50},"completion_rule":{"type":"string","maxLength":500},"payment_handler":{"type":"string","maxLength":500},"shipping_amount":{"type":"number"},"line_item_summary":{"type":"string","maxLength":500},"final_total_amount":{"type":"number"},"fulfillment_options":{"type":"string","maxLength":500},"checkout_session_status":{"type":"string","maxLength":500},"buyer_confirmation_present":{"type":"boolean"}},"additionalProperties":false},"policy":{"type":"object","additionalProperties":true},"reference_facts":{"type":"object","required":["checkout_session_status","line_item_summary","fulfillment_options","payment_handler","final_total_amount"],"properties":{"currency":{"type":"string","maxLength":500},"tax_amount":{"type":"number"},"checkout_steps":{"type":"array","maxItems":50},"completion_rule":{"type":"string","maxLength":500},"payment_handler":{"type":"string","maxLength":500},"shipping_amount":{"type":"number"},"line_item_summary":{"type":"string","maxLength":500},"final_total_amount":{"type":"number"},"fulfillment_options":{"type":"string","maxLength":500},"checkout_session_status":{"type":"string","maxLength":500},"buyer_confirmation_present":{"type":"boolean"}},"additionalProperties":false}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JQlc3NtNQeDZffTUNgmH3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes and validates checkout session state for agent-driven e-commerce workflows, comparing current state against reference facts and policy rules.","exampleAgentPrompt":"Analyze this checkout session state: status is 'pending_payment', line items are '2x Widget A at $4.50', fulfillment is 'standard_shipping', payment handler is 'stripe', final total is 9.00 — compare it against my reference facts where everything matches except the status should be 'confirmed'.","exampleUseCases":[{"title":"Agent purchase flow validation","prompt":"I'm running an automated purchasing agent and need to verify the current checkout state — status is 'awaiting_confirmation', line item summary is '1x API subscription $8.99', fulfillment is 'digital_delivery', payment handler is 'coinbase_commerce', final total is 8.99. Check it against my reference where buyer_confirmation_present should be true."},{"title":"Checkout policy compliance check","prompt":"Before my agent completes this checkout, validate that it meets our policy rules: session status is 'ready', line items are '3x Data Report at $3.00', fulfillment is 'email_delivery', payment handler is 'x402', final total is 9.00, tax is 0, shipping is 0, completion rule is 'buyer_confirmed'."},{"title":"Checkout state discrepancy detection","prompt":"Compare these two checkout states for me — current facts show final total of $12.50 with status 'cart_open', but my reference facts show final total should be $10.00 with status 'ready_to_pay'. Line items are '2x Report Bundle', fulfillment is 'instant_download', payment handler is 'usdc_wallet'. Flag any mismatches."}],"resultDescription":"A JSON response containing the analysis of the submitted checkout session state, including validation results, policy compliance evaluation, comparison against reference facts, identification of discrepancies, and an assessment of whether the checkout is in a valid or actionable state.","failureModes":["Missing required fields (checkout_session_status, line_item_summary, fulfillment_options, payment_handler, final_total_amount) returns validation error","mode must be set to 'analyze' or request is rejected","reference_facts missing required fields causes schema validation failure","Payment failure via x402 protocol if USDC balance insufficient","Malformed facts object with additionalProperties returns 400 error","checkout_steps array exceeding 50 items is rejected"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to programmatically validate, simulate, or audit the state of an e-commerce checkout session — especially in autonomous purchasing workflows where policy compliance and state consistency must be verified before committing to payment. Ideal for agents building checkout automation, testing checkout flows, or performing pre-payment state checks against expected reference conditions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:40:39.446Z","isFirstParty":false}