Loading...
Was this page helpful?
This documentation provides a reference to the beginOrderEditOrderWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow creates an order edit request. It' used by the Create Order Edit Admin API Route.
To request the order edit, use the requestOrderEditRequestWorkflow. The order edit is then only applied after the order edit is confirmed using the confirmOrderEditRequestWorkflow.
You can use this workflow within your customizations or your own custom workflows, allowing you to create an order edit for an order in your custom flows.
Source CodeWorkflow hook
Step conditioned by when
View step details
BeginorderEditWorkflowInput
BeginorderEditWorkflowInputorder_id
stringcreated_by
stringOptionalinternal_note
stringOptionaldescription
stringOptionalmetadata
null | Record<string, unknown>OptionalOrderChangeDTO
OrderChangeDTOid
stringversion
numberorder_id
stringreturn_id
stringexchange_id
stringclaim_id
stringstatus
OrderChangeStatusrequested_by
null | stringrequested_at
null | string | Dateconfirmed_by
null | stringconfirmed_at
null | string | Datedeclined_by
null | stringdeclined_reason
null | stringmetadata
null | Record<string, unknown>declined_at
null | string | Datecanceled_by
null | stringcanceled_at
null | string | Datecreated_at
string | Dateupdated_at
string | Datechange_type
"return" | "exchange" | "claim" | "edit" | "transfer"Optional