{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/okfindex-com/json-schema/okfindex-com-payment-x402-schema.json",
  "title": "PaymentX402",
  "description": "x402 payment configuration in force. Comes from `planPublic` and is the same across the products.",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/okfindex-com-openapi.yml#/components/schemas/PaymentX402",
  "type": "object",
  "properties": {
    "provider": {
      "type": "string",
      "description": "Always `x402` — the only billing protocol accepted."
    },
    "mode": {
      "type": "string",
      "description": "Seller mode: `live` charges for real, `dev` lets calls through unpaid."
    },
    "network": {
      "type": "string",
      "description": "USDC network: `base` in production, `base-sepolia` in staging."
    },
    "chain_id": {
      "type": "integer",
      "description": "EVM chain ID of the network above, so the wallet signs on the right chain."
    },
    "pay_to": {
      "type": [
        "string",
        "null"
      ],
      "description": "Address that receives the payment."
    },
    "homolog": {
      "type": "boolean",
      "description": "Staging seam on: the loop can be closed without spending USDC."
    },
    "dev": {
      "type": "boolean",
      "description": "Development mode: the 402 is simulated."
    },
    "dev_gate": {
      "type": "boolean",
      "description": "A homologation credential is configured; this grants no access."
    },
    "alternavel": {
      "type": "boolean",
      "description": "Dev only: a request with `X-MM-Pagamento: real` pays for real instead of in test mode."
    },
    "gratis": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Temporarily free SKUs."
    },
    "cobrados": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "SKUs charged even when `gratis` has `*`."
    },
    "facilitator": {
      "type": "string",
      "description": "URL of the facilitator that verifies and settles the payment."
    },
    "asset": {
      "type": "string",
      "description": "Accepted currency — always `USDC`."
    },
    "asset_address": {
      "type": "string",
      "description": "USDC contract on the network above."
    },
    "faucet": {
      "type": [
        "string",
        "null"
      ],
      "description": "Test-USDC faucet; only on base-sepolia."
    },
    "wallets": {
      "type": "object",
      "description": "Links to wallets that speak x402 (metamask, coinbase, base_app)."
    }
  },
  "required": [
    "provider",
    "mode",
    "network",
    "chain_id",
    "pay_to",
    "homolog",
    "dev",
    "dev_gate",
    "alternavel",
    "facilitator",
    "asset",
    "asset_address",
    "faucet",
    "wallets"
  ]
}