Loading...
Was this page helpful?
This documentation provides a reference to the createOrderExchangesStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates one or more order exchanges.
1import { createWorkflow } from "@medusajs/framework/workflows-sdk"2import { createOrderExchangesStep } from "@medusajs/medusa/core-flows"3 4const myWorkflow = createWorkflow(5 "my-workflow",6 () => {7 const data = createOrderExchangesStep([{8 "order_id": "order_123"9 }])10 }11)
CreateOrderExchangeDTO[]
CreateOrderExchangeDTO[]order_id
stringreturn_id
stringOptionalclaim_id
stringOptionalexchange_id
stringOptionaldescription
stringOptionalinternal_note
stringOptionalreference
stringOptionalreturn
.reference_id
stringOptionalreference
is return
, the
value is return_123
.metadata
null | Record<string, unknown>Optional0
, the merchant owes the customer this amount.0
, the customer owes the merchange this amount.0
, no payment is required by either sides.allow_backorder
booleanOptionalno_notification
booleanOptionalcreated_by
null | stringOptionalOrderExchangeDTO[]
OrderExchangeDTO[]id
stringorder_id
stringorder_version
numberdisplay_id
numberadditional_items
any[]metadata
null | Record<string, unknown>no_notification
booleanOptional0
, the merchant owes the customer this amount.0
, the customer owes the merchange this amount.0
, no payment is required by either sides.0
, the merchant owes the customer this amount.0
, the customer owes the merchange this amount.0
, no payment is required by either sides.allow_backorder
booleanOptionalreturn_id
stringOptionalcreated_by
null | stringOptionalcreated_at
string | DateOptionalupdated_at
string | DateOptionaldeleted_at
string | DateOptionalcanceled_at
string | DateOptional