Backend API

Fields
idobjectId

Unique identifier for the category.

namestringrequired

A human-friendly name for the category.

activeboolean

Indicates the category may be visible to customers. Otherwise it will be hidden from view.

childrenCategory

Expandable list of child categories.

date_createddateauto

Date and time the category was created.

date_updateddateauto

Date and time the category was last updated.

demoboolean

Indicates the category is a demo.

descriptionstring

A long-form description of the category. Can contain HTML or other markup languages.

imageobject

Image depicting the category.

Deprecated — use images instead.

imagesarray of object

List of images depicting the category.

meta_descriptionstring

Page description used for search engine optimization purposes.

meta_keywordsstring

Page keywords used for search engine optimization purposes.

meta_titlestring

Page title used to override product name in storefronts.

parent_idobjectId

ID of the parent category, if applicable.

parentCategory

Expandable link to the parent category, if applicable.

productsarray of Products

Expandable list of category products.

products_indexedProduct

Expandable list of products as indexed and sorted by their respective position.

slugstringrequired

Unique identifier typically used in URLs. Defaults to name converted to lowercase and hyphenated. If the category has a parent, the default slug will be prefixed with the parent slug. Maximum length of 1,000 characters.

sortint

Position of the category in a list.

sortingstring

Default product sorting applied when retrieving products using the category or categories filter. Can be one of popularity, price_asc, price_desc, date_asc. date_desc. If not specified, products are sorted by their manually defined sort value.

theme_templatestring

ID of an alternate theme template used to render this category in a storefront, if applicable.

attributesobject

An object containing custom attribute key/value pairs.

attributes_templatearray of object

Template of attribute id/value pairs to apply to products added to this category.

topCategory

Expandable link to the top level category.

top_idobjectId

ID of the top level category in the hierarchy.

The category model
{
  "name": "Luck",
  "active": true,
  "sorting": null,
  "images": [
    {
      "file": {
        "id": "628bb4ba499bba0019b1ab7c",
        "date_uploaded": "2022-05-23T16:22:18.978Z",
        "length": 52772,
        "md5": "82fd851c2edcd4bd7ed941c561e605ea",
        "filename": null,
        "content_type": "image/gif",
        "metadata": null,
        "url": "https://cdn.schema.io/launch-storefront/628bb4ba499bba0019b1ab7c/82fd851c2edcd4bd7ed941c561e605ea",
        "width": 127,
        "height": 127
      },
      "id": "628bb4be499bba0019b1ab7e"
    }
  ],
  "description": "Luck affects all skills a little bit&mdash;with the exception of Acrobatics and Athletics.<br>",
  "meta_title": "Luck",
  "meta_description": "Luck affects all skills a little bit—not including Acrobatics and Athletics.",
  "parent_id": "628bae71499bba0019b1aac2",
  "slug": "skills-luck",
  "top_id": "628bae71499bba0019b1aac2",
  "date_created": "2022-05-23T16:06:40.137Z",
  "date_updated": "2022-05-23T16:22:22.300Z",
  "sort": 7,
  "id": "628bb1101869c10019b4205c"