{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-commerce-cloud/json-schema/salesforce-commerce-cloud-catalog-schema.json",
  "title": "Catalog",
  "description": "Document representing a catalog.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-commerce-cloud-catalogs-api-openapi.yml#/components/schemas/Catalog",
  "type": "object",
  "properties": {
    "assignedProductCount": {
      "type": "integer",
      "description": "The count of products assigned to the catalog. It is read only.",
      "format": "int32"
    },
    "assignedSites": {
      "items": {
        "$ref": "#/$defs/Site"
      },
      "type": "array",
      "description": "The sites assigned to the catalog. It is read only."
    },
    "categoryCount": {
      "type": "integer",
      "description": "The category count of catalog. It is read only.",
      "format": "int32"
    },
    "creationDate": {
      "type": "string",
      "description": "Returns the value of attribute 'creationDate'. It is read only.",
      "format": "date-time",
      "maxLength": 30
    },
    "description": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The description of catalog."
    },
    "id": {
      "$ref": "#/$defs/CatalogId"
    },
    "lastModified": {
      "type": "string",
      "description": "Returns the value of attribute 'lastModified'. It is read only.",
      "format": "date-time",
      "maxLength": 30
    },
    "name": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The catalog name."
    },
    "online": {
      "type": "boolean",
      "description": "The online status of catalog."
    },
    "ownedProductCount": {
      "type": "integer",
      "description": "The count of products owned by the catalog. It is read only.",
      "format": "int32"
    },
    "recommendationCount": {
      "type": "integer",
      "description": "The recommendation count of the catalog. It is read only.",
      "format": "int32"
    },
    "rootCategory": {
      "type": "string",
      "description": "The root category of the catalog.  It is read only.",
      "maxLength": 256
    }
  },
  "additionalProperties": {
    "title": "Additional Property Support",
    "description": "This type supports additional properties passed along with the defined properties of this API.\nTo indicate that the properties were defined and expected to be handled as additional properties, they are expected to be prefixed with a `c_`.\nThe type will reject any property that does not fit this pattern, only allowing additional properties beginning with the known prefix."
  },
  "required": [
    "id"
  ],
  "$defs": {
    "CatalogId": {
      "maxLength": 256,
      "minLength": 1,
      "type": "string",
      "description": "The ID of the catalog."
    },
    "Site": {
      "required": [
        "displayName",
        "id"
      ],
      "type": "object",
      "properties": {
        "cartridges": {
          "type": "string",
          "description": "The cartridge path of the site."
        },
        "customerListLink": {
          "required": [
            "customerListId"
          ],
          "type": "object",
          "properties": {
            "customerListId": {
              "type": "string",
              "description": "The customerList ID.",
              "maxLength": 256
            },
            "title": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              },
              "description": "The link title."
            }
          },
          "description": "Document representing a link to a customer list."
        },
        "description": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The description of this site."
        },
        "displayName": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The display name entered by the user."
        },
        "id": {
          "$ref": "#/$defs/SiteId"
        },
        "inDeletion": {
          "type": "boolean",
          "description": "The deletion status of this site, true if in deletion."
        },
        "storefrontStatus": {
          "type": "string",
          "description": "The storefront status of the site, it can be optionally be set to online, maintenance, to_be_deleted, and protected.",
          "enum": [
            "online",
            "maintenance",
            "to_be_deleted",
            "protected"
          ]
        }
      },
      "description": "Document representing a site."
    },
    "SiteId": {
      "minLength": 1,
      "maxLength": 32,
      "description": "The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites",
      "type": "string"
    }
  }
}