{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-commerce-cloud/json-schema/salesforce-commerce-cloud-qualifier-resolve-request-schema.json",
  "title": "QualifierResolveRequest",
  "description": "Request body for resolving customer group qualifications, campaign promotion eligibility, and data bindings. All fields are optional. An empty body is valid and returns an empty response.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-commerce-cloud-shopper-experience-api-openapi.yml#/components/schemas/QualifierResolveRequest",
  "properties": {
    "customerGroups": {
      "title": "Customer Groups",
      "description": "List of customer group identifiers to resolve qualification for.",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 256
      },
      "maxItems": 50
    },
    "campaignQualifiers": {
      "title": "Campaign Qualifiers",
      "description": "List of campaign qualifiers to resolve. Each qualifier must include a campaignId and may optionally include a promotionId.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/CampaignQualifier"
      },
      "maxItems": 50
    },
    "dataBindings": {
      "title": "Data Bindings",
      "description": "List of data binding requirements to resolve, each specifying a provider type and record identifier.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/DataBindingRequirement"
      },
      "maxItems": 50
    }
  },
  "type": "object",
  "$defs": {
    "CampaignQualifier": {
      "description": "A campaign qualifier, optionally scoped to a specific promotion within the campaign. When promotionId is omitted, the qualifier matches if the campaign itself is active and its scenario rule applies.",
      "properties": {
        "campaignId": {
          "title": "Campaign ID",
          "description": "The campaign identifier.",
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "promotionId": {
          "title": "Promotion ID",
          "description": "Optional promotion identifier. When provided, qualification requires both the campaign and the specific promotion-campaign assignment to apply.",
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        }
      },
      "required": [
        "campaignId"
      ],
      "type": "object"
    },
    "DataBindingRequirement": {
      "description": "A data binding requirement specifying a provider type and record identifier to resolve.",
      "properties": {
        "type": {
          "title": "Type",
          "description": "The data provider type identifier.",
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "id": {
          "title": "ID",
          "description": "The record identifier to resolve from the data provider.",
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        }
      },
      "required": [
        "type",
        "id"
      ],
      "type": "object"
    }
  }
}