Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceInputs

CreateProductInput

inputCreateProductInput

Fields

  1. fields
allowBackorder?Boolean
Defaultfalse
buyingPrice?Float
collectionIds?[String!]
comparingPrice?Float
downloadableFiles?
gallery?
handle*String!
informationSections?
initialQuantity?Float
Default0
isInStock?Boolean
longDescription?String
lowStockThreshold?Float
Default0
price*Float!
shortDescription?String
status?ProductStatus

Product status

Value inDRAFTPUBLISHED
technicalSpecs?
thumbnail?
title*String!
trackInventory?Boolean
Defaulttrue
type?ProductType

Product type

Value inDOWNLOADABLEPHYSICALVIRTUAL
variantConfigs?
variants?
vendors?

Usages

Input for
MUTATIONinventory__createProduct
SDL
input CreateProductInput {  allowBackorder: Boolean = false  buyingPrice: Float  collectionIds: [String!]  comparingPrice: Float  downloadableFiles: [ServerFileInput!]  gallery: [ServerFileInput!]  handle: String!  informationSections: [ProductInformationSectionInput!]  initialQuantity: Float = 0  isInStock: Boolean  longDescription: String  lowStockThreshold: Float = 0  price: Float!  shortDescription: String  status: ProductStatus  technicalSpecs: [TechnicalSpecificationSectionInput!]  thumbnail: ServerFileInput  title: String!  trackInventory: Boolean = true  type: ProductType  variantConfigs: [ProductVariantConfigInput!]  variants: [CreateProductVariantInput!]  vendors: [VendorReferenceInput!]}