{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chnlsync-com/json-schema/chnlsync-com-service-line-input-schema.json",
  "title": "ServiceLineInput",
  "description": "Create a service line the buyer runs today (or is about to install).",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chnlsync-com-openapi.yml#/components/schemas/ServiceLineInput",
  "properties": {
    "site_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Site Id"
    },
    "provider": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "title": "Provider"
    },
    "account_number": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 80
        },
        {
          "type": "null"
        }
      ],
      "title": "Account Number"
    },
    "circuit_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 80
        },
        {
          "type": "null"
        }
      ],
      "title": "Circuit Id"
    },
    "description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 300
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "quantity": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 100000.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Quantity"
    },
    "mrc": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 10000000.0,
          "minimum": 0.0
        },
        {
          "type": "string",
          "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Mrc"
    },
    "term_months": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 120.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Term Months"
    },
    "term_start": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Term Start"
    },
    "term_end": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Term End"
    },
    "notice_days": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 365.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Notice Days"
    },
    "auto_renew": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Auto Renew"
    },
    "service_type": {
      "type": "string",
      "enum": [
        "connectivity",
        "ucaas",
        "ccaas",
        "cpaas",
        "cx_ai",
        "sase",
        "security",
        "cloud",
        "colocation",
        "mobility",
        "pots",
        "other"
      ],
      "title": "Service Type"
    },
    "currency": {
      "type": "string",
      "const": "USD",
      "title": "Currency",
      "default": "USD"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "pending_install",
        "cancelling",
        "disconnected"
      ],
      "title": "Status",
      "default": "active"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "provider",
    "service_type"
  ]
}