- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
receiveAndCompleteReturnOrderWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the receiveAndCompleteReturnOrderWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow marks a return as received and completes it.
You can use this workflow within your customizations or your own custom workflows, allowing you to receive and complete a return.
Source CodeExamples#
Steps#
Input#
ReceiveCompleteOrderReturnWorkflowInput
ReceiveCompleteOrderReturnWorkflowInput
ReceiveCompleteOrderReturnWorkflowInput
ReceiveCompleteOrderReturnWorkflowInputreturn_id
stringThe ID of the return to receive and complete.
return_id
stringitems
ReceiveReturnItem[]The received items.
items
ReceiveReturnItem[]created_by
stringOptionalThe ID of the user that's receiving and completing the return.
created_by
stringOptionaldescription
stringOptionalDescription of the return receival.
description
stringOptionalinternal_note
stringOptionalA note viewed by admins only related to the return receival.
internal_note
stringOptionalmetadata
null | Record<string, any>OptionalCustom key-value pairs of data to store in the return receival.
metadata
null | Record<string, any>OptionalOutput#
Was this page helpful?