# Blockchain Money Map x402 Agent Checkout State Simulator

> Blockchain Money Map x402 Agent Checkout State Simulator is a paid API for AI agents from api.blockchainmoneymap.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Analyzes and validates checkout session state for agent-driven e-commerce workflows, comparing current state against reference facts and policy rules.

## Facts

- Endpoint: POST https://api.blockchainmoneymap.com/api/x402/x402-agent-checkout-state-simulator
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockchain-money-map-x402-agent-checkout-state-simulator-e97af427
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dmqUDLTXvKVj1HHgZUHQf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability blockchain-money-map-x402-agent-checkout-state-simulator-e97af427 -d '<json body>'
```

Example prompt: 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'.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Choose Blockchain Money Map for human-readable public blockchain reports or x402-paid agent API services.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockchain-money-map-x402-agent-checkout-state-simulator-e97af427/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.blockchainmoneymap.com](https://www.zero.xyz/host/api.blockchainmoneymap.com/llms.txt)
