{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/dynatrace/main/json-schema/dynatrace-subscription-environment-cost-list-v3-dto-schema.json",
  "title": "SubscriptionEnvironmentCostListV3Dto",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dynatrace-dynatrace-platform-subscription-api-openapi.yml#/components/schemas/SubscriptionEnvironmentCostListV3Dto",
  "type": "object",
  "properties": {
    "data": {
      "description": "Subscription cost data",
      "type": "array",
      "items": {
        "$ref": "#/$defs/SubscriptionEnvironmentCostV3Dto"
      }
    },
    "lastModifiedTime": {
      "type": "string",
      "description": "The time the subscription data was last modified in `2021-05-01T15:11:00Z` format."
    },
    "nextPageKey": {
      "type": "string",
      "description": "The next page key for pagination if next page exists"
    }
  },
  "required": [
    "data",
    "lastModifiedTime",
    "nextPageKey"
  ],
  "$defs": {
    "SubscriptionCapabilityCostReceivedDto": {
      "type": "object",
      "properties": {
        "startTime": {
          "type": "string",
          "description": "The start time for the capability cost in `2021-05-01T15:11:00Z` format."
        },
        "endTime": {
          "type": "string",
          "description": "The end time for the capability cost in `2021-05-01T15:11:00Z` format."
        },
        "value": {
          "type": "number",
          "description": "The total cost for all the capabilities."
        },
        "currencyCode": {
          "type": "string",
          "description": "The currency of the cost."
        },
        "capabilityKey": {
          "type": "string",
          "description": "The key of the subscription capability."
        },
        "capabilityName": {
          "type": "string",
          "description": "The display name of the subscription capability."
        },
        "bookingDate": {
          "type": "string",
          "description": "The booking date of the subscription capability in `2021-05-01T15:11:00Z` format."
        }
      },
      "required": [
        "startTime",
        "endTime",
        "value",
        "currencyCode",
        "capabilityKey",
        "capabilityName",
        "bookingDate"
      ]
    },
    "SubscriptionEnvironmentCostV3Dto": {
      "type": "object",
      "properties": {
        "clusterId": {
          "type": "string",
          "description": "The UUID of the Managed cluster"
        },
        "environmentId": {
          "type": "string",
          "description": "The UUID of the environment."
        },
        "cost": {
          "description": "Subscription costs for the environment.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/SubscriptionCapabilityCostReceivedDto"
          }
        }
      },
      "required": [
        "clusterId",
        "environmentId",
        "cost"
      ]
    }
  }
}