1 type: object
2 description: The product's details.
3 x-schemaName: BaseProduct
4 required:
5 - id
6 - title
7 - handle
8 - subtitle
9 - description
10 - is_giftcard
11 - status
12 - thumbnail
13 - width
14 - weight
15 - length
16 - height
17 - origin_country
18 - hs_code
19 - mid_code
20 - material
21 - collection_id
22 - type_id
23 - variants
24 - options
25 - images
26 - discountable
27 - external_id
28 - created_at
29 - updated_at
30 - deleted_at
31 properties:
32 collection:
33 $ref: ./BaseCollection.yaml
34 categories:
35 type: array
36 description: The product's categories.
37 items:
38 $ref: ./BaseProductCategory.yaml
39 variants:
40 type: array
41 description: The product's variants.
42 items:
43 type: object
44 type:
45 $ref: ./BaseProductType.yaml
46 tags:
47 type: array
48 description: The product's tags.
49 items:
50 $ref: ./BaseProductTag.yaml
51 length:
52 type: number
53 title: length
54 description: The product's length.
55 title:
56 type: string
57 title: title
58 description: The product's title.
59 status:
60 type: string
61 description: The product's status.
62 enum:
63 - draft
64 - proposed
65 - published
66 - rejected
67 options:
68 type: array
69 description: The product's options.
70 items:
71 $ref: ./BaseProductOption.yaml
72 description:
73 type: string
74 title: description
75 description: The product's description.
76 id:
77 type: string
78 title: id
79 description: The product's ID.
80 metadata:
81 type: object
82 description: The product's metadata, can hold custom key-value pairs.
83 externalDocs:
84 url: https://docs.medusajs.com/api/store#manage-metadata
85 description: Learn how to manage metadata
86 created_at:
87 type: string
88 format: date-time
89 title: created_at
90 description: The date the product was created.
91 updated_at:
92 type: string
93 format: date-time
94 title: updated_at
95 description: The date the product was updated.
96 handle:
97 type: string
98 title: handle
99 description: The product's unique handle.
100 subtitle:
101 type: string
102 title: subtitle
103 description: The product's subtitle.
104 is_giftcard:
105 type: boolean
106 title: is_giftcard
107 description: Whether the product is a gift card.
108 thumbnail:
109 type: string
110 title: thumbnail
111 description: The product's thumbnail.
112 width:
113 type: number
114 title: width
115 description: The product's width.
116 weight:
117 type: number
118 title: weight
119 description: The product's weight.
120 height:
121 type: number
122 title: height
123 description: The product's height.
124 origin_country:
125 type: string
126 title: origin_country
127 description: The product's origin country.
128 hs_code:
129 type: string
130 title: hs_code
131 description: The product's HS code.
132 mid_code:
133 type: string
134 title: mid_code
135 description: The product's MID code.
136 material:
137 type: string
138 title: material
139 description: The product's material.
140 collection_id:
141 type: string
142 title: collection_id
143 description: The ID of the collection that the product belongs to.
144 type_id:
145 type: string
146 title: type_id
147 description: The ID of the product's type.
148 images:
149 type: array
150 description: The product's images.
151 items:
152 $ref: ./BaseProductImage.yaml
153 discountable:
154 type: boolean
155 title: discountable
156 description: Whether discounts can be applied on the product.
157 external_id:
158 type: string
159 title: external_id
160 description: The ID of a product in an external system, such as an ERP or CMS.
161 deleted_at:
162 type: string
163 format: date-time
164 title: deleted_at
165 description: The date the product was deleted.