Skip to main content
Version: 3.x

ProductTypeInput

No description

input ProductTypeInput {
name: String
slug: String
kind: ProductTypeKindEnum
hasVariants: Boolean
productAttributes: [ID!]
variantAttributes: [ID!]
isShippingRequired: Boolean
isDigital: Boolean
weight: WeightScalar
taxCode: String
}

Fields

name (String)

Name of the product type.

slug (String)

Product type slug.

kind (ProductTypeKindEnum)

The product type kind.

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 ([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.

weight (WeightScalar)

Weight of the ProductType items.

taxCode (String)

Tax rate for enabled tax gateway.