ProductChangeModuleService, reads and writes ProductChange and ProductChangeAction records directly. It’s a plain MedusaService with generated methods only, and no custom methods. Use it in subscribers, scheduled jobs, and workflow steps.
Resolve the service
Resolve the service from the Medusa container withMercurModules.PRODUCT_EDIT:
import type { ProductChangeModuleService } from "@mercurjs/core/modules/product-edit" and pass it as the resolve generic.
ProductChange methods
Medusa generates these methods for theProductChange model:
ProductChangeAction methods
The same set exists forProductChangeAction:
When to use a workflow instead
The service writes rows and nothing else. Settingstatus to confirmed through updateProductChanges doesn’t apply the actions, stamp confirmed_at, emit product-change.confirmed, or run the hooks.