|
1
|
{"slug":"/references/sales-channel/events","title":"Sales Channel Module Events Reference","frontmatter":{"slug":"/references/sales-channel/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 Sales Channel Module. If you use the module outside the Medusa application, these events aren't emitted."},{"kind":"eventsListing","categories":[{"title":"Sales Channel","events":[{"name":"sales-channel.created","id":"sales-channelcreated","description":"Emitted when sales channels are created.","payload":"```ts\n{\n id, // The ID of the sales channel\n}\n```","workflows":[{"name":"createSalesChannelsWorkflow","href":"/references/medusa-workflows/createSalesChannelsWorkflow"}]},{"name":"sales-channel.updated","id":"sales-channelupdated","description":"Emitted when sales channels are updated.","payload":"```ts\n{\n id, // The ID of the sales channel\n}\n```","workflows":[{"name":"updateSalesChannelsWorkflow","href":"/references/medusa-workflows/updateSalesChannelsWorkflow"}]},{"name":"sales-channel.deleted","id":"sales-channeldeleted","description":"Emitted when sales channels are deleted.","payload":"```ts\n{\n id, // The ID of the sales channel\n}\n```","workflows":[{"name":"deleteSalesChannelsWorkflow","href":"/references/medusa-workflows/deleteSalesChannelsWorkflow"}]}]}]}]} |