Product Tags Queries

Access product tags used for classification and filtering.

ProductTag — Returns a single product tag by id

Example Query:

query GetProductTag($id: ID!) {
  ProductTag(id: $id) {
    id
    label
    active
  }
}

Example Result:

{
  "data": {
    "ProductTag": {
      "id": 10001,
      "label": "Best Seller",
      "active": true
    }
  }
}

ProductTags — Returns a list of product tags with sorting and filters

Example Query:

query ProductTags(
  $where: QueryProductTagsWhereWhereConditions,
  $orderBy: [QueryProductTagsOrderByOrderByClause!],
  $search: String,
  $first: Int,
  $page: Int
) {
  ProductTags(
    where: $where,
    orderBy: $orderBy,
    search: $search,
    first: $first,
    page: $page
  ) {
    paginatorInfo {
      total
      currentPage
    }
    data {
      id
      label
      active
    }
  }
}

Example Variables:

{
  "where": {
    "AND": [
      { "column": "ACTIVE", "operator": "EQ", "value": true }
    ]
  },
  "search": "Sale",
  "first": 50,
  "page": 1
}

B2bStoreProductTags — Filtered product tags for B2B store

Returns only active product tags linked to active products available within the B2B store.


Available fields

FieldTypeDescription
idIntUnique identifier.
labelStringName of the product tag.
activeBooleanTrue if the product tag is active.
counterIntCount of related specific entities (takes options like include_stock_levels).

Filters

FieldExample
id{ "column": "ID", "operator": "EQ", "value": 10001 }
label{ "column": "LABEL", "operator": "LIKE", "value": "%Sale%" }
active{ "column": "ACTIVE", "operator": "EQ", "value": true }