{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudworldmodel-ai/json-schema/cloudworldmodel-ai-x402-settlement-resolution-schema.json",
  "title": "X402SettlementResolution",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudworldmodel-ai-billing-api-openapi.yml#/components/schemas/X402SettlementResolution",
  "type": "object",
  "required": [
    "status"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "confirmed",
        "pending",
        "failed"
      ],
      "description": "Current facilitator settlement state."
    },
    "facilitatorStatus": {
      "type": "string",
      "description": "Raw facilitator status when one was supplied."
    },
    "transactionHash": {
      "type": "string",
      "description": "On-chain transaction hash when settlement is confirmed."
    },
    "transaction": {
      "type": "string",
      "description": "Facilitator transaction identifier when supplied."
    },
    "network": {
      "type": "string",
      "description": "Settlement network reported by the facilitator."
    },
    "payer": {
      "type": "string",
      "description": "Payer address reported by the facilitator."
    },
    "error": {
      "type": "string",
      "description": "Facilitator-declared settlement error, when present."
    },
    "httpStatus": {
      "type": "integer",
      "description": "Facilitator HTTP status when the settlement failed."
    },
    "responseData": {
      "type": "object",
      "description": "Redacted facilitator response data, when available.",
      "additionalProperties": true
    }
  }
}