1 /**
2 * @oas [get] /admin/customer-groups
3 * operationId: GetCustomerGroups
4 * summary: List Customer Groups
5 * description: Retrieve a list of customer groups. The customer groups can be filtered by fields such as `id`. The customer groups can also be sorted or paginated.
6 * x-authenticated: true
7 * parameters:
8 * - name: fields
9 * in: query
10 * description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default
11 * fields. without prefix it will replace the entire default fields.
12 * required: false
13 * schema:
14 * type: string
15 * title: fields
16 * description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default
17 * fields. without prefix it will replace the entire default fields.
18 * externalDocs:
19 * url: "#select-fields-and-relations"
20 * - name: offset
21 * in: query
22 * description: The number of items to skip when retrieving a list.
23 * required: false
24 * schema:
25 * type: number
26 * title: offset
27 * description: The number of items to skip when retrieving a list.
28 * externalDocs:
29 * url: "#pagination"
30 * - name: limit
31 * in: query
32 * description: Limit the number of items returned in the list.
33 * required: false
34 * schema:
35 * type: number
36 * title: limit
37 * description: Limit the number of items returned in the list.
38 * externalDocs:
39 * url: "#pagination"
40 * - name: order
41 * in: query
42 * description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.
43 * required: false
44 * schema:
45 * type: string
46 * title: order
47 * description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.
48 * - name: q
49 * in: query
50 * description: Search term to filter the customer group's searchable properties.
51 * required: false
52 * schema:
53 * type: string
54 * title: q
55 * description: Search term to filter the customer group's searchable properties.
56 * - name: id
57 * in: query
58 * required: false
59 * schema:
60 * oneOf:
61 * - type: string
62 * title: id
63 * description: Filter by a customer group's IDs.
64 * - type: array
65 * description: Filter by customer group IDs.
66 * items:
67 * type: string
68 * title: id
69 * description: A customer group's ID.
70 * - name: name
71 * in: query
72 * required: false
73 * schema:
74 * oneOf:
75 * - type: string
76 * title: name
77 * description: Filter by a customer group's name.
78 * - type: array
79 * description: Filter by customer group names.
80 * items:
81 * type: string
82 * title: name
83 * description: A customer group's name.
84 * - name: customers
85 * in: query
86 * required: false
87 * schema:
88 * oneOf:
89 * - type: string
90 * title: customers
91 * description: Filter by the ID of a customer to retrieve its groups.
92 * - type: array
93 * description: Filter by customer IDs to retrieve their groups.
94 * items:
95 * type: string
96 * title: customers
97 * description: A customer's ID.
98 * - $ref: "#/components/schemas/AdminCustomerInGroupFilters"
99 * - name: created_by
100 * in: query
101 * required: false
102 * schema:
103 * oneOf:
104 * - type: string
105 * title: created_by
106 * description: Filter by an ID of a user to retrieve the customer groups they created.
107 * - type: array
108 * description: Filter by the IDs of users to retrieve the customer groups they created.
109 * items:
110 * type: string
111 * title: created_by
112 * description: The user's ID.
113 * - name: created_at
114 * in: query
115 * description: Filter the customer group by its creation date.
116 * required: false
117 * schema:
118 * type: object
119 * description: Filter the customer group by its creation date.
120 * properties:
121 * $and:
122 * type: array
123 * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
124 * items:
125 * type: object
126 * title: $and
127 * $or:
128 * type: array
129 * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
130 * items:
131 * type: object
132 * title: $or
133 * $eq:
134 * oneOf:
135 * - type: string
136 * title: $eq
137 * description: Filter by an exact match.
138 * - type: array
139 * description: Filter by multiple exact matches.
140 * items:
141 * type: string
142 * title: $eq
143 * description: An exact match.
144 * $ne:
145 * type: string
146 * title: $ne
147 * description: Filter by values not equal to this parameter.
148 * $in:
149 * type: array
150 * description: Filter by values in this array.
151 * items:
152 * type: string
153 * title: $in
154 * description: The value to match.
155 * $nin:
156 * type: array
157 * description: Filter by values not in this array.
158 * items:
159 * type: string
160 * title: $nin
161 * description: The value not to match.
162 * $not:
163 * oneOf:
164 * - type: string
165 * title: $not
166 * description: Filter by values not matching this parameter.
167 * - type: object
168 * description: Filter by values not matching the conditions in this parameter.
169 * properties:
170 * $and:
171 * type: array
172 * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
173 * items:
174 * type: object
175 * title: $and
176 * $or:
177 * type: array
178 * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
179 * items:
180 * type: object
181 * title: $or
182 * $eq:
183 * oneOf:
184 * - type: string
185 * title: $eq
186 * description: Filter by an exact match.
187 * - type: array
188 * description: Filter by multiple exact matches.
189 * items:
190 * type: string
191 * title: $eq
192 * description: The value to match.
193 * $ne:
194 * type: string
195 * title: $ne
196 * description: Filter by values not matching this parameter.
197 * $in:
198 * type: array
199 * description: Filter by values in this array.
200 * items:
201 * type: string
202 * title: $in
203 * description: The value to match.
204 * $nin:
205 * type: array
206 * description: Filter by values not in this array.
207 * items:
208 * type: string
209 * title: $nin
210 * description: The value to not match
211 * $not:
212 * oneOf:
213 * - type: string
214 * title: $not
215 * description: Filter by values not matching this parameter
216 * - type: object
217 * description: Filter by values not matching the conditions in this parameter.
218 * - type: array
219 * description: Filter by values not matching the values of this parameter.
220 * items:
221 * type: string
222 * title: $not
223 * description: The values to not match.
224 * $gt:
225 * type: string
226 * title: $gt
227 * description: Filter by values greater than this parameter. Useful for numbers and dates only.
228 * $gte:
229 * type: string
230 * title: $gte
231 * description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
232 * $lt:
233 * type: string
234 * title: $lt
235 * description: Filter by values less than this parameter. Useful for numbers and dates only.
236 * $lte:
237 * type: string
238 * title: $lte
239 * description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
240 * $like:
241 * type: string
242 * title: $like
243 * description: Apply a `like` filter. Useful for strings only.
244 * $re:
245 * type: string
246 * title: $re
247 * description: Apply a regex filter. Useful for strings only.
248 * $ilike:
249 * type: string
250 * title: $ilike
251 * description: Apply a case-insensitive `like` filter. Useful for strings only.
252 * $fulltext:
253 * type: string
254 * title: $fulltext
255 * description: Filter to apply on full-text properties.
256 * $overlap:
257 * type: array
258 * description: Filter arrays that have overlapping values with this parameter.
259 * items:
260 * type: string
261 * title: $overlap
262 * description: The value to match.
263 * $contains:
264 * type: array
265 * description: Filter arrays that contain some of the values of this parameter.
266 * items:
267 * type: string
268 * title: $contains
269 * description: The values to match.
270 * $contained:
271 * type: array
272 * description: Filter arrays that contain all values of this parameter.
273 * items:
274 * type: string
275 * title: $contained
276 * description: The values to match.
277 * $exists:
278 * type: boolean
279 * title: $exists
280 * description: Filter by whether a value for this parameter exists (not `null`).
281 * - type: array
282 * description: Filter by values not matching those in this parameter.
283 * items:
284 * type: string
285 * title: $not
286 * description: The values to not match.
287 * $gt:
288 * type: string
289 * title: $gt
290 * description: Filter by values greater than this parameter. Useful for numbers and dates only.
291 * $gte:
292 * type: string
293 * title: $gte
294 * description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
295 * $lt:
296 * type: string
297 * title: $lt
298 * description: Filter by values less than this parameter. Useful for numbers and dates only.
299 * $lte:
300 * type: string
301 * title: $lte
302 * description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
303 * $like:
304 * type: string
305 * title: $like
306 * description: Apply a `like` filter. Useful for strings only.
307 * $re:
308 * type: string
309 * title: $re
310 * description: Apply a regex filter. Useful for strings only.
311 * $ilike:
312 * type: string
313 * title: $ilike
314 * description: Apply a case-insensitive `like` filter. Useful for strings only.
315 * $fulltext:
316 * type: string
317 * title: $fulltext
318 * description: Filter to apply on full-text properties.
319 * $overlap:
320 * type: array
321 * description: Filter arrays that have overlapping values with this parameter.
322 * items:
323 * type: string
324 * title: $overlap
325 * description: The values to match.
326 * $contains:
327 * type: array
328 * description: Filter arrays that contain some of the values of this parameter.
329 * items:
330 * type: string
331 * title: $contains
332 * description: The values to match.
333 * $contained:
334 * type: array
335 * description: Filter arrays that contain all values of this parameter.
336 * items:
337 * type: string
338 * title: $contained
339 * description: The values to match.
340 * $exists:
341 * type: boolean
342 * title: $exists
343 * description: Filter by whether a value for this parameter exists (not `null`).
344 * title: created_at
345 * - name: updated_at
346 * in: query
347 * description: Filter the customer groups by their update date.
348 * required: false
349 * schema:
350 * type: object
351 * description: Filter the customer groups by their update date.
352 * properties:
353 * $and:
354 * type: array
355 * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
356 * items:
357 * type: object
358 * title: $and
359 * $or:
360 * type: array
361 * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
362 * items:
363 * type: object
364 * title: $or
365 * $eq:
366 * oneOf:
367 * - type: string
368 * title: $eq
369 * description: Filter by an exact match.
370 * - type: array
371 * description: Filter by multiple exact matches.
372 * items:
373 * type: string
374 * title: $eq
375 * description: An exact match.
376 * $ne:
377 * type: string
378 * title: $ne
379 * description: Filter by values not equal to this parameter.
380 * $in:
381 * type: array
382 * description: Filter by values in this array.
383 * items:
384 * type: string
385 * title: $in
386 * description: The value to match.
387 * $nin:
388 * type: array
389 * description: Filter by values not in this array.
390 * items:
391 * type: string
392 * title: $nin
393 * description: The value not to match.
394 * $not:
395 * oneOf:
396 * - type: string
397 * title: $not
398 * description: Filter by values not matching this parameter.
399 * - type: object
400 * description: Filter by values not matching the conditions in this parameter.
401 * properties:
402 * $and:
403 * type: array
404 * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
405 * items:
406 * type: object
407 * title: $and
408 * $or:
409 * type: array
410 * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
411 * items:
412 * type: object
413 * title: $or
414 * $eq:
415 * oneOf:
416 * - type: string
417 * title: $eq
418 * description: Filter by an exact match.
419 * - type: array
420 * description: Filter by multiple exact matches.
421 * items:
422 * type: string
423 * title: $eq
424 * description: The value to match.
425 * $ne:
426 * type: string
427 * title: $ne
428 * description: Filter by values not matching this parameter.
429 * $in:
430 * type: array
431 * description: Filter by values in this array.
432 * items:
433 * type: string
434 * title: $in
435 * description: The value to match.
436 * $nin:
437 * type: array
438 * description: Filter by values not in this array.
439 * items:
440 * type: string
441 * title: $nin
442 * description: The value to not match
443 * $not:
444 * oneOf:
445 * - type: string
446 * title: $not
447 * description: Filter by values not matching this parameter
448 * - type: object
449 * description: Filter by values not matching the conditions in this parameter.
450 * - type: array
451 * description: Filter by values not matching the values of this parameter.
452 * items:
453 * type: string
454 * title: $not
455 * description: The values to not match.
456 * $gt:
457 * type: string
458 * title: $gt
459 * description: Filter by values greater than this parameter. Useful for numbers and dates only.
460 * $gte:
461 * type: string
462 * title: $gte
463 * description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
464 * $lt:
465 * type: string
466 * title: $lt
467 * description: Filter by values less than this parameter. Useful for numbers and dates only.
468 * $lte:
469 * type: string
470 * title: $lte
471 * description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
472 * $like:
473 * type: string
474 * title: $like
475 * description: Apply a `like` filter. Useful for strings only.
476 * $re:
477 * type: string
478 * title: $re
479 * description: Apply a regex filter. Useful for strings only.
480 * $ilike:
481 * type: string
482 * title: $ilike
483 * description: Apply a case-insensitive `like` filter. Useful for strings only.
484 * $fulltext:
485 * type: string
486 * title: $fulltext
487 * description: Filter to apply on full-text properties.
488 * $overlap:
489 * type: array
490 * description: Filter arrays that have overlapping values with this parameter.
491 * items:
492 * type: string
493 * title: $overlap
494 * description: The value to match.
495 * $contains:
496 * type: array
497 * description: Filter arrays that contain some of the values of this parameter.
498 * items:
499 * type: string
500 * title: $contains
501 * description: The values to match.
502 * $contained:
503 * type: array
504 * description: Filter arrays that contain all values of this parameter.
505 * items:
506 * type: string
507 * title: $contained
508 * description: The values to match.
509 * $exists:
510 * type: boolean
511 * title: $exists
512 * description: Filter by whether a value for this parameter exists (not `null`).
513 * - type: array
514 * description: Filter by values not matching those in this parameter.
515 * items:
516 * type: string
517 * title: $not
518 * description: The values to not match.
519 * $gt:
520 * type: string
521 * title: $gt
522 * description: Filter by values greater than this parameter. Useful for numbers and dates only.
523 * $gte:
524 * type: string
525 * title: $gte
526 * description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
527 * $lt:
528 * type: string
529 * title: $lt
530 * description: Filter by values less than this parameter. Useful for numbers and dates only.
531 * $lte:
532 * type: string
533 * title: $lte
534 * description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
535 * $like:
536 * type: string
537 * title: $like
538 * description: Apply a `like` filter. Useful for strings only.
539 * $re:
540 * type: string
541 * title: $re
542 * description: Apply a regex filter. Useful for strings only.
543 * $ilike:
544 * type: string
545 * title: $ilike
546 * description: Apply a case-insensitive `like` filter. Useful for strings only.
547 * $fulltext:
548 * type: string
549 * title: $fulltext
550 * description: Filter to apply on full-text properties.
551 * $overlap:
552 * type: array
553 * description: Filter arrays that have overlapping values with this parameter.
554 * items:
555 * type: string
556 * title: $overlap
557 * description: The values to match.
558 * $contains:
559 * type: array
560 * description: Filter arrays that contain some of the values of this parameter.
561 * items:
562 * type: string
563 * title: $contains
564 * description: The values to match.
565 * $contained:
566 * type: array
567 * description: Filter arrays that contain all values of this parameter.
568 * items:
569 * type: string
570 * title: $contained
571 * description: The values to match.
572 * $exists:
573 * type: boolean
574 * title: $exists
575 * description: Filter by whether a value for this parameter exists (not `null`).
576 * title: updated_at
577 * - name: deleted_at
578 * in: query
579 * description: Filter the customer groups by their deletion date.
580 * required: false
581 * schema:
582 * type: object
583 * description: Filter the customer groups by their deletion date.
584 * properties:
585 * $and:
586 * type: array
587 * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
588 * items:
589 * type: object
590 * title: $and
591 * $or:
592 * type: array
593 * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
594 * items:
595 * type: object
596 * title: $or
597 * $eq:
598 * oneOf:
599 * - type: string
600 * title: $eq
601 * description: Filter by an exact match.
602 * - type: array
603 * description: Filter by multiple exact matches.
604 * items:
605 * type: string
606 * title: $eq
607 * description: An exact match.
608 * $ne:
609 * type: string
610 * title: $ne
611 * description: Filter by values not equal to this parameter.
612 * $in:
613 * type: array
614 * description: Filter by values in this array.
615 * items:
616 * type: string
617 * title: $in
618 * description: The value to match.
619 * $nin:
620 * type: array
621 * description: Filter by values not in this array.
622 * items:
623 * type: string
624 * title: $nin
625 * description: The value not to match.
626 * $not:
627 * oneOf:
628 * - type: string
629 * title: $not
630 * description: Filter by values not matching this parameter.
631 * - type: object
632 * description: Filter by values not matching the conditions in this parameter.
633 * properties:
634 * $and:
635 * type: array
636 * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
637 * items:
638 * type: object
639 * title: $and
640 * $or:
641 * type: array
642 * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
643 * items:
644 * type: object
645 * title: $or
646 * $eq:
647 * oneOf:
648 * - type: string
649 * title: $eq
650 * description: Filter by an exact match.
651 * - type: array
652 * description: Filter by multiple exact matches.
653 * items:
654 * type: string
655 * title: $eq
656 * description: The value to match.
657 * $ne:
658 * type: string
659 * title: $ne
660 * description: Filter by values not matching this parameter.
661 * $in:
662 * type: array
663 * description: Filter by values in this array.
664 * items:
665 * type: string
666 * title: $in
667 * description: The value to match.
668 * $nin:
669 * type: array
670 * description: Filter by values not in this array.
671 * items:
672 * type: string
673 * title: $nin
674 * description: The value to not match
675 * $not:
676 * oneOf:
677 * - type: string
678 * title: $not
679 * description: Filter by values not matching this parameter
680 * - type: object
681 * description: Filter by values not matching the conditions in this parameter.
682 * - type: array
683 * description: Filter by values not matching the values of this parameter.
684 * items:
685 * type: string
686 * title: $not
687 * description: The values to not match.
688 * $gt:
689 * type: string
690 * title: $gt
691 * description: Filter by values greater than this parameter. Useful for numbers and dates only.
692 * $gte:
693 * type: string
694 * title: $gte
695 * description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
696 * $lt:
697 * type: string
698 * title: $lt
699 * description: Filter by values less than this parameter. Useful for numbers and dates only.
700 * $lte:
701 * type: string
702 * title: $lte
703 * description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
704 * $like:
705 * type: string
706 * title: $like
707 * description: Apply a `like` filter. Useful for strings only.
708 * $re:
709 * type: string
710 * title: $re
711 * description: Apply a regex filter. Useful for strings only.
712 * $ilike:
713 * type: string
714 * title: $ilike
715 * description: Apply a case-insensitive `like` filter. Useful for strings only.
716 * $fulltext:
717 * type: string
718 * title: $fulltext
719 * description: Filter to apply on full-text properties.
720 * $overlap:
721 * type: array
722 * description: Filter arrays that have overlapping values with this parameter.
723 * items:
724 * type: string
725 * title: $overlap
726 * description: The value to match.
727 * $contains:
728 * type: array
729 * description: Filter arrays that contain some of the values of this parameter.
730 * items:
731 * type: string
732 * title: $contains
733 * description: The values to match.
734 * $contained:
735 * type: array
736 * description: Filter arrays that contain all values of this parameter.
737 * items:
738 * type: string
739 * title: $contained
740 * description: The values to match.
741 * $exists:
742 * type: boolean
743 * title: $exists
744 * description: Filter by whether a value for this parameter exists (not `null`).
745 * - type: array
746 * description: Filter by values not matching those in this parameter.
747 * items:
748 * type: string
749 * title: $not
750 * description: The values to not match.
751 * $gt:
752 * type: string
753 * title: $gt
754 * description: Filter by values greater than this parameter. Useful for numbers and dates only.
755 * $gte:
756 * type: string
757 * title: $gte
758 * description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only.
759 * $lt:
760 * type: string
761 * title: $lt
762 * description: Filter by values less than this parameter. Useful for numbers and dates only.
763 * $lte:
764 * type: string
765 * title: $lte
766 * description: Filter by values less than or equal to this parameter. Useful for numbers and dates only.
767 * $like:
768 * type: string
769 * title: $like
770 * description: Apply a `like` filter. Useful for strings only.
771 * $re:
772 * type: string
773 * title: $re
774 * description: Apply a regex filter. Useful for strings only.
775 * $ilike:
776 * type: string
777 * title: $ilike
778 * description: Apply a case-insensitive `like` filter. Useful for strings only.
779 * $fulltext:
780 * type: string
781 * title: $fulltext
782 * description: Filter to apply on full-text properties.
783 * $overlap:
784 * type: array
785 * description: Filter arrays that have overlapping values with this parameter.
786 * items:
787 * type: string
788 * title: $overlap
789 * description: The values to match.
790 * $contains:
791 * type: array
792 * description: Filter arrays that contain some of the values of this parameter.
793 * items:
794 * type: string
795 * title: $contains
796 * description: The values to match.
797 * $contained:
798 * type: array
799 * description: Filter arrays that contain all values of this parameter.
800 * items:
801 * type: string
802 * title: $contained
803 * description: The values to match.
804 * $exists:
805 * type: boolean
806 * title: $exists
807 * description: Filter by whether a value for this parameter exists (not `null`).
808 * title: deleted_at
809 * - name: $and
810 * in: query
811 * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
812 * required: false
813 * schema:
814 * type: array
815 * description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.
816 * items:
817 * type: object
818 * title: $and
819 * - name: $or
820 * in: query
821 * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
822 * required: false
823 * schema:
824 * type: array
825 * description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.
826 * items:
827 * type: object
828 * title: $or
829 * - name: with_deleted
830 * in: query
831 * description: Whether to include deleted records in the result.
832 * required: false
833 * schema:
834 * type: boolean
835 * title: with_deleted
836 * description: Whether to include deleted records in the result.
837 * security:
838 * - api_token: []
839 * - cookie_auth: []
840 * - jwt_token: []
841 * x-codeSamples:
842 * - lang: JavaScript
843 * label: JS SDK
844 * source: |-
845 * import Medusa from "@medusajs/js-sdk"
846 *
847 * export const sdk = new Medusa({
848 * baseUrl: import.meta.env.VITE_BACKEND_URL || "/",
849 * debug: import.meta.env.DEV,
850 * auth: {
851 * type: "session",
852 * },
853 * })
854 *
855 * sdk.admin.customerGroup.list()
856 * .then(({ customer_groups, count, limit, offset }) => {
857 * console.log(customer_groups)
858 * })
859 * - lang: Shell
860 * label: cURL
861 * source: |-
862 * curl '{backend_url}/admin/customer-groups' \
863 * -H 'Authorization: Bearer {jwt_token}'
864 * tags:
865 * - Customer Groups
866 * responses:
867 * "200":
868 * description: OK
869 * content:
870 * application/json:
871 * schema:
872 * allOf:
873 * - type: object
874 * description: The paginated list of customer groups.
875 * required:
876 * - limit
877 * - offset
878 * - count
879 * properties:
880 * limit:
881 * type: number
882 * title: limit
883 * description: The maximum number of items retrieved.
884 * offset:
885 * type: number
886 * title: offset
887 * description: The number of items skipped before retrieving the returned items.
888 * count:
889 * type: number
890 * title: count
891 * description: The total number of items
892 * - type: object
893 * description: The paginated list of customer groups.
894 * required:
895 * - customer_groups
896 * properties:
897 * customer_groups:
898 * type: array
899 * description: The list of customer groups.
900 * items:
901 * $ref: "#/components/schemas/AdminCustomerGroup"
902 * "400":
903 * $ref: "#/components/responses/400_error"
904 * "401":
905 * $ref: "#/components/responses/unauthorized"
906 * "404":
907 * $ref: "#/components/responses/not_found_error"
908 * "409":
909 * $ref: "#/components/responses/invalid_state_error"
910 * "422":
911 * $ref: "#/components/responses/invalid_request_error"
912 * "500":
913 * $ref: "#/components/responses/500_error"
914 *
915 */
916