Events Reference
This documentation page includes the list of all events emitted by Medusa's workflows.
Cart Events#
Summary#
Event | Description |
---|---|
Emitted when a cart is created. | |
Emitted when a cart's details are updated. | |
Emitted when the customer in the cart is updated. | |
Emitted when the cart's region is updated. This event is emitted alongside the CartWorkflowEvents.UPDATED event. |
cart.created
#
Emitted when a cart is created.
Payload
Workflows Emitting this Event
cart.updated
#
Emitted when a cart's details are updated.
Payload
Workflows Emitting this Event
cart.customer_updated
#
Emitted when the customer in the cart is updated.
Payload
Workflows Emitting this Event
cart.region_updated
#
Emitted when the cart's region is updated. This event is emitted alongside the CartWorkflowEvents.UPDATED event.
Payload
Workflows Emitting this Event
Customer Events#
Summary#
Event | Description |
---|---|
Emitted when a customer is created. | |
Emitted when a customer is updated. | |
Emitted when a customer is deleted. |
customer.created
#
Emitted when a customer is created.
Payload
Workflows Emitting this Event
customer.updated
#
Emitted when a customer is updated.
Payload
Workflows Emitting this Event
customer.deleted
#
Emitted when a customer is deleted.
Payload
Workflows Emitting this Event
Order Events#
Summary#
Event | Description |
---|---|
Emitted when the details of an order or draft order is updated. This doesn't include updates made by an edit. | |
Emitted when an order is placed, or when a draft order is converted to an order. | |
Emitted when an order is canceld. | |
Emitted when orders are completed. | |
Emitted when an order is archived. | |
Emitted when a fulfillment is created for an order. | |
Emitted when an order's fulfillment is canceled. | |
Emitted when a return request is confirmed. | |
Emitted when a return is marked as received. | |
Emitted when a claim is created for an order. | |
Emitted when an exchange is created for an order. | |
Emitted when an order is requested to be transferred to another customer. |
order.updated
#
Emitted when the details of an order or draft order is updated. This doesn't include updates made by an edit.
Payload
Workflows Emitting this Event
order.placed
#
Emitted when an order is placed, or when a draft order is converted to an order.
Payload
Workflows Emitting this Event
order.canceled
#
Emitted when an order is canceld.
Payload
Workflows Emitting this Event
order.completed
#
Emitted when orders are completed.
Payload
Workflows Emitting this Event
order.archived
#
Emitted when an order is archived.
Payload
Workflows Emitting this Event
order.fulfillment_created
#
Emitted when a fulfillment is created for an order.
Payload
Workflows Emitting this Event
order.fulfillment_canceled
#
Emitted when an order's fulfillment is canceled.
Payload
Workflows Emitting this Event
order.return_requested
#
Emitted when a return request is confirmed.
Payload
Workflows Emitting this Event
order.return_received
#
Emitted when a return is marked as received.
Payload
Workflows Emitting this Event
order.claim_created
#
Emitted when a claim is created for an order.
Payload
Workflows Emitting this Event
order.exchange_created
#
Emitted when an exchange is created for an order.
Payload
Workflows Emitting this Event
order.transfer_requested
#
Emitted when an order is requested to be transferred to another customer.
Payload
Workflows Emitting this Event
Order Edit Events#
Summary#
Event | Description |
---|---|
Emitted when an order edit is requested. | |
Emitted when an order edit request is confirmed. | |
Emitted when an order edit request is canceled. |
order-edit.requested
#
Emitted when an order edit is requested.
Payload
Workflows Emitting this Event
order-edit.confirmed
#
Emitted when an order edit request is confirmed.
Payload
Workflows Emitting this Event
order-edit.canceled
#
Emitted when an order edit request is canceled.
Payload
Workflows Emitting this Event
User Events#
Summary#
Event | Description |
---|---|
Emitted when users are created. | |
Emitted when users are updated. | |
Emitted when users are deleted. |
user.created
#
Emitted when users are created.
Payload
Workflows Emitting this Event
user.updated
#
Emitted when users are updated.
Payload
Workflows Emitting this Event
user.deleted
#
Emitted when users are deleted.
Payload
Workflows Emitting this Event
Auth Events#
Summary#
Event | Description |
---|---|
Emitted when a reset password token is generated. You can listen to this event to send a reset password email to the user or customer, for example. |
auth.password_reset
#
Emitted when a reset password token is generated. You can listen to this event to send a reset password email to the user or customer, for example.
Payload
Workflows Emitting this Event
Sales Channel Events#
Summary#
Event | Description |
---|---|
Emitted when sales channels are created. | |
Emitted when sales channels are updated. | |
Emitted when sales channels are deleted. |
sales-channel.created
#
Emitted when sales channels are created.
Payload
Workflows Emitting this Event
sales-channel.updated
#
Emitted when sales channels are updated.
Payload
Workflows Emitting this Event
sales-channel.deleted
#
Emitted when sales channels are deleted.
Payload
Workflows Emitting this Event
Product Category Events#
Summary#
Event | Description |
---|---|
Emitted when product categories are created. | |
Emitted when product categories are updated. | |
Emitted when product categories are deleted. |
product-category.created
#
Emitted when product categories are created.
Payload
Workflows Emitting this Event
product-category.updated
#
Emitted when product categories are updated.
Payload
Workflows Emitting this Event
product-category.deleted
#
Emitted when product categories are deleted.
Payload
Workflows Emitting this Event
Product Collection Events#
Summary#
Event | Description |
---|---|
Emitted when product collections are created. | |
Emitted when product collections are updated. | |
Emitted when product collections are deleted. |
product-collection.created
#
Emitted when product collections are created.
Payload
Workflows Emitting this Event
product-collection.updated
#
Emitted when product collections are updated.
Payload
Workflows Emitting this Event
product-collection.deleted
#
Emitted when product collections are deleted.
Payload
Workflows Emitting this Event
Product Variant Events#
Summary#
Event | Description |
---|---|
Emitted when product variants are updated. | |
Emitted when product variants are created. | |
Emitted when product variants are deleted. |
product-variant.updated
#
Emitted when product variants are updated.
Payload
Workflows Emitting this Event
product-variant.created
#
Emitted when product variants are created.
Payload
Workflows Emitting this Event
- createProductVariantsWorkflow
- createProductsWorkflow
- batchProductVariantsWorkflow
- batchProductsWorkflow
- importProductsWorkflow
product-variant.deleted
#
Emitted when product variants are deleted.
Payload
Workflows Emitting this Event
Product Events#
Summary#
Event | Description |
---|---|
Emitted when products are updated. | |
Emitted when products are created. | |
Emitted when products are deleted. |
product.updated
#
Emitted when products are updated.
Payload
Workflows Emitting this Event
product.created
#
Emitted when products are created.
Payload
Workflows Emitting this Event
product.deleted
#
Emitted when products are deleted.
Payload
Workflows Emitting this Event
Product Type Events#
Summary#
Event | Description |
---|---|
Emitted when product types are updated. | |
Emitted when product types are created. | |
Emitted when product types are deleted. |
product-type.updated
#
Emitted when product types are updated.
Payload
Workflows Emitting this Event
product-type.created
#
Emitted when product types are created.
Payload
Workflows Emitting this Event
product-type.deleted
#
Emitted when product types are deleted.
Payload
Workflows Emitting this Event
Product Tag Events#
Summary#
Event | Description |
---|---|
Emitted when product tags are updated. | |
Emitted when product tags are created. | |
Emitted when product tags are deleted. |
product-tag.updated
#
Emitted when product tags are updated.
Payload
Workflows Emitting this Event
product-tag.created
#
Emitted when product tags are created.
Payload
Workflows Emitting this Event
product-tag.deleted
#
Emitted when product tags are deleted.
Payload
Workflows Emitting this Event
Product Option Events#
Summary#
Event | Description |
---|---|
Emitted when product options are updated. | |
Emitted when product options are created. | |
Emitted when product options are deleted. |
product-option.updated
#
Emitted when product options are updated.
Payload
Workflows Emitting this Event
product-option.created
#
Emitted when product options are created.
Payload
Workflows Emitting this Event
product-option.deleted
#
Emitted when product options are deleted.
Payload
Workflows Emitting this Event
Invite Events#
Summary#
Event | Description |
---|---|
Emitted when an invite is accepted. | |
Emitted when invites are created. You can listen to this event to send an email to the invited users, for example. | |
Emitted when invites are deleted. | |
Emitted when invites should be resent because their token was refreshed. You can listen to this event to send an email to the invited users, for example. |
invite.accepted
#
Emitted when an invite is accepted.
Payload
Workflows Emitting this Event
invite.created
#
Emitted when invites are created. You can listen to this event to send an email to the invited users, for example.
Payload
Workflows Emitting this Event
invite.deleted
#
Emitted when invites are deleted.
Payload
Workflows Emitting this Event
invite.resent
#
Emitted when invites should be resent because their token was refreshed. You can listen to this event to send an email to the invited users, for example.
Payload
Workflows Emitting this Event
Region Events#
Summary#
Event | Description |
---|---|
Emitted when regions are updated. | |
Emitted when regions are created. | |
Emitted when regions are deleted. |
region.updated
#
Emitted when regions are updated.
Payload
Workflows Emitting this Event
region.created
#
Emitted when regions are created.
Payload
Workflows Emitting this Event
region.deleted
#
Emitted when regions are deleted.
Payload
Workflows Emitting this Event
Fulfillment Events#
Summary#
Event | Description |
---|---|
Emitted when a shipment is created for an order. | |
Emitted when a fulfillment is marked as delivered. |
shipment.created
#
Emitted when a shipment is created for an order.
Payload
Workflows Emitting this Event
delivery.created
#
Emitted when a fulfillment is marked as delivered.