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