Loading...
Was this page helpful?
This documentation provides a reference to the createOrderChangeActionsWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow creates order change actions. It's used by other order-related workflows, such as requestItemReturnWorkflow to create an order change action based on changes made to the order.
You can use this workflow within your customizations or your own custom workflows, allowing you to wrap custom logic around creating an order change action.
Source CodeWorkflow hook
Step conditioned by when
View step details
CreateOrderChangeActionDTO[]
CreateOrderChangeActionDTO[]action
ChangeActionTypeorder_change_id
stringOptionalorder_id
stringOptionalreturn_id
stringOptionalclaim_id
stringOptionalexchange_id
stringOptionalversion
numberOptionalreference
stringOptionalreturn
.reference_id
stringOptionalreference
is return
, the reference_id
is the ID of the return.internal_note
null | stringOptionaldetails
Record<string, unknown>Optionalapplied
booleanOptionalOrderChangeActionDTO[]
OrderChangeActionDTO[]id
stringorder_change_id
null | stringorder_id
null | stringreturn_id
null | stringclaim_id
null | stringexchange_id
null | stringreference
stringreference_id
stringaction
ChangeActionTypedetails
null | Record<string, unknown>internal_note
null | stringcreated_at
string | Dateupdated_at
string | Date