{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-commerce-cloud/json-schema/salesforce-commerce-cloud-promotions-result-schema.json",
  "title": "PromotionsResult",
  "description": "Document representing the active promotion details for a single product. Contains only promotion-related fields; no price, images, availability, variations, or other product data are included. Active promotions are filtered by customer group, campaign date range, and time slot.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-commerce-cloud-shopper-products-api-openapi.yml#/components/schemas/PromotionsResult",
  "properties": {
    "productId": {
      "description": "The ID of the product.",
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "productPromotions": {
      "description": "An array of active customer promotions applicable to this product, sorted by promotion priority\nusing SORT_BY_EXCLUSIVITY ordering (exclusivity → rank → promotion class → discount type →\nbest discount → ID). This array can be empty. Coupon promotions are not returned in this array.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/schemas-ProductPromotion"
      }
    }
  },
  "required": [
    "productId"
  ],
  "type": "object",
  "$defs": {
    "schemas-ProductPromotion": {
      "description": "Document representing an active promotion applicable to a product.",
      "properties": {
        "promotionId": {
          "description": "The unique ID of the promotion.",
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "calloutMsg": {
          "description": "The localized call-out message of the promotion.",
          "type": "string",
          "minLength": 1,
          "maxLength": 4000
        },
        "promotionalPrice": {
          "format": "double",
          "description": "The promotional price for this product. Only present for PRODUCT class promotions.",
          "type": "number"
        }
      },
      "required": [
        "promotionId",
        "calloutMsg"
      ],
      "type": "object"
    }
  }
}