- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
cancelOrderReturnStep - Medusa Core Workflows Reference
This documentation provides a reference to the cancelOrderReturnStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step cancels a return.
1import { createWorkflow } from "@medusajs/framework/workflows-sdk"2import { cancelOrderReturnStep } from "@medusajs/medusa/core-flows"3 4const myWorkflow = createWorkflow(5 "my-workflow",6 () => {7 const data = cancelOrderReturnStep({8 "order_id": "order_123",9 "return_id": "{value}"10 })11 }12)
Input#
CancelOrderReturnDTO
CancelOrderReturnDTOThe details of the return cancelation.
CancelOrderReturnDTO
CancelOrderReturnDTOorder_id
stringThe associated order's ID.
order_id
stringreturn_id
stringThe return's ID.
return_id
stringclaim_id
stringOptionalThe associated claim's ID.
claim_id
stringOptionalexchange_id
stringOptionalThe associated exchange's ID.
exchange_id
stringOptionaldescription
stringOptionalThe description of the action.
description
stringOptionalinternal_note
stringOptionalThe internal note of the action.
internal_note
stringOptionalreference
stringOptionalThe name of the data model the action
references. For example, return
.
reference
stringOptionalreturn
.reference_id
stringOptionalThe ID of the record of the data model
specified in reference.
For example, if reference
is return
, the
value is return_123
.
reference_id
stringOptionalreference
is return
, the
value is return_123
.created_by
null | stringOptionalThe user or customer that created this action.
created_by
null | stringOptionalmetadata
null | Record<string, unknown>OptionalHolds custom data in key-value pairs.
metadata
null | Record<string, unknown>Optionalcanceled_by
stringOptionalThe ID of the user canceling the return.
canceled_by
stringOptionalWas this page helpful?