ProductTypeInput Input Type
No description
input ProductTypeInput {
name: String
slug: String
kind: ProductTypeKindEnum
hasVariants: Boolean @deprecated
productAttributes: [ID!]
variantAttributes: [ID!]
isShippingRequired: Boolean
isDigital: Boolean
weight: WeightScalar
taxCode: String @deprecated
taxClass: ID
}
Fields
name ● String
Name of the product type.
slug ● String
Product type slug.
kind ● ProductTypeKindEnum
The product type kind.
productAttributes ● [ID!]
List of attributes shared among all product variants.
variantAttributes ● [ID!]
List of attributes used to distinguish between different variants of a product.
isShippingRequired ● Boolean
Determines if shipping is required for products of this variant.
isDigital ● Boolean
Determines if products are digital - doesn't have any effect, it's present for backward-compatibility.
weight ● WeightScalar
Weight of the ProductType items.
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.
Show deprecatedHide deprecated
hasVariants ● Boolean
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.
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.
taxCode ● String
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.
Tax rate for enabled tax gateway.
Member Of
productTypeCreate mutation ● productTypeUpdate mutation