mage-os/mageos-common-async-events

Send REST requests to external endpoints asynchronously. This module implements the most common events like order creation and customer change.

0.2.0 2023-11-22 09:24 UTC

README

Send REST requests to external endpoints asynchronously. This module implements the most common events like order creation and customer change.

This module uses the Mage-OS Asynchronous Events module as a basis.

Installation

composer require mage-os/mageos-common-async-events

If you run into an error like "Could not find a version of package mage-os/mageos-common-async-events matching your minimum-stability (stable).", run this command instead:

composer require mage-os/mageos-common-async-events @dev

Enable and install the module:

bin/magento setup:upgrade

Usage

You can now use the following events without having to implement them yourself.

Event identifier Description Remarks
customer.created Whenever a customer is created
customer.updated Whenever a customer is saved, except it's new
customer.address.created Whenever a customer address is created
customer.address.updated Whenever a customer address is saved, except it's new
sales.order.created When a new order is created
sales.order.updated When the state of an existing order is changed
sales.order.paid When an order is fully paid
sales.order.shipped When an order is fully shipped
sales.order.holded When an order is set "on hold"
sales.order.unholded When an order is released from "on hold"
sales.order.cancelled When an order is cancelled
sales.shipment.created When a new shipment is created
sales.invoice.created When a new invoice is created
sales.invoice.paid When an invoice is paid
sales.creditmemo.created When a new creditmemo is created

You can use these events by