- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateReceiveItemReturnRequestValidationStep - Medusa Core Workflows Reference
This documentation provides a reference to the updateReceiveItemReturnRequestValidationStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step validates that an item can be updated in a return receival request. If the order or return is canceled, the order change is not active, the return request is not found, or the action is not receiving an item return request, the step will throw an error.
Note: You can retrieve an order, return, and order change details using Query,
or useQueryGraphStep.
Example#
1const data = updateReceiveItemReturnRequestValidationStep({2 order: {3 id: "order_123",4 items: [5 {6 id: "orli_123",7 // other item details...8 }9 ]10 },11 orderChange: {12 id: "orch_123",13 // other order change details...14 },15 orderReturn: {16 id: "return_123",17 // other return details...18 },19 input: {20 return_id: "return_123",21 action_id: "orchac_123",22 data: {23 quantity: 1,24 }25 }26})
Input#
UpdateReceiveItemReturnRequestValidationStepInput
UpdateReceiveItemReturnRequestValidationStepInputThe data to validate that an item can be updated in a return receival request.
UpdateReceiveItemReturnRequestValidationStepInput
UpdateReceiveItemReturnRequestValidationStepInputorder
OrderDTOThe order's details.
order
OrderDTOorderReturn
ReturnDTOThe return's details.
orderReturn
ReturnDTOorderChange
OrderChangeDTOThe order change's details.
orderChange
OrderChangeDTOThe details of the item update.
Was this page helpful?