AdminPostProductsReq
The details of the product to create.
Properties
title
stringRequiredThe title of the Product
is_giftcard
booleanRequiredA 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
discountable
booleanRequiredA flag to indicate if discounts can be applied to the Line Items generated from this Product
Default: true
subtitle
stringThe subtitle of the Product
description
stringThe description of the Product.
images
string[]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.
thumbnail
stringThe 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.
handle
stringA 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.
status
ProductStatusThe status of the product. The product is shown to the customer only if its status is published
.Default: ProductStatus.DRAFT
status
ProductStatuspublished
.ProductStatus.DRAFT
type
ProductTypeReqThe Product Type to associate the Product with.
type
ProductTypeReqcollection_id
stringThe ID of the Product Collection the Product belongs to.
tags
ProductTagReq[]Product Tags to associate the Product with.
tags
ProductTagReq[]sales_channels
ProductSalesChannelReq[]Sales channels to associate the Product with.
sales_channels
ProductSalesChannelReq[]Product categories to add the Product to.
options
ProductOptionReq[]The Options that the Product should have. A new product option will be created for every item in the array.
options
ProductOptionReq[]variants
ProductVariantReq[]An array of Product Variants to create with the Product. Each product variant must have a unique combination of Product Option values.
variants
ProductVariantReq[]weight
numberThe weight of the Product.
length
numberThe length of the Product.
height
numberThe height of the Product.
width
numberThe width of the Product.
hs_code
stringThe Harmonized System code of the Product.
origin_country
stringThe country of origin of the Product.
mid_code
stringThe Manufacturer Identification code of the Product.
material
stringThe material composition of the Product.
metadata
Record<string, unknown>An optional set of key-value pairs with additional information.
Was this section helpful?