CategoryProductAssignment

Document representing a category product assignment.

CommerceE-CommerceHeadless CommerceSalesforceB2C CommerceB2B CommerceDemandware

Properties

Name Type Description
catalogId object The ID of the catalog.
categoryId object The ID of the category.
creationDate string Returns the value of attribute 'creationDate'. It is read only.
lastModified string Returns the value of attribute 'lastModified'. It is read only.
owningCatalogName object The name of the catalog that owns the product.
position number The position of product category assignment.
product object
productId object
productName object The name of the product.
View JSON Schema on GitHub

JSON Schema

salesforce-commerce-cloud-category-product-assignment-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-commerce-cloud/json-schema/salesforce-commerce-cloud-category-product-assignment-schema.json",
  "title": "CategoryProductAssignment",
  "description": "Document representing a category product assignment.",
  "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/CategoryProductAssignment",
  "required": [
    "catalogId",
    "categoryId",
    "productId"
  ],
  "type": "object",
  "properties": {
    "catalogId": {
      "allOf": [
        {
          "$ref": "#/$defs/CatalogId"
        }
      ],
      "description": "The ID of the catalog."
    },
    "categoryId": {
      "allOf": [
        {
          "$ref": "#/$defs/CategoryId"
        }
      ],
      "description": "The ID of the category."
    },
    "creationDate": {
      "type": "string",
      "description": "Returns the value of attribute 'creationDate'. It is read only.",
      "format": "date-time",
      "maxLength": 30
    },
    "lastModified": {
      "type": "string",
      "description": "Returns the value of attribute 'lastModified'. It is read only.",
      "format": "date-time",
      "maxLength": 30
    },
    "owningCatalogName": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The name of the catalog that owns the product."
    },
    "position": {
      "type": "number",
      "description": "The position of product category assignment.",
      "format": "double"
    },
    "product": {
      "$ref": "#/$defs/Product"
    },
    "productId": {
      "$ref": "#/$defs/ProductId"
    },
    "productName": {
      "type": "object",
      "description": "The name of the product.",
      "additionalProperties": false
    }
  },
  "$defs": {
    "CatalogCategoryId": {
      "required": [
        "catalogId",
        "categoryId"
      ],
      "type": "object",
      "properties": {
        "catalogId": {
          "$ref": "#/$defs/CatalogId"
        },
        "categoryId": {
          "$ref": "#/$defs/CategoryId"
        }
      },
      "description": "Document representing a catalog category ID."
    },
    "CatalogId": {
      "maxLength": 256,
      "minLength": 1,
      "type": "string",
      "description": "The ID of the catalog."
    },
    "CategoryId": {
      "maxLength": 256,
      "minLength": 1,
      "type": "string",
      "description": "The ID of the category."
    },
    "CurrencyCode": {
      "description": "A three letter uppercase currency code conforming to the [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) standard, or the string `N/A` indicating that a currency is not applicable.",
      "pattern": "^([A-Z][A-Z][A-Z]|N/A)$",
      "type": "string"
    },
    "ImageGroup": {
      "required": [
        "images",
        "viewType"
      ],
      "type": "object",
      "properties": {
        "images": {
          "items": {
            "$ref": "#/$defs/MediaFile"
          },
          "type": "array",
          "description": "The images of the image group."
        },
        "variationAttributes": {
          "items": {
            "$ref": "#/$defs/VariationAttribute"
          },
          "type": "array",
          "description": "Returns a list of variation attributes applying to this image group."
        },
        "viewType": {
          "type": "string",
          "description": "The image view type."
        }
      },
      "description": "Document representing an image group containing a list of images for a particular view type and an optional variation value."
    },
    "MarkupText": {
      "required": [
        "markup",
        "source"
      ],
      "type": "object",
      "properties": {
        "markup": {
          "type": "string",
          "description": "The rendered HTML."
        },
        "source": {
          "type": "string",
          "description": "The raw markup text."
        }
      },
      "description": "Document representing markup text."
    },
    "Master": {
      "required": [
        "masterId"
      ],
      "type": "object",
      "properties": {
        "masterId": {
          "$ref": "#/$defs/ProductId"
        },
        "orderable": {
          "type": "boolean",
          "description": "A flag indicating whether at least one of the variants is orderable."
        },
        "price": {
          "type": "number",
          "description": "The minimum sales price of the related variants.",
          "format": "double"
        },
        "priceMax": {
          "type": "number",
          "description": "The maximum sales of related variants.",
          "format": "double"
        },
        "prices": {
          "type": "object",
          "additionalProperties": {
            "type": "number",
            "format": "double"
          },
          "description": "prices"
        }
      },
      "description": "Representation of a group of variant products by an attribute. This is a non-buyable entity, provides inheritable attributes for it's product variants, and is used for navigation. *Does'nt have a SKU.*"
    },
    "MediaFile": {
      "required": [
        "path"
      ],
      "type": "object",
      "properties": {
        "absUrl": {
          "type": "string",
          "description": "The absolute URL with request protocol."
        },
        "alt": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The alternative image text."
        },
        "disBaseUrl": {
          "type": "string",
          "description": "The Dynamic Image Service (DIS) base URL for product images only."
        },
        "path": {
          "type": "string",
          "description": "The raw media file path."
        },
        "title": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The image title."
        }
      },
      "description": "Document representing media file."
    },
    "Money": {
      "description": "A combination of a Currency and an amount of that Currency.",
      "type": "object",
      "properties": {
        "currencyMnemonic": {
          "$ref": "#/$defs/CurrencyCode"
        },
        "value": {
          "format": "double",
          "description": "The amount of money for the given currency.",
          "type": "number"
        }
      }
    },
    "Product": {
      "required": [
        "id"
      ],
      "type": "object",
      "properties": {
        "assignedCategories": {
          "items": {
            "$ref": "#/$defs/CatalogCategoryId"
          },
          "type": "array",
          "description": "The catalog categories that the product is assigned to. It is read only."
        },
        "ats": {
          "type": "number",
          "description": "The Available To Sell (ATS) inventory value of the product. This is a calculated value.",
          "format": "double"
        },
        "brand": {
          "type": "string",
          "description": "The brand of the product."
        },
        "bundledProducts": {
          "items": {
            "$ref": "#/$defs/Product"
          },
          "type": "array",
          "description": "The array of bundled products which the product includes. It is read only."
        },
        "classificationCategory": {
          "$ref": "#/$defs/CatalogCategoryId"
        },
        "creationDate": {
          "type": "string",
          "description": "Returns the value of attribute 'creationDate'. It is read only.",
          "format": "date-time"
        },
        "defaultVariantId": {
          "type": "string",
          "description": "The ID of the product's default variant. It is read only."
        },
        "ean": {
          "type": "string",
          "description": "The European Article Number of the product."
        },
        "id": {
          "$ref": "#/$defs/ProductId"
        },
        "image": {
          "$ref": "#/$defs/MediaFile"
        },
        "imageGroups": {
          "items": {
            "$ref": "#/$defs/ImageGroup"
          },
          "type": "array",
          "description": "The array of product image groups. It is read only."
        },
        "inStock": {
          "type": "boolean",
          "description": "The flag that indicates if the product is in stock, or not. This is a calculated value."
        },
        "lastModified": {
          "type": "string",
          "description": "Returns the value of attribute 'lastModified'. It is read only.",
          "format": "date-time"
        },
        "localizedTaxClassId": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The localized tax class identifier of the product."
        },
        "longDescription": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/MarkupText"
          },
          "description": "The localized long description of the product."
        },
        "manufacturerName": {
          "type": "string",
          "description": "The name of the product's manufacturer."
        },
        "manufacturerSku": {
          "type": "string",
          "description": "The SKU of the product's manufacturer."
        },
        "master": {
          "$ref": "#/$defs/Master"
        },
        "name": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The localized name of the product."
        },
        "online": {
          "type": "boolean",
          "description": "The flag that indicates if the product is online, or not. This is a calculated value."
        },
        "onlineFlag": {
          "type": "object",
          "additionalProperties": {
            "type": "boolean"
          },
          "description": "The site-specific online status of the product."
        },
        "owningCatalogId": {
          "type": "string",
          "description": "The ID of the catalog that owns the product."
        },
        "owningCatalogName": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The localized name of the catalog that owns the product. It is read only."
        },
        "pageDescription": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The localized page description of the product."
        },
        "pageKeywords": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The localized page keywords of the product."
        },
        "pageTitle": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The localized page title of the product."
        },
        "price": {
          "type": "number",
          "description": "The price of the product.",
          "format": "double"
        },
        "priceCurrency": {
          "type": "string",
          "description": "The currency code for a product's price."
        },
        "pricePerUnit": {
          "type": "number",
          "description": "The price per unit of the product. This is a read only field.",
          "format": "double"
        },
        "primaryCategories": {
          "items": {
            "$ref": "#/$defs/CatalogCategoryId"
          },
          "type": "array",
          "description": "The primary catalog categories that the product is assigned to. It is read only."
        },
        "primaryCategoryId": {
          "type": "string",
          "description": "The ID of the products primary category. This is a read only field. It is read only."
        },
        "productBundles": {
          "items": {
            "$ref": "#/$defs/Product"
          },
          "type": "array",
          "description": "The array of product bundles which the product belongs to. It is read only."
        },
        "productOptions": {
          "items": {
            "$ref": "#/$defs/ProductOption"
          },
          "type": "array",
          "description": "The array of product options. This is applicable for products of type \"option\". It is read only."
        },
        "productSets": {
          "items": {
            "$ref": "#/$defs/Product"
          },
          "type": "array",
          "description": "The array of product sets which the product belongs to. It is read only."
        },
        "searchable": {
          "type": "object",
          "additionalProperties": {
            "type": "boolean"
          },
          "description": "The site-specific searchable status of the product."
        },
        "setProducts": {
          "items": {
            "$ref": "#/$defs/Product"
          },
          "type": "array",
          "description": "The array of set products which the product includes. It is read only."
        },
        "shortDescription": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/MarkupText"
          },
          "description": "The localized short description of the product."
        },
        "taxClassId": {
          "type": "string",
          "description": "The tax class identifier of the product."
        },
        "type": {
          "$ref": "#/$defs/ProductType"
        },
        "unit": {
          "type": "string",
          "description": "The sales unit of the product."
        },
        "unitMeasure": {
          "type": "string",
          "description": "The unitMeasure of the product."
        },
        "unitQuantity": {
          "type": "number",
          "description": "The unitQuantity of the product.",
          "format": "double"
        },
        "upc": {
          "type": "string",
          "description": "The Universal Product Code (UPC) of the product."
        },
        "validFrom": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The valid/online from date of the product."
        },
        "validTo": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The valid/online to date of the product."
        },
        "variants": {
          "items": {
            "$ref": "#/$defs/Variant"
          },
          "type": "array",
          "description": "The array of variants of the product. This is applicable for product types \"master\" and \"variationGroup\" only. It is read only."
        },
        "variationAttributes": {
          "items": {
            "$ref": "#/$defs/VariationAttribute"
          },
          "type": "array",
          "description": "The sorted array of variation attributes assigned to the product. This is applicable for product types \"master\",\n \"variationGroup\" and \"variant\" only. It is read only."
        },
        "variationGroups": {
          "items": {
            "$ref": "#/$defs/VariationGroup"
          },
          "type": "array",
          "description": "The array of variation groups in the product. This is applicable for product type \"master\" only. It is read only."
        },
        "variationValues": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The variation values selected for the product in variation attribute id and value pairs. This is applicable for product types \"Variant\" and\n \"VariationGroup\" only. It is read only."
        }
      },
      "description": "Any product that is sold, shown alone, and does not have variations such as different sizes or colors. Product that has no reliance on any other product for inheritance. *A product has a SKU and can have a product option, which has a different SKU*."
    },
    "ProductId": {
      "minLength": 1,
      "maxLength": 100,
      "type": "string",
      "description": "The id (SKU) of the product."
    },
    "ProductOption": {
      "required": [
        "id"
      ],
      "type": "object",
      "properties": {
        "customName": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The localized custom name of the product option."
        },
        "defaultProductOptionValue": {
          "type": "string",
          "description": "The default product option value."
        },
        "description": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The localized description of the product option."
        },
        "id": {
          "minLength": 1,
          "type": "string",
          "description": "The object attribute definition ID which is also the identifier for the product option."
        },
        "image": {
          "$ref": "#/$defs/MediaFile"
        },
        "name": {
          "type": "string",
          "description": "The name of the object attribute definition."
        },
        "selectedOptionValue": {
          "type": "string",
          "description": "The selected option value of the product option."
        },
        "shared": {
          "type": "boolean",
          "description": "The flag that indicates if the product option is shared or local."
        },
        "sortingMode": {
          "type": "string",
          "description": "The sorting mode for the product option values.",
          "enum": [
            "byexplicitorder",
            "byoptionprice"
          ]
        },
        "values": {
          "items": {
            "$ref": "#/$defs/ProductOptionValue"
          },
          "type": "array",
          "description": "The sorted array of values of the product option."
        }
      },
      "description": "Product options enable you to sell configurable products that have optional accessories, upgrades, or additional services. Options are always purchased with a product and can't be purchased separately."
    },
    "ProductOptionValue": {
      "required": [
        "id",
        "value"
      ],
      "type": "object",
      "properties": {
        "defaultProductOptionValue": {
          "type": "boolean",
          "description": "Flag indicating if the product option value is the default value for the product option."
        },
        "id": {
          "minLength": 1,
          "type": "string",
          "description": "The ID of the product option value."
        },
        "optionPrices": {
          "items": {
            "$ref": "#/$defs/Money"
          },
          "type": "array",
          "description": "The list of prices in the product option value."
        },
        "skuExtension": {
          "type": "string",
          "description": "The SKU extension of the product option value."
        },
        "value": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The localized value of the product option."
        }
      },
      "description": "Document representing a product option Value"
    },
    "ProductType": {
      "required": [
        "master"
      ],
      "type": "object",
      "properties": {
        "bundle": {
          "type": "boolean",
          "description": "A flag indicating whether the product is a bundle."
        },
        "bundled": {
          "type": "boolean",
          "description": "A flag indicating whether the product is bundled."
        },
        "item": {
          "type": "boolean",
          "description": "A flag indicating whether the product is a standard item."
        },
        "master": {
          "type": "boolean",
          "description": "A flag indicating whether the product is a master."
        },
        "option": {
          "type": "boolean",
          "description": "A flag indicating whether the product is an option."
        },
        "partOfProductSet": {
          "type": "boolean",
          "description": "A flag indicating whether the product is part of product set."
        },
        "partOfRetailSet": {
          "type": "boolean",
          "description": "A flag indicating whether the product is part of retail set."
        },
        "retailSet": {
          "type": "boolean",
          "description": "A flag indicating whether the product is a retail set."
        },
        "set": {
          "type": "boolean",
          "description": "A flag indicating whether the product is a set."
        },
        "variant": {
          "type": "boolean",
          "description": "A flag indicating whether the product is a variant."
        },
        "variationGroup": {
          "type": "boolean",
          "description": "A flag indicating whether the product is a variation group."
        }
      },
      "description": "Document representing a product type."
    },
    "Variant": {
      "required": [
        "productId"
      ],
      "type": "object",
      "properties": {
        "ats": {
          "type": "number",
          "description": "The Available To Sell (ATS) inventory value of the product. This is a calculated value.",
          "format": "double"
        },
        "defaultProductVariation": {
          "type": "boolean",
          "description": "A flag indicating whether the variant is a default variant."
        },
        "image": {
          "$ref": "#/$defs/MediaFile"
        },
        "inStock": {
          "type": "boolean",
          "description": "True if the product is in stock, false if not."
        },
        "online": {
          "type": "boolean",
          "description": "If the product is currently online.\n True if online, false if not."
        },
        "orderable": {
          "type": "boolean",
          "description": "A flag indicating whether the variant is orderable."
        },
        "price": {
          "type": "number",
          "description": "The sales price of the variant.",
          "format": "double"
        },
        "priceCurrency": {
          "type": "string",
          "description": "Currency code for the price of the product."
        },
        "productId": {
          "$ref": "#/$defs/ProductId"
        },
        "searchable": {
          "type": "object",
          "additionalProperties": {
            "type": "boolean"
          },
          "description": "A flag indicating whether the variant is searchable."
        },
        "variationAttributes": {
          "items": {
            "$ref": "#/$defs/VariationAttribute"
          },
          "type": "array",
          "description": "Variation attributes."
        },
        "variationValues": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The actual variation attribute ID - value pairs."
        }
      },
      "description": "A product which is a variation within a master product that describes different colors, sizes, or other variation attributes. *Has a SKU*"
    },
    "VariationAttribute": {
      "required": [
        "attributeDefinitionId"
      ],
      "type": "object",
      "properties": {
        "attributeDefinitionId": {
          "type": "string",
          "description": "The id of the requested attribute definition."
        },
        "attributeDefinitionName": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The localized display name of the variation attribute definition."
        },
        "defaultValue": {
          "type": "string",
          "description": "Default variation attribute value."
        },
        "id": {
          "minLength": 1,
          "type": "string",
          "description": "The ID of the variation attribute."
        },
        "name": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The localized display name of the variation attribute."
        },
        "shared": {
          "type": "boolean",
          "description": "Returns the value of attribute 'shared' if attribute is local or shared."
        },
        "slicing": {
          "type": "boolean",
          "description": "Returns the value of attribute 'slicing'."
        },
        "values": {
          "items": {
            "$ref": "#/$defs/VariationAttributeValue"
          },
          "type": "array",
          "description": "The sorted array of variation values. This array can be empty."
        },
        "variationAttributeType": {
          "type": "string",
          "description": "Variation attribute type.",
          "enum": [
            "string",
            "int",
            "unknown"
          ]
        }
      },
      "description": "Document representing a variation attribute."
    },
    "VariationAttributeValue": {
      "required": [
        "value"
      ],
      "type": "object",
      "properties": {
        "description": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The localized description of the variation value."
        },
        "image": {
          "$ref": "#/$defs/MediaFile"
        },
        "imageSwatch": {
          "$ref": "#/$defs/MediaFile"
        },
        "name": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The localized display name of the variation value."
        },
        "orderable": {
          "type": "boolean",
          "description": "A flag indicating whether at least one variant with this variation attribute value is available to sell."
        },
        "position": {
          "type": "number",
          "description": "The position of the value among all values of a variation attribute.",
          "format": "double"
        },
        "value": {
          "minLength": 1,
          "type": "string",
          "description": "The actual variation value."
        }
      },
      "description": "Document representing a variation attribute value."
    },
    "VariationGroup": {
      "required": [
        "productId"
      ],
      "type": "object",
      "properties": {
        "orderable": {
          "type": "boolean",
          "description": "A flag indicating whether the variation group is orderable."
        },
        "price": {
          "type": "number",
          "description": "The sales price of the variation group.",
          "format": "double"
        },
        "productId": {
          "maxLength": 100,
          "minLength": 1,
          "type": "string",
          "description": "The ID (SKU) of the variation group."
        },
        "variationValues": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The actual variation attribute ID - value pairs."
        }
      },
      "description": "Representation of a group of variant products by an attribute. This is a non-buyable entity,  provides inheritable attributes for it's product variants, and is used for navigation. *Doesn't have a SKU.*"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/salesforce-commerce-cloud-category-product-assignment"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.