1 type: object
2 description: The order change action's details.
3 x-schemaName: OrderChangeAction
4 required:
5 - id
6 - order_change_id
7 - order_change
8 - order_id
9 - return_id
10 - claim_id
11 - exchange_id
12 - order
13 - reference
14 - reference_id
15 - action
16 - details
17 - internal_note
18 - ordering
19 - created_at
20 - updated_at
21 properties:
22 id:
23 type: string
24 title: id
25 description: The action's ID.
26 order_change_id:
27 type: string
28 title: order_change_id
29 description: The ID of the order change that the action belongs to.
30 order_change:
31 type: object
32 order_id:
33 type: string
34 title: order_id
35 description: The ID of the order the associated change is for.
36 return_id:
37 type: string
38 title: return_id
39 description: The ID of the associated return.
40 claim_id:
41 type: string
42 title: claim_id
43 description: The ID of the associated claim.
44 exchange_id:
45 type: string
46 title: exchange_id
47 description: The ID of the associated exchange.
48 order:
49 $ref: ./Order.yaml
50 reference:
51 type: string
52 title: reference
53 description: The name of the table this action applies on.
54 enum:
55 - claim
56 - exchange
57 - return
58 - order_shipping_method
59 reference_id:
60 type: string
61 title: reference_id
62 description: The ID of the record in the referenced table.
63 action:
64 type: string
65 description: The applied action.
66 enum:
67 - CANCEL_RETURN_ITEM
68 - FULFILL_ITEM
69 - DELIVER_ITEM
70 - CANCEL_ITEM_FULFILLMENT
71 - ITEM_ADD
72 - ITEM_REMOVE
73 - ITEM_UPDATE
74 - RECEIVE_DAMAGED_RETURN_ITEM
75 - RECEIVE_RETURN_ITEM
76 - RETURN_ITEM
77 - SHIPPING_ADD
78 - SHIPPING_REMOVE
79 - SHIP_ITEM
80 - WRITE_OFF_ITEM
81 - REINSTATE_ITEM
82 details:
83 type: object
84 description: The action's details.
85 example:
86 reference_id: 123
87 quantity: 1
88 internal_note:
89 type: string
90 title: internal_note
91 description: A note that's viewed only by admin users.
92 created_at:
93 type: string
94 format: date-time
95 title: created_at
96 description: The date the action was created.
97 updated_at:
98 type: string
99 format: date-time
100 title: updated_at
101 description: The date the action was updated.
102 ordering:
103 type: number
104 title: ordering
105 description: The action's ordering among other actions in the same order change.