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