Workflows
updateProductStatusWorkflow
This documentation provides a reference to theupdateProductStatusWorkflow. It belongs to the @mercurjs/b2c-core package.
This workflow updates a product’s status. It is commonly used in approval flows to change a product from draft to published status, or to reject products that don’t meet marketplace requirements.
Source code
Examples
- Requests Module Step
packages/modules/requests/src/workflows/requests/steps/update-related-product-status.ts
Steps
- updateProductStatusStep: Updates the product status.
Input
The product status update details.
Output
The updated product.
Steps
updateProductStatusStep
Updates a product’s status using the Product Module service. Source codeInput
The product status update details.
Output
The updated product.