Product Module Events Reference

This reference shows all the events emitted by the Medusa application related to the Product Module. If you use the module outside the Medusa application, these events aren't emitted.

Product Events#

Event NameDescriptionPayload

product.created

Emitted when products are created.

[{
  id, // The ID of the product
}]

product.updated

Emitted when products are updated.

[{
  id, // The ID of the product
}]

product.deleted

Emitted when products are deleted.

[{
  id, // The ID of the product
}]

Product Category Events#

Event NameDescriptionPayload

product-category.created

Emitted when product categories are created.

[{
  id, // The ID of the category
}]

product-category.updated

Emitted when product categories are updated.

[{
  id, // The ID of the category
}]

product-category.deleted

Emitted when product categories are deleted.

[{
  id, // The ID of the category
}]

Product Collection Events#

Event NameDescriptionPayload

product-collection.created

Emitted when product collections are created.

[{
  id, // The ID of the collection
}]

product-collection.updated

Emitted when product collections are updated.

[{
  id, // The ID of the collection
}]

product-collection.deleted

Emitted when product collections are deleted.

[{
  id, // The ID of the collection
}]

Product Option Events#

Event NameDescriptionPayload

product-option.created

Emitted when product options are created.

[{
  id, // The ID of the option
}]

product-option.updated

Emitted when product options are updated.

[{
  id, // The ID of the option
}]

product-option.deleted

Emitted when product options are deleted.

[{
  id, // The ID of the option
}]

Product Tag Events#

Event NameDescriptionPayload

product-tag.created

Emitted when product tags are created.

[{
  id, // The ID of the tag
}]

product-tag.updated

Emitted when product tags are updated.

[{
  id, // The ID of the tag
}]

product-tag.deleted

Emitted when product tags are deleted.

[{
  id, // The ID of the tag
}]

Product Type Events#

Event NameDescriptionPayload

product-type.created

Emitted when product types are created.

[{
  id, // The ID of the type
}]

product-type.updated

Emitted when product types are updated.

[{
  id, // The ID of the type
}]

product-type.deleted

Emitted when product types are deleted.

[{
  id, // The ID of the type
}]

Product Variant Events#

Event NameDescriptionPayload

product-variant.created

Emitted when product variants are created.

[{
  id, // The ID of the variant
}]

product-variant.updated

Emitted when product variants are updated.

[{
  id, // The ID of the variant
}]

product-variant.deleted

Emitted when product variants are deleted.

[{
  id, // The ID of the variant
}]
Was this page helpful?
Edited Dec 23·Edit this page
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break