Product
A product is a saleable item that holds general information such as name or description. It must include at least one Product Variant, where each product variant defines different options to purchase the product with (for example, different sizes or colors). The prices and inventory of the product are defined on the variant level.
Constructors
constructor
**new Product**()
A product is a saleable item that holds general information such as name or description. It must include at least one Product Variant, where each product variant defines different options to purchase the product with (for example, different sizes or colors). The prices and inventory of the product are defined on the variant level.
Properties
collection_id
null | stringRequiredcreated_at
DateRequireddeleted_at
null | DateRequireddescription
null | stringRequireddiscountable
booleanRequiredfalse
.Default: true
external_id
null | stringRequiredhandle
null | stringRequiredheight
null | numberRequiredhs_code
null | stringRequiredid
stringRequiredis_giftcard
booleanRequiredDefault: false
length
null | numberRequiredmaterial
null | stringRequiredmetadata
null | Record<string, unknown>Requiredmid_code
null | stringRequiredorigin_country
null | stringRequiredprofile_id
stringRequiredprofiles
is expanded.Default: draft
subtitle
null | stringRequiredthumbnail
null | stringRequiredtitle
stringRequiredtype_id
null | stringRequiredupdated_at
DateRequiredweight
null | numberRequiredwidth
null | numberRequiredMethods
afterLoad
Private **afterLoad**(): void
Returns
void
void
voidbeforeInsert
Private **beforeInsert**(): void
Returns
void
void
voidbeforeUpdate
Private **beforeUpdate**(): void
Returns
void
void
void