|
1
|
{"slug":"/references/customer/events","title":"Customer Module Events Reference","frontmatter":{"slug":"/references/customer/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 Customer Module. If you use the module outside the Medusa application, these events aren't emitted."},{"kind":"eventsListing","categories":[{"title":"Customer","events":[{"name":"customer.created","id":"customercreated","description":"Emitted when a customer is created.","payload":"```ts\n{\n id, // The ID of the customer\n}\n```","workflows":[{"name":"createCustomersWorkflow","href":"/references/medusa-workflows/createCustomersWorkflow"},{"name":"createCustomerAccountWorkflow","href":"/references/medusa-workflows/createCustomerAccountWorkflow"}]},{"name":"customer.updated","id":"customerupdated","description":"Emitted when a customer is updated.","payload":"```ts\n{\n id, // The ID of the customer\n}\n```","workflows":[{"name":"updateCustomersWorkflow","href":"/references/medusa-workflows/updateCustomersWorkflow"}]},{"name":"customer.deleted","id":"customerdeleted","description":"Emitted when a customer is deleted.","payload":"```ts\n{\n id, // The ID of the customer\n}\n```","workflows":[{"name":"deleteCustomersWorkflow","href":"/references/medusa-workflows/deleteCustomersWorkflow"},{"name":"removeCustomerAccountWorkflow","href":"/references/medusa-workflows/removeCustomerAccountWorkflow"}]}]}]}]} |