> For the complete documentation index, see [llms.txt](https://docs.licensespring.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.licensespring.com/events-api/event-list/customer-order-and-license-user-group-events.md).

# 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](https://docs.licensespring.com/events-api/event-list/event-data-objects.md) 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

{% hint style="info" %}
The customer's orders remain, but lose their customer. No `order.updated` event is emitted for those orders.
{% endhint %}

### 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`.

{% hint style="info" %}
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.
{% endhint %}

#### `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

{% hint style="info" %}
Licenses deleted with an order do not emit `license.deleted`.
{% endhint %}

### 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`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.licensespring.com/events-api/event-list/customer-order-and-license-user-group-events.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
