{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cm-com/main/json-schema/cm-com-api-logical-account-schema.json",
  "title": "Logical Account",
  "description": "Logical Account that's used for requesting new Voice Accounts.",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cm-com-voice-voice-accounts-v1-openapi.yml#/components/schemas/ApiLogicalAccount",
  "required": [
    "billingType",
    "name"
  ],
  "type": "object",
  "properties": {
    "name": {
      "minLength": 3,
      "type": "string",
      "description": "Name of the new Voice Account."
    },
    "billingType": {
      "$ref": "#/$defs/BillingTypeId"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "BillingTypeId": {
      "title": "Billing Type Id",
      "enum": [
        "Prepaid",
        "Postpaid",
        "Demo"
      ],
      "type": "string",
      "description": "Billing type, can be either Postpaid or Prepaid."
    }
  }
}