{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/graphiant/main/json-schema/graphiant-v1-msp-managed-enterprise-contract-info-get-response-schema.json",
  "title": "v1MspManagedEnterpriseContractInfoGetResponse",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/graphiant-msp-api-openapi.yml#/components/schemas/v1MspManagedEnterpriseContractInfoGetResponse",
  "type": "object",
  "properties": {
    "enterprises": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/manaV2ManagedEnterpriseContractInfo"
      }
    },
    "mspConsumedCredits": {
      "type": "number",
      "format": "float",
      "description": "All credits consumed by the MSP over the entirety of its contracts"
    },
    "mspContract": {
      "$ref": "#/$defs/commonBillingContract"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "commonBillingContract": {
      "type": "object",
      "properties": {
        "contractedCredits": {
          "type": "number",
          "format": "float",
          "description": "Number of credits agreed upon for the entirety of the current contract"
        },
        "expirationDate": {
          "$ref": "#/$defs/commonBillingTimePeriod"
        }
      },
      "additionalProperties": false
    },
    "commonBillingTimePeriod": {
      "type": "object",
      "properties": {
        "month": {
          "type": "integer",
          "format": "int32"
        },
        "year": {
          "type": "integer",
          "format": "int32"
        }
      },
      "additionalProperties": false
    },
    "manaV2ManagedEnterpriseContractInfo": {
      "type": "object",
      "properties": {
        "consumedCredits": {
          "type": "number",
          "format": "float",
          "description": "All credits consumed over the entirety the enterprise's contracts"
        },
        "enterpriseContract": {
          "$ref": "#/$defs/commonBillingContract"
        },
        "enterpriseId": {
          "type": "integer",
          "format": "int64"
        },
        "enterpriseName": {
          "type": "string"
        }
      },
      "additionalProperties": false
    }
  }
}