import { Table } from "docs-ui" export const metadata = { title: `Events Reference`, } # {metadata.title} This documentation page includes the list of all events emitted by Medusa's workflows. Events are still in development and may change. ## Auth Events Event Name Description Payload `auth.password_reset` Emitted when a password of a user, customer, or other actor types is reset. ```ts blockStyle="inline" { entityId, // The ID of the user token, // The reset token } ```
--- ## Customer Events Event Name Description Payload `customer.created` Emitted when customers are created. ```ts blockStyle="inline" [{ id, // The ID of the customer }] ``` `customer.updated` Emitted when customers are updated. ```ts blockStyle="inline" [{ id, // The ID of the customer }] ``` `customer.deleted` Emitted when customers are deleted. ```ts blockStyle="inline" [{ id, // The ID of the customer }] ```
--- ## Invite Events Event Name Description Payload `invite.accepted` Emitted when an invite is accepted. ```ts blockStyle="inline" { id, // The ID of the invite } ``` `invite.created` Emitted when invites are created. ```ts blockStyle="inline" [{ id, // The ID of the invite }] ``` `invite.deleted` Emitted when invites are deleted. ```ts blockStyle="inline" [{ id, // The ID of the invite }] ``` `invite.resent` Emitted when invites are resent. ```ts blockStyle="inline" [{ id, // The ID of the invite }] ```
--- ## Order Events Event Name Description Payload `order.placed` Emitted when the customer completes a cart and an order is placed. ```ts blockStyle="inline" { id, // The ID of the order } ```
--- ## Product Events Event Name Description Payload `product.created` Emitted when products are created. ```ts blockStyle="inline" [{ id, // The ID of the product }] ``` `product.updated` Emitted when products are updated. ```ts blockStyle="inline" [{ id, // The ID of the product }] ``` `product.deleted` Emitted when products are deleted. ```ts blockStyle="inline" [{ id, // The ID of the product }] ```
--- ## Product Category Events Event Name Description Payload `product-category.created` Emitted when product categories are created. ```ts blockStyle="inline" [{ id, // The ID of the category }] ``` `product-category.updated` Emitted when product categories are updated. ```ts blockStyle="inline" [{ id, // The ID of the category }] ``` `product-category.deleted` Emitted when product categories are deleted. ```ts blockStyle="inline" [{ id, // The ID of the category }] ```
--- ## Product Collection Events Event Name Description Payload `product-collection.created` Emitted when product collections are created. ```ts blockStyle="inline" [{ id, // The ID of the collection }] ``` `product-collection.updated` Emitted when product collections are updated. ```ts blockStyle="inline" [{ id, // The ID of the collection }] ``` `product-collection.deleted` Emitted when product collections are deleted. ```ts blockStyle="inline" [{ id, // The ID of the collection }] ```
--- ## Product Option Events Event Name Description Payload `product-option.created` Emitted when product options are created. ```ts blockStyle="inline" [{ id, // The ID of the option }] ``` `product-option.updated` Emitted when product options are updated. ```ts blockStyle="inline" [{ id, // The ID of the option }] ``` `product-option.deleted` Emitted when product options are deleted. ```ts blockStyle="inline" [{ id, // The ID of the option }] ```
--- ## Product Tag Events Event Name Description Payload `product-tag.created` Emitted when product tags are created. ```ts blockStyle="inline" [{ id, // The ID of the tag }] ``` `product-tag.updated` Emitted when product tags are updated. ```ts blockStyle="inline" [{ id, // The ID of the tag }] ``` `product-tag.deleted` Emitted when product tags are deleted. ```ts blockStyle="inline" [{ id, // The ID of the tag }] ```
--- ## Product Type Events Event Name Description Payload `product-type.created` Emitted when product types are created. ```ts blockStyle="inline" [{ id, // The ID of the type }] ``` `product-type.updated` Emitted when product types are updated. ```ts blockStyle="inline" [{ id, // The ID of the type }] ``` `product-type.deleted` Emitted when product types are deleted. ```ts blockStyle="inline" [{ id, // The ID of the type }] ```
--- ## Product Variant Events Event Name Description Payload `product-variant.created` Emitted when product variants are created. ```ts blockStyle="inline" [{ id, // The ID of the variant }] ``` `product-variant.updated` Emitted when product variants are updated. ```ts blockStyle="inline" [{ id, // The ID of the variant }] ``` `product-variant.deleted` Emitted when product variants are deleted. ```ts blockStyle="inline" [{ id, // The ID of the variant }] ```
--- ## Region Events Event Name Description Payload `region.created` Emitted when regions are created. ```ts blockStyle="inline" [{ id, // The ID of the region }] ``` `region.updated` Emitted when regions are updated. ```ts blockStyle="inline" [{ id, // The ID of the region }] ``` `region.deleted` Emitted when regions are deleted. ```ts blockStyle="inline" [{ id, // The ID of the region }] ```
--- ## Sales Channel Events Event Name Description Payload `sales-channel.created` Emitted when sales channels are created. ```ts blockStyle="inline" [{ id, // The ID of the sales channel }] ``` `sales-channel.updated` Emitted when sales channels are updated. ```ts blockStyle="inline" [{ id, // The ID of the sales channel }] ``` `sales-channel.deleted` Emitted when sales channels are deleted. ```ts blockStyle="inline" [{ id, // The ID of the sales channel }] ```
--- ## User Events Event Name Description Payload `user.created` Emitted when users are created. ```ts blockStyle="inline" [{ id, // The ID of the user }] ``` `user.updated` Emitted when users are updated. ```ts blockStyle="inline" [{ id, // The ID of the user }] ``` `user.deleted` Emitted when users are deleted. ```ts blockStyle="inline" [{ id, // The ID of the user }] ```