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