Skip to content
Saleor
Esc
↑↓navigate↵open⌘Jpreview

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

ProductTypeInput Input Type

input ProductTypeInput {
  name: String
  slug: String
  kind: ProductTypeKindEnum
  hasVariants: Boolean @deprecated(reason: "The field has no effect on the API behavior. This is a leftover from the past Simple/Configurable product distinction. Products can have multiple variants regardless of this setting.")
  productAttributes: [ID!]
  variantAttributes: [ID!]
  isShippingRequired: Boolean
  isDigital: Boolean
  weight: WeightScalar
  taxCode: String @deprecated(reason: "Use tax classes to control the tax calculation for a product type. If taxCode is provided, Saleor will try to find a tax class with given code (codes are stored in metadata) and assign it. If no tax class is found, it would be created and assigned.")
  taxClass: ID
}

Fields

name

name · String

Name of the product type.

slug

slug · String

Product type slug.

kind

kind · ProductTypeKindEnum

The product type kind.

hasVariants

hasVariants · Boolean

Determines if product of this type has multiple variants. This option mainly simplifies product management in the dashboard. There is always at least one variant created under the hood.

productAttributes

productAttributes · [ID!]

List of attributes shared among all product variants.

variantAttributes

variantAttributes · [ID!]

List of attributes used to distinguish between different variants of a product.

isShippingRequired

isShippingRequired · Boolean

Determines if shipping is required for products of this variant.

isDigital

isDigital · Boolean

Determines if products are digital - doesn’t have any effect, it’s present for backward-compatibility.

weight

weight · WeightScalar

Weight of the ProductType items.

taxCode

taxCode · String

Tax rate for enabled tax gateway.

taxClass

taxClass · ID

ID of a tax class to assign to this product type. All products of this product type would use this tax class, unless it’s overridden in the Product type.

Used by


Schema: Saleor 3.23.43. Download SDL.

Last updated on April 13, 2026

Was this page helpful?