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_idstringreturn_idstringOptionalclaim_idstringOptionalexchange_idstringOptionaldescriptionstringOptionalinternal_notestringOptionalreferencestringOptionalreturn.reference_idstringOptionalreference is return, the
value is return_123.metadatanull | 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_backorderbooleanOptionalno_notificationbooleanOptionalcreated_bynull | stringOptionalOrderExchangeDTO[]OrderExchangeDTO[]idstringorder_idstringorder_versionnumberdisplay_idnumberadditional_itemsany[]metadatanull | Record<string, unknown>no_notificationbooleanOptional0, 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_backorderbooleanOptionalreturn_idstringOptionalcreated_bynull | stringOptionalcreated_atstring | DateOptionalupdated_atstring | DateOptionaldeleted_atstring | DateOptionalcanceled_atstring | DateOptional