younifyd
Menu

Get Categories From Catalog

Retrieve all categories within a catalog.

GET/organizations/{organizationId}/catalogs/{catalogId}/categories

Use it in a workflow

  1. Add a step and choose the Salesforce Commerce Cloud connector.
  2. Pick the Get Categories From Catalog action (under Catalogs (Data API)).
  3. Fill in the fields below, then reference the result from later steps as {{getCategoriesFromCatalog.response.data}}.

Request

Path parameters

catalogIdstringrequired

The ID of the requested catalog.

organizationIdstringrequired

An identifier for the organization the request is being made by

Query parameters

limitinteger (int32)

Maximum records to retrieve per request, not to exceed 50. Defaults to 25.

Default 25

offsetinteger (int32)

Used to retrieve the results based on a particular resource offset.

Default 0

Response

Returns 200 with an object. Read it in later steps with {{getCategoriesFromCatalog.response.data.<field>}}.

dataarray<object>

Category data

catalogIdany

The ID of the catalog that contains it.

categoriesarray<object>

The array of subcategories for the category.

creationDatestring (date-time)

Returns the value of attribute 'creationDate'. It is read only.

descriptionobject

The localized description of the category.

idanyrequired

The ID of the category.

imagestring

The name of the category image. The URL to the image is computed.

lastModifiedstring (date-time)

Returns the value of attribute 'lastModified'. It is read only.

nameobject

The localized name of the category.

onlineboolean

The online status of the category determines if it is visible in the storefront. Defaults to false if not specified on creation.

pageDescriptionobject

The localized page description of the category.

pageKeywordsobject

The localized page keywords for the category.

pageTitleobject

The localized page title of the category.

parentCategoryIdstring

The ID of the parent category. Defaults to root if not specified on creation.

pathsarray<object>2 fields

The path record.

positionnumber (double)

The position of the category determines the display order in the storefront.

sortingRulesarray<object>6 fields

The category sorting rules.

thumbnailstring

The name of the category thumbnail. The URL to the thumbnail is computed.

json
{
  "data": [
    {
      "id": "mens-clothing-outerwear",
      "catalogId": "apparel-catalog",
      "categories": [
        {}
      ],
      "creationDate": 253402214400,
      "description": {
        "en_US": "Mens Clothing Outerwear"
      },
      "image": "Summer Bomber Jacket",
      "lastModified": 253402214400,
      "name": {
        "en_US": "Mens Clothing Outerwear"
      },
      "online": true,
      "pageDescription": {
        "en_US": "Mens Outerwear Category"
      },
      "pageKeywords": {
        "en_US": "Outerwear"
      },
      "pageTitle": {
        "en_US": "Mens Clothing Outerwear"
      }
    }
  ]
}

Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.

Get Categories From Catalog — Salesforce Commerce Cloud — Documentation