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_zdBmwCEQrMaOrdaAPuTC"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[]id
stringThe ID of the order change
id
stringversion
numberThe version of the order change
version
numberorder_id
stringThe ID of the associated order
order_id
stringreturn_id
stringThe ID of the associated return order
return_id
stringexchange_id
stringThe ID of the associated exchange order
exchange_id
stringclaim_id
stringThe ID of the associated claim order
claim_id
stringThe associated order
The associated return order
The associated exchange order
The associated claim order
The actions of the order change
status
OrderChangeStatusThe status of the order change
status
OrderChangeStatusrequested_by
null | stringThe requested by of the order change
requested_by
null | stringrequested_at
null | string | DateWhen the order change was requested
requested_at
null | string | Dateconfirmed_by
null | stringThe confirmed by of the order change
confirmed_by
null | stringconfirmed_at
null | string | DateWhen the order change was confirmed
confirmed_at
null | string | Datedeclined_by
null | stringThe declined by of the order change
declined_by
null | stringdeclined_reason
null | stringThe declined reason of the order change
declined_reason
null | stringmetadata
null | Record<string, unknown>The metadata of the order change
metadata
null | Record<string, unknown>declined_at
null | string | DateWhen the order change was declined
declined_at
null | string | Datecanceled_by
null | stringThe canceled by of the order change
canceled_by
null | stringcanceled_at
null | string | DateWhen the order change was canceled
canceled_at
null | string | Datecreated_at
string | DateWhen the order change was created
created_at
string | Dateupdated_at
string | DateWhen the order change was updated
updated_at
string | Datechange_type
"return" | "exchange" | "claim" | "edit" | "transfer"OptionalThe type of the order change
change_type
"return" | "exchange" | "claim" | "edit" | "transfer"OptionalWas this page helpful?