1 {"slug":"/references/cart/events","title":"Cart Module Events Reference","frontmatter":{"slug":"/references/cart/events","sidebar_label":"Events Reference","generate_toc":true},"toc":[],"blocks":[{"kind":"markdown","html":"This reference shows all the events emitted by the Medusa application related to the Cart Module. If you use the module outside the Medusa application, these events aren't emitted."},{"kind":"eventsListing","categories":[{"title":"Cart","events":[{"name":"cart.created","id":"cartcreated","description":"Emitted when a cart is created.","payload":"```ts\n{\n id, // The ID of the cart\n}\n```","workflows":[{"name":"createCartWorkflow","href":"/references/medusa-workflows/createCartWorkflow"}]},{"name":"cart.updated","id":"cartupdated","description":"Emitted when a cart's details are updated.","payload":"```ts\n{\n id, // The ID of the cart\n}\n```","workflows":[{"name":"deleteLineItemsWorkflow","href":"/references/medusa-workflows/deleteLineItemsWorkflow"},{"name":"updateLineItemInCartWorkflow","href":"/references/medusa-workflows/updateLineItemInCartWorkflow"},{"name":"updateCartWorkflow","href":"/references/medusa-workflows/updateCartWorkflow"},{"name":"addToCartWorkflow","href":"/references/medusa-workflows/addToCartWorkflow"},{"name":"addShippingMethodToCartWorkflow","href":"/references/medusa-workflows/addShippingMethodToCartWorkflow"}]},{"name":"cart.region_updated","id":"cartregion_updated","description":"Emitted when the cart's region is updated. This\nevent is emitted alongside the `cart.updated` event.","payload":"```ts\n{\n id, // The ID of the cart\n}\n```","workflows":[{"name":"updateCartWorkflow","href":"/references/medusa-workflows/updateCartWorkflow"}]},{"name":"cart.customer_transferred","id":"cartcustomer_transferred","description":"Emitted when the customer in the cart is transferred.","payload":"```ts\n{\n id, // The ID of the cart\n customer_id, // The ID of the customer\n}\n```","workflows":[{"name":"transferCartCustomerWorkflow","href":"/references/medusa-workflows/transferCartCustomerWorkflow"}],"since":"2.8.0"}]}]}]}