CreateProductDTO
internal.ProductTypes.CreateProductDTO
A product to create.
Properties
categories{ id: string }[]The product categories to associate with the product.
collection_idstringThe product collection to be associated with the product.
descriptionstringThe description of the product.
discountablebooleanWhether the product can be discounted.
handlestringThe handle of the product. The handle can be used to create slug URL paths. If not supplied, the value of the
handle attribute of the product is set to the slug version of the title attribute.heightnumberThe height of the product.
hs_codestringThe HS Code of the product.
imagesstring[] | { id?: string ; url: string }[]The product's images. If an array of strings is supplied, each string will be a URL and a
ProductImage will be created and associated with the product. If an array of objects is supplied, you can pass along the ID of an existing ProductImage.is_giftcardbooleanWhether the product is a gift card.
lengthnumberThe length of the product.
materialstringThe material of the product.
metadataRecord<string, unknown>Holds custom data in key-value pairs.
mid_codestringThe MID Code of the product.
optionsCreateProductOptionDTO[]The product options to be created and associated with the product.
origin_countrystringThe origin country of the product.
statusProductStatusThe status of the product. Its value can be one of the values of the enum ProductStatus.
subtitlestringThe subttle of the product.
tagsCreateProductTagDTO[]The product tags to be created and associated with the product.
thumbnailstringThe URL of the product's thumbnail.
titlestringRequiredThe title of the product.
The product type to create and associate with the product.
type_idstringThe product type to be associated with the product.
variantsCreateProductVariantDTO[]The product variants to be created and associated with the product.
weightnumberThe weight of the product.
widthnumberThe width of the product.
Was this section helpful?