Check out the official Adobe documentation to subscribe to events in Adobe
https://developer.adobe.com/commerce/extensibility/events/configure-commerce/arrow-up-right
After installing and enabling the required modules, you must subscribe to the events that trigger WhatsApp notifications. Run the following commands in your Adobe Commerce root directory:
Order Placement Event
Subscribe to the order placement event (triggers when an order is placed via API):
Copy php bin/magento events:subscribe plugin.magento.sales.api.order_management.place \
--fields=entity_id \
--fields=customer_firstname \
--fields=billing_address.telephone \
--fields=increment_id \
--forces After subscribing, generate the AdobeCommerceEvents module:
Copy php bin/magento events:generate:module
php bin/magento setup:di:compile Invoice Created Event
Subscribe to the invoice creation event (triggers when an invoice is created):
Copy php bin/magento events:subscribe observer.sales_order_invoice_save_after --fields=order_id Shipment Created Event
Subscribe to the shipment creation event (triggers when a shipment is created):
Credit Memo Created Event
Subscribe to the credit memo creation event (triggers when a credit memo is created):
---------------------------------------------------------
Unsubscribe from Adobe Commerce Events
---------------------------------------------------------
To unsubscribe from events (if needed):
Unsubscribe from order placement event
Unsubscribe from invoice event
Unsubscribe from shipment event
Unsubscribe from credit memo event
Last updated 2 months ago