INPUT_OBJECT

ProductInput

link GraphQL Schema definition

  • input ProductInput {
  • # List of attributes.
  • attributes: [AttributeValueInput]
  • # Publication date. ISO 8601 standard.
  • publicationDate: Date
  • # ID of the product's category.
  • category: ID
  • # Determine if taxes are being charged for the product.
  • chargeTaxes: Boolean
  • # List of IDs of collections that the product belongs to.
  • collections: [ID]
  • # Product description (HTML/text).
  • description: String
  • # Product description (JSON).
  • descriptionJson: JSONString
  • # Determines if product is visible to customers.
  • isPublished: Boolean
  • # Product name.
  • name: String
  • # Product price. Note: this field is deprecated, use
  • # basePrice instead.
  • price: Decimal
  • # Product price.
  • basePrice: Decimal
  • # Tax rate.
  • taxRate: TaxRateType
  • # Tax rate for enabled tax gateway
  • taxCode: String
  • # Search engine optimization fields.
  • seo: SeoInput
  • # Weight of the Product.
  • weight: WeightScalar
  • # Stock keeping unit of a product. Note: this field is only
  • # used if a product doesn't use variants.
  • sku: String
  • # The total quantity of a product available for sale. Note:
  • # this field is only used if a product doesn't use variants.
  • quantity: Int
  • # Determines if the inventory of this product should be
  • # tracked. If false, the quantity won't change when customers
  • # buy this item. Note: this field is only used if a product doesn't
  • # use variants.
  • trackInventory: Boolean
  • }

link Require by