createOrderExchangeItemsFromActionsStep - Medusa Core Workflows Reference
This documentation provides a reference to the createOrderExchangeItemsFromActionsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates exchange items from change actions.
Example#
Input#
CreateOrderExchangeItemsFromActionsInput
CreateOrderExchangeItemsFromActionsInputThe details of creating exchange items from change actions.
CreateOrderExchangeItemsFromActionsInput
CreateOrderExchangeItemsFromActionsInputchanges
OrderChangeActionDTO[]The change actions to create exchange items from.
changes
OrderChangeActionDTO[]exchangeId
stringThe ID of the exchange to create the items for.
exchangeId
stringOutput#
OrderExchangeItemDTO[]
OrderExchangeItemDTO[]
OrderExchangeItemDTO[]
OrderExchangeItemDTO[]id
stringThe ID of the order exchange item.
id
stringexchange_id
stringThe associated exchange's ID.
exchange_id
stringorder_id
stringThe associated order's ID.
order_id
stringitem_id
stringThe associated item's ID.
item_id
stringitem
OrderLineItemDTOThe associated item.
item
OrderLineItemDTOquantity
numberThe quantity of the order exchange item
quantity
numberraw_quantity
BigNumberRawValueThe raw quantity of the order exchange item
raw_quantity
BigNumberRawValuemetadata
null | Record<string, unknown>OptionalHolds custom data in key-value pairs.
metadata
null | Record<string, unknown>Optionalcreated_at
string | DateOptionalThe creation date of the order exchange item
created_at
string | DateOptionalupdated_at
string | DateOptionalThe update date of the order exchange item
updated_at
string | DateOptionalWas this page helpful?