For the complete documentation index, see llms.txt. This page is also available as Markdown.

Customer, Order and License User Group Events

Events emitted when customers, orders, order managers, and license user groups change.

These events report changes to customers, orders, order managers, and license user groups.

Use the event data objects reference for field definitions.

Customers

customer.created

Sent when:

  • a customer is created in the vendor platform or with the Management API,

  • a new order or trial brings in a customer that doesn't exist yet. Customers are matched by email, or by company name when there is no email.

Not emitted when: Customers are imported from a CSV file.

Event data: customer

customer.updated

Sent when:

  • a customer is edited in the vendor platform or with the Management API,

  • a new order or trial brings in an existing customer with different details. The customer object then holds the new values.

Not emitted when: Licenses are added to an existing order, or a new order brings in a customer with unchanged details.

Event data: customer, after the change

customer.deleted

Sent when: a customer is deleted in the vendor platform or with the Management API.

Not emitted when: Two customers are merged. The customer merged away is removed without an event.

Event data: customer, as it was before deletion

The customer's orders remain, but lose their customer. No order.updated event is emitted for those orders.

Orders

order.created

Sent when: a new order is created in the vendor platform, with the Management API or through an integration, or a trial license is issued (each trial gets its own order). Each license in it also sends license.created.

Not emitted when: Licenses are added to an existing order. Only license.created is emitted.

Event data: order with id and store_id.

In this event, order.id is a string. In every other event, it is a number.

The customer and licenses are not included. Use customer.created or customer.updated and license.created, which are emitted for the same order.

order.updated

Sent when: an order is edited in the vendor platform or with the Management API.

Not emitted when: Order managers are added or removed, or the order's customer is deleted or merged.

Event data: order

order.deleted

Sent when: an order is deleted in the vendor platform or with the Management API.

Event data: order, as it was before deletion

Licenses deleted with an order do not emit license.deleted.

Order managers

The user portal service emits these events, including when the Vendor Platform or Management API makes the change.

order.license_user.manager_assigned

Sent when: a license user is made a manager of the order, one at a time or several at once (one event per user), or is assigned to one of the order's licenses as a manager. It is also sent when the user was already a manager.

Event data: license_user, order

order.license_user.manager_removed

Sent when: a license user is removed as a manager of the order.

Event data: license_user, order

License user groups

license_user_group.created, license_user_group.updated, and license_user_group.deleted

Sent when: a license user group is created, edited or deleted in the vendor platform or with the Management API.

Not emitted when: Managers are added to or removed from the group, or the group is assigned to a license.

Event data: license_user_group after the change, or before deletion for deleted.

license_user_group.license_user.manager_assigned

Sent when: a license user is made a manager of the group, in the vendor platform, with the Management API or in the user portal. It is also sent when the user was already a manager. Sent by the user portal service.

Not emitted when: A manager is removed from a group. There is no event for that action.

Event data: license_user, license_user_group

Last updated

Was this helpful?