- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateOrderChangesStep - Medusa Core Workflows Reference
This documentation provides a reference to the updateOrderChangesStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step updates order change.
1import { createWorkflow } from "@medusajs/framework/workflows-sdk"2import { updateOrderChangesStep } from "@medusajs/medusa/core-flows"3 4const myWorkflow = createWorkflow(5 "my-workflow",6 () => {7 const data = updateOrderChangesStep({8 "id": "id_Pl4hkWpVjpNb6"9 })10 }11)
Input#
UpdateOrderChangesStepInput
UpdateOrderChangesStepInputThe order changes to update.
UpdateOrderChangesStepInput
UpdateOrderChangesStepInputid
stringThe ID of the order change.
id
stringstatus
stringOptionalThe status of the order change.
status
stringOptionaldescription
stringOptionalThe description of the order change.
description
stringOptionalreturn_id
null | stringOptionalThe associated return's ID.
return_id
null | stringOptionalinternal_note
null | stringOptionalThe internal note of the order change.
internal_note
null | stringOptionalrequested_by
null | stringOptionalThe user or customer that requested the
order change.
requested_by
null | stringOptionalrequested_at
null | DateOptionalThe date the order change was requested.
requested_at
null | DateOptionalconfirmed_by
null | stringOptionalThe user or customer that confirmed the
order change.
confirmed_by
null | stringOptionalconfirmed_at
null | DateOptionalThe date the order change was confirmed.
confirmed_at
null | DateOptionaldeclined_by
null | stringOptionalThe user or customer that declined
the order change.
declined_by
null | stringOptionaldeclined_reason
null | stringOptionalThe reason that the order change was declined.
declined_reason
null | stringOptionaldeclined_at
null | DateOptionalThe date that the order change was declined.
declined_at
null | DateOptionalcanceled_by
null | stringOptionalThe user or customer that canceled the
order change.
canceled_by
null | stringOptionalcanceled_at
null | DateOptionalThe date that the order change was canceled.
canceled_at
null | DateOptionalmetadata
null | Record<string, unknown>OptionalHolds custom data in key-value pairs.
metadata
null | Record<string, unknown>OptionalOutput#
OrderChangeDTO[]
OrderChangeDTO[]
OrderChangeDTO[]
OrderChangeDTO[]OrderChangeDTO
OrderChangeDTOThe order change details.
OrderChangeDTO
OrderChangeDTOWas this page helpful?