{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-umbrella/json-schema/cisco-umbrella-get-customer-schema.json",
  "title": "GetCustomer",
  "description": "The information about the customer.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-umbrella-providers-api-openapi.yml#/components/schemas/GetCustomer",
  "type": "object",
  "required": [
    "organizationId"
  ],
  "properties": {
    "organizationId": {
      "$ref": "#/$defs/organizationId"
    },
    "organizationTypeId": {
      "type": "integer",
      "description": "The type ID of the customer's organization."
    },
    "originId": {
      "type": "integer",
      "description": "The origin ID created for the customer."
    },
    "organizationName": {
      "$ref": "#/$defs/organizationName"
    },
    "createdAt": {
      "type": "integer",
      "description": "The time when the logo was created. Specify the time in milliseconds."
    },
    "modifiedAt": {
      "type": "integer",
      "description": "The time when the logo was last modified. Specify the time in milliseconds."
    },
    "subscriptionId": {
      "type": "integer",
      "description": "The ID of the subscription."
    },
    "packageId": {
      "$ref": "#/$defs/packageId"
    },
    "packageName": {
      "$ref": "#/$defs/packageName"
    },
    "packageInternalName": {
      "type": "string",
      "description": "The internal name for the package."
    },
    "users": {
      "type": "integer",
      "description": "The number of users in the subscription."
    },
    "startsAt": {
      "type": "string",
      "format": "date",
      "description": "The start date of the subscription."
    },
    "endsAt": {
      "type": "string",
      "format": "date",
      "description": "The end date of the subscription."
    },
    "strength": {
      "$ref": "#/$defs/TrialStrength"
    },
    "adminEmails": {
      "$ref": "#/$defs/adminEmails"
    },
    "streetAddress": {
      "$ref": "#/$defs/streetAddress"
    },
    "streetAddress2": {
      "$ref": "#/$defs/streetAddress2"
    },
    "city": {
      "$ref": "#/$defs/city"
    },
    "state": {
      "$ref": "#/$defs/state"
    },
    "countryCode": {
      "$ref": "#/$defs/countryCode"
    },
    "zipCode": {
      "$ref": "#/$defs/zipCode"
    },
    "dealId": {
      "$ref": "#/$defs/dealId"
    },
    "ppovLifecycle": {
      "$ref": "#/$defs/PpovLifecycle"
    },
    "hasDistributorVisibility": {
      "type": "boolean",
      "description": "Specify whether the distributor has visibility into the trial."
    },
    "isOnboardingWizardCompleted": {
      "type": "boolean",
      "description": "Specify whether the customer has logged into Umbrella."
    },
    "trialId": {
      "type": "string",
      "description": "The MD5 value of the organization ID."
    },
    "accountManagerEmails": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The emails of the account managers."
    },
    "accessRequestId": {
      "type": "integer",
      "description": "The ID of the access request to enable access to the child organization."
    },
    "accessRequestState": {
      "type": "string",
      "description": "The state of the access request.",
      "enum": [
        "approved",
        "denied",
        "pending"
      ]
    },
    "trialPeriod": {
      "type": "string",
      "description": "The period of the trial, including the start and end times."
    },
    "trialExtensionCount": {
      "type": "integer",
      "description": "The number of extensions that are applied to the trial."
    },
    "trialExtendedDays": {
      "type": "integer",
      "description": "The number of days to extend the trial."
    }
  },
  "$defs": {
    "PpovLifecycle": {
      "type": "object",
      "description": "The email details about lifecycle events from a customer trial.",
      "properties": {
        "state": {
          "type": "string",
          "description": "The current state of the customer trial."
        },
        "date": {
          "type": "string",
          "format": "date",
          "description": "The date of the lifecycle event."
        },
        "enabled": {
          "type": "boolean",
          "description": "Specify whether lifecycle emails are enabled."
        },
        "lastSentDate": {
          "type": "string",
          "format": "date",
          "description": "The date when the last lifecycle email was sent."
        },
        "mailIdentifiers": {
          "type": "object",
          "description": "The information about the identifiers for the customer.",
          "properties": {
            "noLoginDayFourMailIdentifier": {
              "type": "string",
              "description": "The email for the customer that did not log in for four days."
            },
            "noOriginDayThreeMailIdentifier": {
              "type": "string",
              "description": "The email for the customer that has not set up an origin for three days."
            },
            "noOriginDaySevenMailIdentifier": {
              "type": "string",
              "description": "The email for the customer that has not set up an origin for seven days."
            }
          }
        },
        "excludedLifecycleEmails": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The emails excluded for the lifecycle of the customer."
        }
      }
    },
    "TrialStrength": {
      "type": "object",
      "description": "The number of features consumed by a customer trial.",
      "required": [
        "customerLoggedIn",
        "lastLoginDate",
        "identitiesCreated",
        "hasTraffic",
        "trialStrength"
      ],
      "properties": {
        "customerLoggedIn": {
          "type": "boolean",
          "description": "Specify whether the trial customer logged into their organization."
        },
        "lastLoginDate": {
          "type": "string",
          "format": "iso-date-time",
          "description": "The date when the customer last logged into their organization."
        },
        "identitiesCreated": {
          "type": "integer",
          "description": "The number of identities that were created."
        },
        "hasTraffic": {
          "type": "boolean",
          "description": "Specify whether the organization has traffic."
        },
        "trialStrength": {
          "type": "string",
          "description": "The number of features used by the trial.\nThe hyphen (`-`) character indicates no features.",
          "enum": [
            "Low",
            "Medium",
            "High",
            "-"
          ]
        }
      }
    },
    "adminEmails": {
      "type": "array",
      "description": "The list of the administrator email addresses.",
      "items": {
        "type": "string",
        "format": "email"
      }
    },
    "city": {
      "type": "string",
      "description": "The name of the city where the customer's organization is located.",
      "minLength": 1,
      "maxLength": 255
    },
    "countryCode": {
      "type": "string",
      "description": "The country code of the customer's organization.",
      "minLength": 2,
      "maxLength": 3
    },
    "dealId": {
      "type": "string",
      "description": "The deal ID."
    },
    "organizationId": {
      "type": "integer",
      "description": "The ID of the organization."
    },
    "organizationName": {
      "type": "string",
      "description": "The name of the customer's organization."
    },
    "packageId": {
      "type": "integer",
      "enum": [
        99,
        101,
        107,
        171,
        202,
        246,
        248,
        250,
        252,
        312
      ],
      "description": "The ID of the Umbrella package.\nTo create or update a customer with either the SIG Essentials or SIG Advantage package, you must have a license for the selected package.\n| Package Id | Package Name                     |\n|:----------:|----------------------------------|\n| `99`       | Umbrella Professional            |\n| `101`      | Umbrella Platform                |\n| `107`      | Umbrella Insights                |\n| `171`      | Cisco Umbrella for Wireless LAN  |\n| `202`      | Cisco Umbrella for EDU           |\n| `246`      | Umbrella DNS Security Essentials |\n| `248`      | Umbrella DNS Security Advantage  |\n| `250`      | Umbrella SIG Essentials          |\n| `252`      | Umbrella SIG Advantage           |\n| `312`      | Umbrella Not for Resale (NFR) MSP DNS Advantage |\n\nNote: The Umbrella NFR MSP DNS Advantage package (`312`) is only available in the Umbrella Secure MSP console."
    },
    "packageName": {
      "type": "string",
      "enum": [
        "Umbrella Professional",
        "Umbrella Platform",
        "Umbrella Insights",
        "Cisco Umbrella for Wireless LAN",
        "Cisco Umbrella for EDU",
        "Umbrella DNS Security Essentials",
        "Umbrella DNS Security Advantage",
        "Umbrella SIG Essentials",
        "Umbrella SIG Advantage",
        "Umbrella Not for Resale (NFR) MSP DNS Advantage"
      ],
      "description": "The name of the Umbrella package.\nTo create or update a customer with either the SIG Essentials or SIG Advantage package, you must have a license for the selected package.\n| Package Id | Package Name                     |\n|:----------:|----------------------------------|\n| `99`       | Umbrella Professional            |\n| `101`      | Umbrella Platform                |\n| `107`      | Umbrella Insights                |\n| `171`      | Cisco Umbrella for Wireless LAN  |\n| `202`      | Cisco Umbrella for EDU           |\n| `246`      | Umbrella DNS Security Essentials |\n| `248`      | Umbrella DNS Security Advantage  |\n| `250`      | Umbrella SIG Essentials          |\n| `252`      | Umbrella SIG Advantage           |\n| `312`      | Umbrella Not for Resale (NFR) MSP DNS Advantage |\n\nNote: The Umbrella NFR MSP DNS Advantage package (`312`) is only available in the Umbrella Secure MSP console."
    },
    "state": {
      "type": "string",
      "description": "The name of the customer's state.",
      "minLength": 1,
      "maxLength": 50
    },
    "streetAddress": {
      "type": "string",
      "description": "The street address for the customer.",
      "minLength": 1,
      "maxLength": 255
    },
    "streetAddress2": {
      "type": "string",
      "description": "The second street address for the customer.",
      "minLength": 1,
      "maxLength": 255
    },
    "zipCode": {
      "type": "string",
      "description": "The zip code of the customer's organization.",
      "minLength": 1
    }
  }
}