{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-workspace/json-schema/google-workspace-customer-license-schema.json",
  "title": "CustomerLicense",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-workspace-appsmarket-customer-license-api-openapi.yml#/components/schemas/CustomerLicense",
  "type": "object",
  "properties": {
    "applicationId": {
      "description": "The ID of the application corresponding to this license query.",
      "type": "string"
    },
    "state": {
      "type": "string",
      "description": "The customer's license status. One of: - `ACTIVE`: The customer has a valid license. - `UNLICENSED`: There is no license. Either this customer has never installed your application or has deleted it."
    },
    "editions": {
      "description": "(Deprecated)",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Editions"
      },
      "deprecated": true
    },
    "kind": {
      "description": "The type of API resource. This is always `appsmarket#customerLicense`.",
      "type": "string"
    },
    "id": {
      "type": "string",
      "description": "The ID of the customer license."
    },
    "customerId": {
      "description": "The domain name of the customer.",
      "type": "string"
    }
  },
  "$defs": {
    "Editions": {
      "type": "object",
      "properties": {
        "seatCount": {
          "type": "integer",
          "description": "(Deprecated)",
          "format": "int32",
          "deprecated": true
        },
        "assignedSeats": {
          "type": "integer",
          "description": "(Deprecated)",
          "format": "int32",
          "deprecated": true
        },
        "editionId": {
          "type": "string",
          "description": "(Deprecated)",
          "deprecated": true
        }
      }
    }
  }
}