---
title: ProductType Object
seo:
  title: ProductType Object
  description: 'Object: ProductType Object'
slug: api-reference/products/objects/product-type
sidebar:
  label: ProductType
search:
  tags:
    - API reference
    - Products
lastModified: '2026-04-13'
---

Represents a type of product. It defines what attributes are available to products of this type.



```graphql
type ProductType implements Node & ObjectWithMetadata {
  id: ID!
  privateMetadata: [MetadataItem!]!
  privateMetafield(key: String!): String
  privateMetafields(keys: [String!]): Metadata
  metadata: [MetadataItem!]!
  metafield(key: String!): String
  metafields(keys: [String!]): Metadata
  name: String!
  slug: String!
  hasVariants: Boolean! @deprecated(reason: "This is a leftover from the past Simple/Configurable product distinction. Products can have multiple variants regardless of this setting. ")
  isShippingRequired: Boolean!
  isDigital: Boolean! @deprecated(reason: "Will be removed in v3.24.0, use metadata or attributes instead.")
  weight: Weight
  kind: ProductTypeKindEnum!
  products(channel: String, before: String, after: String, first: Int, last: Int): ProductCountableConnection @deprecated(reason: "Use the top-level `products` query with the `productTypes` filter.")
  taxType: TaxType @deprecated(reason: "Use `taxClass` field instead.")
  taxClass: TaxClass
  variantAttributes(variantSelection: VariantAttributeScope): [Attribute!] @deprecated(reason: "Use `assignedVariantAttributes` instead.")
  assignedVariantAttributes(variantSelection: VariantAttributeScope): [AssignedVariantAttribute!]
  productAttributes: [Attribute!]
  availableAttributes(filter: AttributeFilterInput @deprecated(reason: "Use `where` filter instead."), where: AttributeWhereInput, search: String, before: String, after: String, first: Int, last: Int): AttributeCountableConnection
}
```


## Interfaces

[`Node`](/api-reference/miscellaneous/interfaces/node), [`ObjectWithMetadata`](/api-reference/miscellaneous/interfaces/object-with-metadata)

## Fields

### id [#id]

**`id`** · [`ID!`](/api-reference/miscellaneous/scalars/id)

The ID of the product type.
### privateMetadata [#private-metadata]

**`privateMetadata`** · [`[MetadataItem!]!`](/api-reference/miscellaneous/objects/metadata-item)

List of private metadata items. Requires staff permissions to access.
### privateMetafield [#private-metafield]

**`privateMetafield`** · [`String`](/api-reference/miscellaneous/scalars/string)

A single key from private metadata. Requires staff permissions to access.

Tip: Use GraphQL aliases to fetch multiple keys.

#### key [#product-type-private-metafield-key]

**`key`** · [`String!`](/api-reference/miscellaneous/scalars/string)


### privateMetafields [#private-metafields]

**`privateMetafields`** · [`Metadata`](/api-reference/miscellaneous/scalars/metadata)

Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.

#### keys [#product-type-private-metafields-keys]

**`keys`** · [`[String!]`](/api-reference/miscellaneous/scalars/string)


### metadata [#metadata]

**`metadata`** · [`[MetadataItem!]!`](/api-reference/miscellaneous/objects/metadata-item)

List of public metadata items. Can be accessed without permissions.
### metafield [#metafield]

**`metafield`** · [`String`](/api-reference/miscellaneous/scalars/string)

A single key from public metadata.

Tip: Use GraphQL aliases to fetch multiple keys.

#### key [#product-type-metafield-key]

**`key`** · [`String!`](/api-reference/miscellaneous/scalars/string)


### metafields [#metafields]

**`metafields`** · [`Metadata`](/api-reference/miscellaneous/scalars/metadata)

Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.

#### keys [#product-type-metafields-keys]

**`keys`** · [`[String!]`](/api-reference/miscellaneous/scalars/string)


### name [#name]

**`name`** · [`String!`](/api-reference/miscellaneous/scalars/string)

Name of the product type.
### slug [#slug]

**`slug`** · [`String!`](/api-reference/miscellaneous/scalars/string)

Slug of the product type.
### hasVariants [#has-variants]

**`hasVariants`** · [`Boolean!`](/api-reference/miscellaneous/scalars/boolean)

Whether the product type has variants.

:::warning[Deprecated]
This is a leftover from the past Simple/Configurable product distinction. Products can have multiple variants regardless of this setting. 
:::

### isShippingRequired [#is-shipping-required]

**`isShippingRequired`** · [`Boolean!`](/api-reference/miscellaneous/scalars/boolean)

Whether shipping is required for this product type.
### isDigital [#is-digital]

**`isDigital`** · [`Boolean!`](/api-reference/miscellaneous/scalars/boolean)

Whether the product type is digital - doesn't have any effect, it's present for backward-compatibility.

:::warning[Deprecated]
Will be removed in v3.24.0, use metadata or attributes instead.
:::

### weight [#weight]

**`weight`** · [`Weight`](/api-reference/miscellaneous/objects/weight)

Weight of the product type.
### kind [#kind]

**`kind`** · [`ProductTypeKindEnum!`](/api-reference/products/enums/product-type-kind-enum)

The product type kind.
### products [#products]

**`products`** · [`ProductCountableConnection`](/api-reference/products/objects/product-countable-connection)

List of products of this type.

:::warning[Deprecated]
Use the top-level `products` query with the `productTypes` filter.
:::


#### channel [#product-type-products-channel]

**`channel`** · [`String`](/api-reference/miscellaneous/scalars/string)

Slug of a channel for which the data should be returned.

#### before [#product-type-products-before]

**`before`** · [`String`](/api-reference/miscellaneous/scalars/string)

Return the elements in the list that come before the specified cursor.

#### after [#product-type-products-after]

**`after`** · [`String`](/api-reference/miscellaneous/scalars/string)

Return the elements in the list that come after the specified cursor.

#### first [#product-type-products-first]

**`first`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

#### last [#product-type-products-last]

**`last`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.
### taxType [#tax-type]

**`taxType`** · [`TaxType`](/api-reference/taxes/objects/tax-type)

A type of tax. Assigned by enabled tax gateway

:::warning[Deprecated]
Use `taxClass` field instead.
:::

### taxClass [#tax-class]

**`taxClass`** · [`TaxClass`](/api-reference/taxes/objects/tax-class)

Tax class assigned to this product type. All products of this product type use this tax class, unless it's overridden in the `Product` type.



Requires one of the following permissions: `AUTHENTICATED_STAFF_USER`, `AUTHENTICATED_APP`.


### variantAttributes [#variant-attributes]

**`variantAttributes`** · [`[Attribute!]`](/api-reference/attributes/objects/attribute)

Variant attributes of that product type.

:::warning[Deprecated]
Use `assignedVariantAttributes` instead.
:::


#### variantSelection [#product-type-variant-attributes-variant-selection]

**`variantSelection`** · [`VariantAttributeScope`](/api-reference/products/enums/variant-attribute-scope)

Define scope of returned attributes.
### assignedVariantAttributes [#assigned-variant-attributes]

**`assignedVariantAttributes`** · [`[AssignedVariantAttribute!]`](/api-reference/attributes/objects/assigned-variant-attribute)

Variant attributes of that product type with attached variant selection.

#### variantSelection [#product-type-assigned-variant-attributes-variant-selection]

**`variantSelection`** · [`VariantAttributeScope`](/api-reference/products/enums/variant-attribute-scope)

Define scope of returned attributes.
### productAttributes [#product-attributes]

**`productAttributes`** · [`[Attribute!]`](/api-reference/attributes/objects/attribute)

Product attributes of that product type.
### availableAttributes [#available-attributes]

**`availableAttributes`** · [`AttributeCountableConnection`](/api-reference/attributes/objects/attribute-countable-connection)

List of attributes which can be assigned to this product type.



Requires one of the following permissions: `MANAGE_PRODUCTS`.



#### filter [#product-type-available-attributes-filter]

**`filter`** · [`AttributeFilterInput`](/api-reference/attributes/inputs/attribute-filter-input)

Filtering options for attributes of this product type.

:::warning[Deprecated]
Use `where` filter instead.
:::


#### where [#product-type-available-attributes-where]

**`where`** · [`AttributeWhereInput`](/api-reference/attributes/inputs/attribute-where-input)

Where filtering options for attributes of this product type.

#### search [#product-type-available-attributes-search]

**`search`** · [`String`](/api-reference/miscellaneous/scalars/string)

Search attributes.

#### before [#product-type-available-attributes-before]

**`before`** · [`String`](/api-reference/miscellaneous/scalars/string)

Return the elements in the list that come before the specified cursor.

#### after [#product-type-available-attributes-after]

**`after`** · [`String`](/api-reference/miscellaneous/scalars/string)

Return the elements in the list that come after the specified cursor.

#### first [#product-type-available-attributes-first]

**`first`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

#### last [#product-type-available-attributes-last]

**`last`** · [`Int`](/api-reference/miscellaneous/scalars/int)

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

## Used by

- [_Entity (unions)](/api-reference/miscellaneous/unions/entity)
- [ReferenceType (unions)](/api-reference/miscellaneous/unions/reference-type)
- [Product (objects)](/api-reference/products/objects/product)
- [ProductAttributeAssign (objects)](/api-reference/products/objects/product-attribute-assign)
- [ProductAttributeAssignmentUpdate (objects)](/api-reference/products/objects/product-attribute-assignment-update)
- [ProductAttributeUnassign (objects)](/api-reference/products/objects/product-attribute-unassign)
- [ProductTypeCountableEdge (objects)](/api-reference/products/objects/product-type-countable-edge)
- [ProductTypeCreate (objects)](/api-reference/products/objects/product-type-create)
- [ProductTypeDelete (objects)](/api-reference/products/objects/product-type-delete)
- [ProductTypeReorderAttributes (objects)](/api-reference/products/objects/product-type-reorder-attributes)
- [ProductTypeUpdate (objects)](/api-reference/products/objects/product-type-update)
- [productType (queries)](/api-reference/products/queries/product-type)

---

Schema: **Saleor 3.23.43**. [Download SDL](/schema/saleor.graphql).
