{
  "swagger": "2.0",
  "info": {
    "version": "v1",
    "title": "Citrix.CloudServices.Core.Api"
  },
  "host": "core.citrixworkspacesapi.net",
  "schemes": [
    "https"
  ],
  "paths": {
    "/{customer}/servicestates": {
      "get": {
        "tags": [
          "ServiceState"
        ],
        "summary": "Get all service states of the customer.",
        "operationId": "ServiceState_GetAll",
        "consumes": [],
        "produces": [
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "customer",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "schema": {
              "$ref": "#/definitions/Citrix.CloudServices.Core.Api.InternalModels.ServiceStatesResultModel"
            }
          }
        }
      }
    }
  },
  "definitions": {
    "Citrix.CloudServices.Core.Api.InternalModels.ServiceStatesResultModel": {
      "description": "A collection of service entitlement states.",
      "type": "object",
      "properties": {
        "items": {
          "description": "A collection of service entitlement states.",
          "type": "array",
          "items": {
            "$ref": "#/definitions/Citrix.CloudServices.Core.Api.InternalModels.ServiceStateResultModel"
          }
        }
      }
    },
    "Citrix.CloudServices.Core.Api.InternalModels.ServiceStateResultModel": {
      "description": "A service entitlement state.",
      "type": "object",
      "properties": {
        "serviceName": {
          "description": "The Citrix Cloud service that has fulfilled the entitlement, if any.",
          "maxLength": 100,
          "minLength": 0,
          "type": "string"
        },
        "state": {
          "description": "The customer's entitlement state in the service.",
          "enum": [
            "NotOnboarded",
            "Expired",
            "Default",
            "ProductionTrialDenied",
            "ProductionTrialPending",
            "ProductionTrialApproved",
            "ProductionTrial",
            "ProductionTrialDeleted",
            "ProductionPending",
            "Production",
            "PartnerProductionTrialDenied",
            "PartnerProductionTrialPending",
            "PartnerProductionTrialApproved",
            "PartnerProductionTrial",
            "PartnerProductionTrialDeleted",
            "PartnerProductionPending",
            "PartnerProduction",
            "NotOnboardedTrialPending"
          ],
          "type": "string"
        },
        "type": {
          "description": "The service's entitlement type.",
          "enum": [
            "ProductionTrial",
            "Production",
            "PartnerProductionTrial",
            "PartnerProduction",
            "Default"
          ],
          "type": "string"
        },
        "quantity": {
          "format": "int32",
          "description": "The number of product units (typically in users)\r\nthe entitlement confers.",
          "type": "integer"
        },
        "daysToExpiration": {
          "format": "int32",
          "description": "The number of days until expiration.",
          "type": "integer"
        },
        "notificationsDisabled": {
          "description": "Administrator notifications enabled.",
          "type": "boolean"
        },
        "futureEntitlementStartDate": {
          "format": "date-time",
          "description": "Date of future entitlements if any.",
          "type": "string"
        }
      }
    }
  }
}