VTEX · Schema

GetCategoryTreeChild

CommerceE-CommerceRetailMarketplacePayments

Properties

Name Type Description
id integer Category ID.
name string Category name.
hasChildren boolean If the category has a category child (`true`) or not (`false`).
url string Category URL.
children array Array with information about the category's children.
Title string Category page title.
MetaTagDescription string Category page Meta tag description.
View JSON Schema on GitHub

JSON Schema

vtex-getcategorytreechild-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/GetCategoryTreeChild",
  "title": "GetCategoryTreeChild",
  "required": [
    "id",
    "name",
    "hasChildren",
    "url",
    "children",
    "Title",
    "MetaTagDescription"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32",
      "description": "Category ID.",
      "example": 1
    },
    "name": {
      "type": "string",
      "description": "Category name.",
      "example": "Dolls"
    },
    "hasChildren": {
      "type": "boolean",
      "description": "If the category has a category child (`true`) or not (`false`).",
      "example": true
    },
    "url": {
      "type": "string",
      "description": "Category URL.",
      "example": "https://lojadobreno.vtexcommercestable.com.br/dolls"
    },
    "children": {
      "type": "array",
      "description": "Array with information about the category's children.",
      "items": {}
    },
    "Title": {
      "type": "string",
      "description": "Category page title.",
      "example": "Dolls"
    },
    "MetaTagDescription": {
      "type": "string",
      "description": "Category page Meta tag description.",
      "example": "New and used dolls for sale."
    }
  },
  "example": {
    "id": 78,
    "name": "Xbox 360",
    "hasChildren": false,
    "url": "https://ambienteqa.vtexcommercestable.com.br/games/xbox-360",
    "children": [
      {
        "id": 79,
        "name": "Consoles",
        "hasChildren": false,
        "url": "https://ambienteqa.vtexcommercestable.com.br/games/xbox-360/consoles",
        "children": []
      },
      {
        "id": 126,
        "name": "Acessorio",
        "hasChildren": false,
        "url": "https://ambienteqa.vtexcommercestable.com.br/games/xbox-360/acessorio",
        "children": []
      }
    ],
    "Title": "Games",
    "MetaTagDescription": "Video games."
  }
}