ProductInput Input Type
input ProductInput {
attributes: [AttributeValueInput!]
category: ID
chargeTaxes: Boolean @deprecated(reason: "Use `Channel.taxConfiguration` to configure whether tax collection is enabled.")
collections: [ID!]
description: JSONString
name: String
slug: String
taxClass: ID
taxCode: String @deprecated(reason: "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.")
seo: SeoInput
weight: WeightScalar
rating: Float @deprecated(reason: "Product rating is deprecated and will be removed. Use a numeric attribute instead.")
metadata: [MetadataInput!]
privateMetadata: [MetadataInput!]
externalReference: String
}
Fields
attributes
attributes · [AttributeValueInput!]
List of attributes.
category
category · ID
ID of the product’s category.
chargeTaxes
chargeTaxes · Boolean
Determine if taxes are being charged for the product.
collections
collections · [ID!]
List of IDs of collections that the product belongs to.
description
description · JSONString
Product description.
Rich text format. For reference see https://editorjs.io/
name
name · String
Product name.
slug
slug · String
Product slug.
taxClass
taxClass · ID
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.
taxCode
taxCode · String
Tax rate for enabled tax gateway.
seo
seo · SeoInput
Search engine optimization fields.
weight
weight · WeightScalar
Weight of the Product.
rating
rating · Float
Defines the product rating value.
metadata
metadata · [MetadataInput!]
Fields required to update the product metadata. Can be read by any API client authorized to read the object it’s attached to.
Warning: never store sensitive information, including financial data such as credit card details.
privateMetadata
privateMetadata · [MetadataInput!]
Fields required to update the product private metadata. Requires permissions to modify and to read the metadata of the object it’s attached to.
Warning: never store sensitive information, including financial data such as credit card details.
externalReference
externalReference · String
External ID of this product.
Used by
Schema: Saleor 3.23.43. Download SDL.