AdminPostProductsReq
Properties
Product categories to add the Product to.
collection_idstringThe ID of the Product Collection the Product belongs to.
descriptionstringThe description of the Product.
discountablebooleanRequiredA flag to indicate if discounts can be applied to the Line Items generated from this Product
Default: true
handlestringA unique handle to identify the Product by. If not provided, the kebab-case version of the product title will be used. This can be used as a slug in URLs.
heightnumberThe height of the Product.
hs_codestringThe Harmonized System code of the Product.
imagesstring[]An array of images of the Product. Each value in the array is a URL to the image. You can use the upload API Routes to upload the image and obtain a URL.
is_giftcardbooleanRequiredA flag to indicate if the Product represents a Gift Card. Purchasing Products with this flag set to
true will result in a Gift Card being created.Default: false
lengthnumberThe length of the Product.
materialstringThe material composition of the Product.
metadataRecord<string, unknown>An optional set of key-value pairs with additional information.
mid_codestringThe Manufacturer Identification code of the Product.
optionsProductOptionReq[]The Options that the Product should have. A new product option will be created for every item in the array.
origin_countrystringThe country of origin of the Product.
sales_channelsProductSalesChannelReq[]Sales channels to associate the Product with.
statusProductStatusThe status of the product. The product is shown to the customer only if its status is
published.Default: draft
subtitlestringThe subtitle of the Product
tagsProductTagReq[]Product Tags to associate the Product with.
thumbnailstringThe thumbnail to use for the Product. The value is a URL to the thumbnail. You can use the upload API Routes to upload the thumbnail and obtain a URL.
titlestringRequiredThe title of the Product
typeProductTypeReqThe Product Type to associate the Product with.
variantsProductVariantReq[]An array of Product Variants to create with the Product. Each product variant must have a unique combination of Product Option values.
weightnumberThe weight of the Product.
widthnumberThe width of the Product.
Was this section helpful?