Skip to main content

Product

Class name: Product

PropertyTypeDescriptionRequired
vendorIdstringThe ID of the vendor that created this productYes
namestringThe name of the productYes
variationsProductVariation[]The variations of the product (if this is a variable product)No
statusenumThe status of the product, can be draft, pending, trash, publishedYes
featuredbooleanIs this product featured? Only admins can set thisNo
shortDescstringThe short description of the product, 300 characters maxYes
descstringThe description of the product. 10000 characters maxNo
pricedoubleThe price of the product (only for simple products)No
salePricedoubleThe sale price of the product (only for simple products)No
stockQuantityintThe stock quantity of the productNo
skustringThe SKU of the productYes
moqintThe minimum order quantity of the productNo
weightdoubleThe weight of the product in kgNo
dimensionsdouble[]The dimensions of the product in cm. (length, width, height) (only for simple products)No
noteToAdminstringOptional note to admin for complaints. E.g. if required variation attributes are unavailable. 200 characters maxNo
categoryIdsstring[]list of ids of the product categories according to their hierarchy. Eg. mens-wears, sneakers. Note that a product can be only assigned to a categoryYes
imageIdsstring[]list of ids of the product imagesYes
featuredVideoIdstringAn optional featured video id of the product. 1 minute video max. Usually, the ID will be the same as the product ID, since there can only be one of its kind.No
upsellsstring[]list of ids of the upsells productsNo
crosssellsstring[]list of ids of the crosssells productsNo
ratingdoubleThe rating of the product. A double valueNo
wishlistCountintThe number of users that have this product in their wishlistNo
cartCountintThe number of users that have this product in their cartNo
purchaseCountintThe number of times this product has been purchasedNo
currencystringThe currency of the product set according to the vendor's perferred currency which helps for rate conversion and payoutsNo
tagIdsstring[]list of ids of the product tagsNo