repzo 1.0.155 → 1.0.156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/index.ts +4890 -0
- package/src/oas/activity-ai-sales-order.yaml +623 -0
- package/src/oas/activity-feedback-v2.yaml +753 -0
- package/src/oas/activity-feedback.yaml +645 -0
- package/src/oas/activity-storecheck.yaml +379 -0
- package/src/oas/adjust-account.yaml +241 -0
- package/src/oas/adjust-inventory.yaml +133 -0
- package/src/oas/approval-request.yaml +211 -0
- package/src/oas/approvals.yaml +176 -0
- package/src/oas/asset-part-receival.yaml +591 -0
- package/src/oas/asset-part-transfer.yaml +618 -0
- package/src/oas/asset-part-type.yaml +383 -0
- package/src/oas/asset-part-unit.yaml +722 -0
- package/src/oas/asset-part.yaml +485 -0
- package/src/oas/asset-type.yaml +180 -0
- package/src/oas/asset-unit.yaml +705 -0
- package/src/oas/asset.yaml +204 -0
- package/src/oas/banks.yaml +168 -0
- package/src/oas/bankslists.yaml +168 -0
- package/src/oas/brand.yaml +246 -0
- package/src/oas/category.yaml +285 -0
- package/src/oas/checks.yaml +247 -0
- package/src/oas/client-channel.yaml +480 -0
- package/src/oas/client-contact.yaml +665 -0
- package/src/oas/client-location.yaml +687 -0
- package/src/oas/client.yaml +669 -0
- package/src/oas/contract-installment.yaml +740 -0
- package/src/oas/contract.yaml +210 -0
- package/src/oas/custom-list-item.yaml +168 -0
- package/src/oas/custom-list.yaml +168 -0
- package/src/oas/custom-status.yaml +168 -0
- package/src/oas/day.yaml +246 -0
- package/src/oas/feedback-options.yaml +802 -0
- package/src/oas/fullinvoices.yaml +584 -0
- package/src/oas/integration-action-log.yaml +361 -0
- package/src/oas/integration-app.yaml +303 -0
- package/src/oas/integration-command-log.yaml +381 -0
- package/src/oas/inventory-adjustment-reason.yaml +165 -0
- package/src/oas/inventory.yaml +64 -0
- package/src/oas/mail-unsubscribe.yaml +463 -0
- package/src/oas/measureunit-family.yaml +354 -0
- package/src/oas/measureunit.yaml +366 -0
- package/src/oas/media-storage.yaml +329 -0
- package/src/oas/media.yaml +472 -0
- package/src/oas/msl-products.yaml +180 -0
- package/src/oas/msl.yaml +186 -0
- package/src/oas/ocr-invoice-job-group.yaml +528 -0
- package/src/oas/ocr-invoice-job-page.yaml +602 -0
- package/src/oas/ocr-invoice-job-template.yaml +628 -0
- package/src/oas/ocr-invoice-job.yaml +603 -0
- package/src/oas/patch-action.yaml +421 -0
- package/src/oas/payment-terms.yaml +235 -0
- package/src/oas/payments.yaml +536 -0
- package/src/oas/pricelist-item.yaml +369 -0
- package/src/oas/pricelist.yaml +287 -0
- package/src/oas/product-group.yaml +278 -0
- package/src/oas/product-modifiers-group.yaml +524 -0
- package/src/oas/product.yaml +578 -0
- package/src/oas/proforma.yaml +180 -0
- package/src/oas/quick-convert-to-pdf.yaml +95 -0
- package/src/oas/receiving-material.yaml +336 -0
- package/src/oas/refund.yaml +281 -0
- package/src/oas/rep-balance-summary.yaml +135 -0
- package/src/oas/rep.yaml +1824 -0
- package/src/oas/return-asset-part-unit.yaml +573 -0
- package/src/oas/return-reason.yaml +286 -0
- package/src/oas/route.yaml +337 -0
- package/src/oas/safe-invoice-serial-counter.yaml +525 -0
- package/src/oas/settings.yaml +123 -0
- package/src/oas/settlement.yaml +505 -0
- package/src/oas/speciality.yaml +447 -0
- package/src/oas/store-asset-part-unit.yaml +658 -0
- package/src/oas/storecheck-template.yaml +415 -0
- package/src/oas/subcategory.yaml +355 -0
- package/src/oas/supplier.yaml +183 -0
- package/src/oas/svix-integration.yaml +335 -0
- package/src/oas/tag.yaml +272 -0
- package/src/oas/tax.yaml +303 -0
- package/src/oas/team.yaml +268 -0
- package/src/oas/transfer.yaml +347 -0
- package/src/oas/update-integration-meta.yaml +387 -0
- package/src/oas/variant.yaml +569 -0
- package/src/oas/visit.yaml +174 -0
- package/src/oas/warehouse.yaml +311 -0
- package/src/oas/workorder-category.yaml +751 -0
- package/src/oas/workorder-portal-link.yaml +811 -0
- package/src/oas/workorder-portal.yaml +650 -0
- package/src/oas/workorder-request.yaml +193 -0
- package/src/oas/workorder.yaml +204 -0
|
@@ -0,0 +1,578 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - Product
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo Product endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/product:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find products
|
|
12
|
+
operationId: findProducts
|
|
13
|
+
parameters:
|
|
14
|
+
- in: query
|
|
15
|
+
name: params
|
|
16
|
+
schema:
|
|
17
|
+
type: object
|
|
18
|
+
description: Query parameters for filtering products
|
|
19
|
+
responses:
|
|
20
|
+
"200":
|
|
21
|
+
description: A list of products
|
|
22
|
+
content:
|
|
23
|
+
application/json:
|
|
24
|
+
schema:
|
|
25
|
+
$ref: "#/components/schemas/ProductFindResult"
|
|
26
|
+
post:
|
|
27
|
+
summary: Create a product
|
|
28
|
+
operationId: createProduct
|
|
29
|
+
requestBody:
|
|
30
|
+
required: true
|
|
31
|
+
content:
|
|
32
|
+
application/json:
|
|
33
|
+
schema:
|
|
34
|
+
$ref: "#/components/schemas/ProductCreateBody"
|
|
35
|
+
responses:
|
|
36
|
+
"201":
|
|
37
|
+
description: Product created
|
|
38
|
+
content:
|
|
39
|
+
application/json:
|
|
40
|
+
schema:
|
|
41
|
+
$ref: "#/components/schemas/ProductCreateResult"
|
|
42
|
+
/product/{id}:
|
|
43
|
+
get:
|
|
44
|
+
summary: Get a product by ID
|
|
45
|
+
operationId: getProduct
|
|
46
|
+
parameters:
|
|
47
|
+
- in: path
|
|
48
|
+
name: id
|
|
49
|
+
required: true
|
|
50
|
+
schema:
|
|
51
|
+
type: string
|
|
52
|
+
responses:
|
|
53
|
+
"200":
|
|
54
|
+
description: Product details
|
|
55
|
+
content:
|
|
56
|
+
application/json:
|
|
57
|
+
schema:
|
|
58
|
+
$ref: "#/components/schemas/ProductGetResult"
|
|
59
|
+
put:
|
|
60
|
+
summary: Update a product
|
|
61
|
+
operationId: updateProduct
|
|
62
|
+
parameters:
|
|
63
|
+
- in: path
|
|
64
|
+
name: id
|
|
65
|
+
required: true
|
|
66
|
+
schema:
|
|
67
|
+
type: string
|
|
68
|
+
requestBody:
|
|
69
|
+
required: true
|
|
70
|
+
content:
|
|
71
|
+
application/json:
|
|
72
|
+
schema:
|
|
73
|
+
$ref: "#/components/schemas/ProductUpdateBody"
|
|
74
|
+
responses:
|
|
75
|
+
"200":
|
|
76
|
+
description: Product updated
|
|
77
|
+
content:
|
|
78
|
+
application/json:
|
|
79
|
+
schema:
|
|
80
|
+
$ref: "#/components/schemas/ProductUpdateResult"
|
|
81
|
+
delete:
|
|
82
|
+
summary: Remove a product
|
|
83
|
+
operationId: removeProduct
|
|
84
|
+
parameters:
|
|
85
|
+
- in: path
|
|
86
|
+
name: id
|
|
87
|
+
required: true
|
|
88
|
+
schema:
|
|
89
|
+
type: string
|
|
90
|
+
responses:
|
|
91
|
+
"200":
|
|
92
|
+
description: Product removed
|
|
93
|
+
content:
|
|
94
|
+
application/json:
|
|
95
|
+
schema:
|
|
96
|
+
$ref: "#/components/schemas/ProductRemoveResult"
|
|
97
|
+
components:
|
|
98
|
+
schemas:
|
|
99
|
+
ProductFindResult:
|
|
100
|
+
type: object
|
|
101
|
+
description: Result of finding products
|
|
102
|
+
properties:
|
|
103
|
+
data:
|
|
104
|
+
type: array
|
|
105
|
+
items:
|
|
106
|
+
$ref: "#/components/schemas/ProductSchema"
|
|
107
|
+
total_result:
|
|
108
|
+
type: number
|
|
109
|
+
description: Total number of products
|
|
110
|
+
current_count:
|
|
111
|
+
type: number
|
|
112
|
+
description: Count of products in current page
|
|
113
|
+
total_pages:
|
|
114
|
+
type: number
|
|
115
|
+
description: Total number of pages
|
|
116
|
+
current_page:
|
|
117
|
+
type: number
|
|
118
|
+
description: Current page number
|
|
119
|
+
per_page:
|
|
120
|
+
type: number
|
|
121
|
+
description: Number of products per page
|
|
122
|
+
first_page_url:
|
|
123
|
+
type: string
|
|
124
|
+
description: URL for the first page
|
|
125
|
+
last_page_url:
|
|
126
|
+
type: string
|
|
127
|
+
description: URL for the last page
|
|
128
|
+
next_page_url:
|
|
129
|
+
type: string
|
|
130
|
+
nullable: true
|
|
131
|
+
description: URL for the next page
|
|
132
|
+
prev_page_url:
|
|
133
|
+
type: string
|
|
134
|
+
nullable: true
|
|
135
|
+
description: URL for the previous page
|
|
136
|
+
path:
|
|
137
|
+
type: string
|
|
138
|
+
description: Base URL path
|
|
139
|
+
ProductSchema:
|
|
140
|
+
type: object
|
|
141
|
+
description: Product schema
|
|
142
|
+
properties:
|
|
143
|
+
_id:
|
|
144
|
+
type: string
|
|
145
|
+
description: Unique identifier for the product
|
|
146
|
+
name:
|
|
147
|
+
type: string
|
|
148
|
+
description: Name of the product
|
|
149
|
+
category:
|
|
150
|
+
type: string
|
|
151
|
+
description: ID of the product category
|
|
152
|
+
active:
|
|
153
|
+
type: boolean
|
|
154
|
+
description: Whether the product is active
|
|
155
|
+
company_namespace:
|
|
156
|
+
type: array
|
|
157
|
+
items:
|
|
158
|
+
type: string
|
|
159
|
+
description: Company namespaces
|
|
160
|
+
local_name:
|
|
161
|
+
type: string
|
|
162
|
+
description: Localized name of the product
|
|
163
|
+
sku:
|
|
164
|
+
type: string
|
|
165
|
+
description: Stock keeping unit
|
|
166
|
+
sub_category:
|
|
167
|
+
type: array
|
|
168
|
+
items:
|
|
169
|
+
type: string
|
|
170
|
+
description: IDs of the product sub-categories
|
|
171
|
+
assigned_to:
|
|
172
|
+
type: array
|
|
173
|
+
items:
|
|
174
|
+
type: string
|
|
175
|
+
description: Representatives assigned to this product
|
|
176
|
+
auditable:
|
|
177
|
+
type: boolean
|
|
178
|
+
description: Whether the product is auditable
|
|
179
|
+
barcode:
|
|
180
|
+
type: string
|
|
181
|
+
description: Barcode of the product
|
|
182
|
+
sv_tax:
|
|
183
|
+
type: string
|
|
184
|
+
description: ID of the tax
|
|
185
|
+
sv_measureUnit:
|
|
186
|
+
type: string
|
|
187
|
+
description: ID of the measure unit
|
|
188
|
+
description:
|
|
189
|
+
type: string
|
|
190
|
+
description: Description of the product
|
|
191
|
+
local_description:
|
|
192
|
+
type: string
|
|
193
|
+
description: Localized description of the product
|
|
194
|
+
product_img:
|
|
195
|
+
type: string
|
|
196
|
+
description: Product image URL
|
|
197
|
+
base_price:
|
|
198
|
+
type: string
|
|
199
|
+
description: Base price of the product
|
|
200
|
+
assigned_media:
|
|
201
|
+
type: array
|
|
202
|
+
items:
|
|
203
|
+
type: string
|
|
204
|
+
description: Media assigned to this product
|
|
205
|
+
html_description:
|
|
206
|
+
type: string
|
|
207
|
+
description: HTML description of the product
|
|
208
|
+
modifiers_group:
|
|
209
|
+
type: array
|
|
210
|
+
items:
|
|
211
|
+
type: string
|
|
212
|
+
description: Modifier groups for the product
|
|
213
|
+
featured:
|
|
214
|
+
type: boolean
|
|
215
|
+
description: Whether the product is featured
|
|
216
|
+
brand:
|
|
217
|
+
type: string
|
|
218
|
+
description: ID of the brand
|
|
219
|
+
rsp:
|
|
220
|
+
type: number
|
|
221
|
+
description: Recommended selling price
|
|
222
|
+
measureunit_family:
|
|
223
|
+
type: string
|
|
224
|
+
description: ID of the measure unit family
|
|
225
|
+
integration_meta:
|
|
226
|
+
type: object
|
|
227
|
+
additionalProperties: true
|
|
228
|
+
description: Integration metadata
|
|
229
|
+
teams:
|
|
230
|
+
type: array
|
|
231
|
+
items:
|
|
232
|
+
type: string
|
|
233
|
+
description: Teams
|
|
234
|
+
position:
|
|
235
|
+
type: number
|
|
236
|
+
description: Position of the product
|
|
237
|
+
product_groups:
|
|
238
|
+
type: array
|
|
239
|
+
items:
|
|
240
|
+
type: string
|
|
241
|
+
description: Product groups
|
|
242
|
+
frozen_pre_sales:
|
|
243
|
+
type: boolean
|
|
244
|
+
description: Whether pre-sales are frozen
|
|
245
|
+
frozen_sales:
|
|
246
|
+
type: boolean
|
|
247
|
+
description: Whether sales are frozen
|
|
248
|
+
createdAt:
|
|
249
|
+
type: string
|
|
250
|
+
format: date-time
|
|
251
|
+
description: Creation timestamp
|
|
252
|
+
updatedAt:
|
|
253
|
+
type: string
|
|
254
|
+
format: date-time
|
|
255
|
+
description: Last update timestamp
|
|
256
|
+
__v:
|
|
257
|
+
type: number
|
|
258
|
+
description: Version number
|
|
259
|
+
ProductCreateBody:
|
|
260
|
+
type: object
|
|
261
|
+
description: Body for creating a product
|
|
262
|
+
required:
|
|
263
|
+
- name
|
|
264
|
+
- category
|
|
265
|
+
properties:
|
|
266
|
+
name:
|
|
267
|
+
type: string
|
|
268
|
+
description: Name of the product
|
|
269
|
+
category:
|
|
270
|
+
type: string
|
|
271
|
+
description: ID of the product category
|
|
272
|
+
active:
|
|
273
|
+
type: boolean
|
|
274
|
+
description: Whether the product is active
|
|
275
|
+
company_namespace:
|
|
276
|
+
type: array
|
|
277
|
+
items:
|
|
278
|
+
type: string
|
|
279
|
+
description: Company namespaces
|
|
280
|
+
local_name:
|
|
281
|
+
type: string
|
|
282
|
+
description: Localized name of the product
|
|
283
|
+
sku:
|
|
284
|
+
type: string
|
|
285
|
+
description: Stock keeping unit
|
|
286
|
+
sub_category:
|
|
287
|
+
type: array
|
|
288
|
+
items:
|
|
289
|
+
type: string
|
|
290
|
+
description: IDs of the product sub-categories
|
|
291
|
+
assigned_to:
|
|
292
|
+
type: array
|
|
293
|
+
items:
|
|
294
|
+
type: string
|
|
295
|
+
description: Representatives assigned to this product
|
|
296
|
+
auditable:
|
|
297
|
+
type: boolean
|
|
298
|
+
description: Whether the product is auditable
|
|
299
|
+
barcode:
|
|
300
|
+
type: string
|
|
301
|
+
description: Barcode of the product
|
|
302
|
+
sv_tax:
|
|
303
|
+
type: string
|
|
304
|
+
description: ID of the tax
|
|
305
|
+
sv_measureUnit:
|
|
306
|
+
type: string
|
|
307
|
+
description: ID of the measure unit
|
|
308
|
+
description:
|
|
309
|
+
type: string
|
|
310
|
+
description: Description of the product
|
|
311
|
+
local_description:
|
|
312
|
+
type: string
|
|
313
|
+
description: Localized description of the product
|
|
314
|
+
product_img:
|
|
315
|
+
type: string
|
|
316
|
+
description: Product image URL
|
|
317
|
+
base_price:
|
|
318
|
+
type: string
|
|
319
|
+
description: Base price of the product
|
|
320
|
+
assigned_media:
|
|
321
|
+
type: array
|
|
322
|
+
items:
|
|
323
|
+
type: string
|
|
324
|
+
description: Media assigned to this product
|
|
325
|
+
html_description:
|
|
326
|
+
type: string
|
|
327
|
+
description: HTML description of the product
|
|
328
|
+
modifiers_group:
|
|
329
|
+
type: array
|
|
330
|
+
items:
|
|
331
|
+
type: string
|
|
332
|
+
description: Modifier groups for the product
|
|
333
|
+
featured:
|
|
334
|
+
type: boolean
|
|
335
|
+
description: Whether the product is featured
|
|
336
|
+
brand:
|
|
337
|
+
type: string
|
|
338
|
+
description: ID of the brand
|
|
339
|
+
rsp:
|
|
340
|
+
type: number
|
|
341
|
+
description: Recommended selling price
|
|
342
|
+
measureunit_family:
|
|
343
|
+
type: string
|
|
344
|
+
description: ID of the measure unit family
|
|
345
|
+
integration_meta:
|
|
346
|
+
type: object
|
|
347
|
+
additionalProperties: true
|
|
348
|
+
description: Integration metadata
|
|
349
|
+
teams:
|
|
350
|
+
type: array
|
|
351
|
+
items:
|
|
352
|
+
type: string
|
|
353
|
+
description: Teams
|
|
354
|
+
position:
|
|
355
|
+
type: number
|
|
356
|
+
description: Position of the product
|
|
357
|
+
product_groups:
|
|
358
|
+
type: array
|
|
359
|
+
items:
|
|
360
|
+
type: string
|
|
361
|
+
description: Product groups
|
|
362
|
+
frozen_pre_sales:
|
|
363
|
+
type: boolean
|
|
364
|
+
description: Whether pre-sales are frozen
|
|
365
|
+
frozen_sales:
|
|
366
|
+
type: boolean
|
|
367
|
+
description: Whether sales are frozen
|
|
368
|
+
variants:
|
|
369
|
+
type: array
|
|
370
|
+
items:
|
|
371
|
+
$ref: "#/components/schemas/VariantCreateBody"
|
|
372
|
+
description: List of variants for this product
|
|
373
|
+
ProductCreateResult:
|
|
374
|
+
$ref: "#/components/schemas/ProductSchema"
|
|
375
|
+
description: Result of creating a product
|
|
376
|
+
ProductGetResult:
|
|
377
|
+
$ref: "#/components/schemas/ProductSchema"
|
|
378
|
+
description: Result of getting a product
|
|
379
|
+
ProductUpdateBody:
|
|
380
|
+
type: object
|
|
381
|
+
description: Body for updating a product
|
|
382
|
+
properties:
|
|
383
|
+
name:
|
|
384
|
+
type: string
|
|
385
|
+
description: Name of the product
|
|
386
|
+
category:
|
|
387
|
+
type: string
|
|
388
|
+
description: ID of the product category
|
|
389
|
+
active:
|
|
390
|
+
type: boolean
|
|
391
|
+
description: Whether the product is active
|
|
392
|
+
company_namespace:
|
|
393
|
+
type: array
|
|
394
|
+
items:
|
|
395
|
+
type: string
|
|
396
|
+
description: Company namespaces
|
|
397
|
+
local_name:
|
|
398
|
+
type: string
|
|
399
|
+
description: Localized name of the product
|
|
400
|
+
sku:
|
|
401
|
+
type: string
|
|
402
|
+
description: Stock keeping unit
|
|
403
|
+
sub_category:
|
|
404
|
+
type: array
|
|
405
|
+
items:
|
|
406
|
+
type: string
|
|
407
|
+
description: IDs of the product sub-categories
|
|
408
|
+
assigned_to:
|
|
409
|
+
type: array
|
|
410
|
+
items:
|
|
411
|
+
type: string
|
|
412
|
+
description: Representatives assigned to this product
|
|
413
|
+
auditable:
|
|
414
|
+
type: boolean
|
|
415
|
+
description: Whether the product is auditable
|
|
416
|
+
barcode:
|
|
417
|
+
type: string
|
|
418
|
+
description: Barcode of the product
|
|
419
|
+
sv_tax:
|
|
420
|
+
type: string
|
|
421
|
+
description: ID of the tax
|
|
422
|
+
sv_measureUnit:
|
|
423
|
+
type: string
|
|
424
|
+
description: ID of the measure unit
|
|
425
|
+
description:
|
|
426
|
+
type: string
|
|
427
|
+
description: Description of the product
|
|
428
|
+
local_description:
|
|
429
|
+
type: string
|
|
430
|
+
description: Localized description of the product
|
|
431
|
+
product_img:
|
|
432
|
+
type: string
|
|
433
|
+
description: Product image URL
|
|
434
|
+
base_price:
|
|
435
|
+
type: string
|
|
436
|
+
description: Base price of the product
|
|
437
|
+
assigned_media:
|
|
438
|
+
type: array
|
|
439
|
+
items:
|
|
440
|
+
type: string
|
|
441
|
+
description: Media assigned to this product
|
|
442
|
+
html_description:
|
|
443
|
+
type: string
|
|
444
|
+
description: HTML description of the product
|
|
445
|
+
modifiers_group:
|
|
446
|
+
type: array
|
|
447
|
+
items:
|
|
448
|
+
type: string
|
|
449
|
+
description: Modifier groups for the product
|
|
450
|
+
featured:
|
|
451
|
+
type: boolean
|
|
452
|
+
description: Whether the product is featured
|
|
453
|
+
brand:
|
|
454
|
+
type: string
|
|
455
|
+
description: ID of the brand
|
|
456
|
+
rsp:
|
|
457
|
+
type: number
|
|
458
|
+
description: Recommended selling price
|
|
459
|
+
measureunit_family:
|
|
460
|
+
type: string
|
|
461
|
+
description: ID of the measure unit family
|
|
462
|
+
integration_meta:
|
|
463
|
+
type: object
|
|
464
|
+
additionalProperties: true
|
|
465
|
+
description: Integration metadata
|
|
466
|
+
teams:
|
|
467
|
+
type: array
|
|
468
|
+
items:
|
|
469
|
+
type: string
|
|
470
|
+
description: Teams
|
|
471
|
+
position:
|
|
472
|
+
type: number
|
|
473
|
+
description: Position of the product
|
|
474
|
+
product_groups:
|
|
475
|
+
type: array
|
|
476
|
+
items:
|
|
477
|
+
type: string
|
|
478
|
+
description: Product groups
|
|
479
|
+
frozen_pre_sales:
|
|
480
|
+
type: boolean
|
|
481
|
+
description: Whether pre-sales are frozen
|
|
482
|
+
frozen_sales:
|
|
483
|
+
type: boolean
|
|
484
|
+
description: Whether sales are frozen
|
|
485
|
+
_id:
|
|
486
|
+
type: string
|
|
487
|
+
description: Unique identifier for the product
|
|
488
|
+
createdAt:
|
|
489
|
+
type: string
|
|
490
|
+
format: date-time
|
|
491
|
+
description: Creation timestamp
|
|
492
|
+
updatedAt:
|
|
493
|
+
type: string
|
|
494
|
+
format: date-time
|
|
495
|
+
description: Last update timestamp
|
|
496
|
+
__v:
|
|
497
|
+
type: number
|
|
498
|
+
description: Version number
|
|
499
|
+
variants:
|
|
500
|
+
type: array
|
|
501
|
+
items:
|
|
502
|
+
allOf:
|
|
503
|
+
- $ref: "#/components/schemas/VariantCreateBody"
|
|
504
|
+
- type: object
|
|
505
|
+
properties:
|
|
506
|
+
_id:
|
|
507
|
+
type: string
|
|
508
|
+
description: Unique identifier for the variant
|
|
509
|
+
description: List of variants for this product
|
|
510
|
+
ProductUpdateResult:
|
|
511
|
+
$ref: "#/components/schemas/ProductSchema"
|
|
512
|
+
description: Result of updating a product
|
|
513
|
+
ProductRemoveResult:
|
|
514
|
+
$ref: "#/components/schemas/ProductSchema"
|
|
515
|
+
description: Result of removing a product
|
|
516
|
+
VariantCreateBody:
|
|
517
|
+
type: object
|
|
518
|
+
description: Body for creating a variant
|
|
519
|
+
properties:
|
|
520
|
+
name:
|
|
521
|
+
type: string
|
|
522
|
+
description: Name of the variant
|
|
523
|
+
product:
|
|
524
|
+
type: string
|
|
525
|
+
description: ID of the product this variant belongs to
|
|
526
|
+
price:
|
|
527
|
+
type: number
|
|
528
|
+
description: Price of the variant
|
|
529
|
+
company_namespace:
|
|
530
|
+
type: array
|
|
531
|
+
items:
|
|
532
|
+
type: string
|
|
533
|
+
description: Company namespaces
|
|
534
|
+
disabled:
|
|
535
|
+
type: boolean
|
|
536
|
+
description: Whether the variant is disabled
|
|
537
|
+
uuid:
|
|
538
|
+
type: string
|
|
539
|
+
description: UUID for the variant
|
|
540
|
+
local_name:
|
|
541
|
+
type: string
|
|
542
|
+
description: Localized name of the variant
|
|
543
|
+
sku:
|
|
544
|
+
type: string
|
|
545
|
+
description: Stock keeping unit
|
|
546
|
+
barcode:
|
|
547
|
+
type: string
|
|
548
|
+
description: Barcode of the variant
|
|
549
|
+
weight:
|
|
550
|
+
type: number
|
|
551
|
+
description: Weight of the variant
|
|
552
|
+
length:
|
|
553
|
+
type: number
|
|
554
|
+
description: Length of the variant
|
|
555
|
+
width:
|
|
556
|
+
type: number
|
|
557
|
+
description: Width of the variant
|
|
558
|
+
height:
|
|
559
|
+
type: number
|
|
560
|
+
description: Height of the variant
|
|
561
|
+
position:
|
|
562
|
+
type: number
|
|
563
|
+
description: Position of the variant
|
|
564
|
+
default:
|
|
565
|
+
type: boolean
|
|
566
|
+
description: Whether this is the default variant
|
|
567
|
+
variant_img:
|
|
568
|
+
type: string
|
|
569
|
+
description: Image URL for the variant
|
|
570
|
+
modifiers_groups:
|
|
571
|
+
type: array
|
|
572
|
+
items:
|
|
573
|
+
type: string
|
|
574
|
+
description: Modifier groups for the variant
|
|
575
|
+
integration_meta:
|
|
576
|
+
type: object
|
|
577
|
+
additionalProperties: true
|
|
578
|
+
description: Integration metadata
|