Loading...
Was this page helpful?
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.
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})
UpdateReceiveItemReturnRequestValidationStepInput
UpdateReceiveItemReturnRequestValidationStepInputorder
OrderDTOorderReturn
ReturnDTOorderChange
OrderChangeDTO