ProductInput
No description
input ProductInput {
attributes: [AttributeValueInput!]
category: ID
chargeTaxes: Boolean
collections: [ID!]
description: JSONString
name: String
slug: String
taxClass: ID
taxCode: String
seo: SeoInput
weight: WeightScalar
rating: Float
metadata: [MetadataInput!]
privateMetadata: [MetadataInput!]
externalReference: String
}
Fields
ProductInput.attributes ● [AttributeValueInput!] list input
List of attributes.
ProductInput.category ● ID scalar
ID of the product's category.
ProductInput.chargeTaxes ● Boolean scalar
Determine if taxes are being charged for the product.
DEPRECATED: this field will be removed in Saleor 4.0. Use
Channel.taxConfigurationto configure whether tax collection is enabled.
ProductInput.collections ● [ID!] list scalar
List of IDs of collections that the product belongs to.
ProductInput.description ● JSONString scalar
Product description.
Rich text format. For reference see https://editorjs.io/
ProductInput.name ● String scalar
Product name.
ProductInput.slug ● String scalar
Product slug.
ProductInput.taxClass ● ID scalar
ID of a tax class to assign to this product. If not provided, product will use the tax class which is assigned to the product type.
ProductInput.taxCode ● String scalar
Tax rate for enabled tax gateway.
DEPRECATED: this field will be removed in Saleor 4.0. Use tax classes to control the tax calculation for a product. 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.
ProductInput.seo ● SeoInput input
Search engine optimization fields.
ProductInput.weight ● WeightScalar scalar
Weight of the Product.
ProductInput.rating ● Float scalar
Defines the product rating value.
ProductInput.metadata ● [MetadataInput!] list input
Fields required to update the product metadata.
Added in Saleor 3.8
ProductInput.privateMetadata ● [MetadataInput!] list input
Fields required to update the product private metadata.
Added in Saleor 3.8
ProductInput.externalReference ● String scalar
External ID of this product.
Added in Saleor 3.10
Member of
productUpdate mutation