Skip to main content

ProductCreateInput Input Type

No description

input ProductCreateInput {
attributes: [AttributeValueInput!]
category: ID
chargeTaxes: Boolean @deprecated
collections: [ID!]
description: JSONString
name: String
slug: String
taxClass: ID
taxCode: String @deprecated
seo: SeoInput
weight: WeightScalar
rating: Float
metadata: [MetadataInput!]
privateMetadata: [MetadataInput!]
externalReference: String
productType: ID!
}

Fields

ProductCreateInput.attributes ● [AttributeValueInput!] list input attributes

List of attributes.

ProductCreateInput.category ● ID scalar miscellaneous

ID of the product's category.

ProductCreateInput.chargeTaxes ● Boolean deprecated scalar miscellaneous

DEPRECATED

Use Channel.taxConfiguration to configure whether tax collection is enabled.

Determine if taxes are being charged for the product.

ProductCreateInput.collections ● [ID!] list scalar miscellaneous

List of IDs of collections that the product belongs to.

ProductCreateInput.description ● JSONString scalar miscellaneous

Product description.

Rich text format. For reference see https://editorjs.io/

ProductCreateInput.name ● String scalar miscellaneous

Product name.

ProductCreateInput.slug ● String scalar miscellaneous

Product slug.

ProductCreateInput.taxClass ● ID scalar miscellaneous

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.

ProductCreateInput.taxCode ● String deprecated scalar miscellaneous

DEPRECATED

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.

Tax rate for enabled tax gateway.

ProductCreateInput.seo ● SeoInput input miscellaneous

Search engine optimization fields.

ProductCreateInput.weight ● WeightScalar scalar miscellaneous

Weight of the Product.

ProductCreateInput.rating ● Float scalar miscellaneous

Defines the product rating value.

ProductCreateInput.metadata ● [MetadataInput!] list input miscellaneous

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.

ProductCreateInput.privateMetadata ● [MetadataInput!] list input miscellaneous

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.

ProductCreateInput.externalReference ● String scalar miscellaneous

External ID of this product.

ProductCreateInput.productType ● ID! non-null scalar miscellaneous

ID of the type that product belongs to.

Member Of

productCreate mutation