{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-cost-management/json-schema/microsoft-azure-cost-management-markup-rule-paged-response-schema.json",
  "title": "MarkupRulePagedResponse",
  "description": "Markup rule list result. It contains a list of Markup rules.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-cost-management-markuprules-api-openapi.yml#/components/schemas/MarkupRulePagedResponse",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The list of markup rules.",
      "items": {
        "$ref": "#/$defs/MarkupRule"
      },
      "x-ms-identifiers": [
        "id"
      ]
    },
    "nextLink": {
      "type": "string",
      "description": "The link (url) to the next page of results."
    }
  },
  "$defs": {
    "CustomerMetadata": {
      "type": "object",
      "description": "The customer billing metadata",
      "properties": {
        "billingAccountId": {
          "type": "string",
          "description": "Customer billing account id"
        },
        "billingProfileId": {
          "type": "string",
          "description": "Customer billing profile id"
        }
      },
      "required": [
        "billingAccountId",
        "billingProfileId"
      ]
    },
    "MarkupRule": {
      "type": "object",
      "description": "Markup rule",
      "properties": {
        "properties": {
          "$ref": "#/$defs/MarkupRuleProperties",
          "description": "Markup rule properties"
        }
      },
      "allOf": [
        {
          "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource"
        }
      ]
    },
    "MarkupRuleProperties": {
      "type": "object",
      "description": "The properties of the markup rule.",
      "properties": {
        "description": {
          "type": "string",
          "description": "The description of the markup rule."
        },
        "percentage": {
          "type": "number",
          "format": "double",
          "description": "The markup percentage of the rule."
        },
        "startDate": {
          "type": "string",
          "format": "date-time",
          "description": "Starting date of the markup rule."
        },
        "endDate": {
          "type": "string",
          "format": "date-time",
          "description": "Ending date of the markup rule."
        },
        "customerDetails": {
          "$ref": "#/$defs/CustomerMetadata",
          "description": "Customer information for the markup rule."
        }
      },
      "required": [
        "percentage",
        "startDate",
        "customerDetails"
      ]
    }
  }
}