{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/payments-ai/json-schema/payments-ai-site-schema.json",
  "title": "Site",
  "description": "Company, legal entity, and product facts.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/payments-ai-website-openapi.json#/components/schemas/Site",
  "type": "object",
  "required": [
    "name",
    "legal_name",
    "url",
    "products",
    "api"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "legal_name": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "description": {
      "type": "string"
    },
    "logo": {
      "type": "string",
      "format": "uri"
    },
    "documentation_url": {
      "type": "string",
      "format": "uri"
    },
    "same_as": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "contact": {
      "type": "object",
      "properties": {
        "support": {
          "type": "string",
          "format": "email"
        },
        "compliance": {
          "type": "string",
          "format": "email"
        }
      }
    },
    "address": {
      "type": "object",
      "description": "Registered entity address.",
      "properties": {
        "streetAddress": {
          "type": "string"
        },
        "addressLocality": {
          "type": "string"
        },
        "addressRegion": {
          "type": "string"
        },
        "postalCode": {
          "type": "string"
        },
        "addressCountry": {
          "type": "string"
        }
      }
    },
    "products": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "name",
          "url"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "audience": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "pricing_url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    },
    "api": {
      "type": "object",
      "description": "Versioning and deprecation policy for the JSON endpoints on this host.",
      "required": [
        "version",
        "status",
        "notice_period_months",
        "policy"
      ],
      "properties": {
        "version": {
          "type": "string"
        },
        "base_url": {
          "type": "string",
          "format": "uri"
        },
        "status": {
          "type": "string"
        },
        "notice_period_months": {
          "type": "integer",
          "description": "Months a deprecated version keeps responding, counted from the announcement."
        },
        "policy": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "deprecation_header": {
          "type": "string"
        },
        "sunset_header": {
          "type": "string"
        },
        "currently_deprecated": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Paths with a Deprecation header set. Empty when nothing is deprecated."
        },
        "openapi_url": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "machine_readable": {
      "type": "object",
      "additionalProperties": true
    }
  }
}