---
title: "Pages the devices a license counts, latest activated first, with those freed or gone inactive, never their instance ids."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.sherpo.io/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Sherpo merchant API › customer

`GET /v1/stores/{store}/products/{product}/licenses/{license}/activations`

## Authentication

- `bearer`, http, header `Authorization`, scopes: `customer:read`

## Path parameters

- `store` (`listLicenseActivations.path.store`; string, required) — The store's id.
- `product` (`listLicenseActivations.path.product`; string, required) — An id, or `slug:<slug>`.
  - minLength 1
- `license` (`listLicenseActivations.path.license`; string, required)
  - minLength 1

## Query parameters

- `filter` (`listLicenseActivations.query.filter`; object, optional) — `filter[<field>]=<value>` is an equality, `filter[<field>][<op>]=<value>` names the operator; `in` repeats the parameter.
- `sort` (`listLicenseActivations.query.sort`; string, optional)
  - one of `"activated"`, `"last_seen"`
- `direction` (`listLicenseActivations.query.direction`; string, optional)
  - one of `"asc"`, `"desc"`
- `limit` (`listLicenseActivations.query.limit`; integer, optional)
  - min 1; max 100
- `cursor` (`listLicenseActivations.query.cursor`; string, optional)
  - maxLength 8192
- `count` (`listLicenseActivations.query.count`; boolean, optional)

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/licenses/<license>/activations' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/licenses/<license>/activations';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/licenses/<license>/activations"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Pages the devices a license counts, latest activated first, with those freed or gone inactive, never their instance ids.

#### Example

```json
{
  "items": [
    {
      "id": "string",
      "license_id": "string",
      "name": "string",
      "status": "string",
      "created_at": "string",
      "activated_at": "string",
      "last_seen_at": "string",
      "deactivated_at": "string",
      "deactivated_by": "string"
    }
  ],
  "cursor": "string",
  "total": 0,
  "facets": {
    "property1": {
      "property1": 0,
      "property2": 0
    },
    "property2": {
      "property1": 0,
      "property2": 0
    }
  }
}
```

- `items` (`listLicenseActivations.response.200.items`; array<object>, required)
  - `id` (`listLicenseActivations.response.200.items.id`; string, required)
  - `license_id` (`listLicenseActivations.response.200.items.license_id`; string, required)
  - `name` (`listLicenseActivations.response.200.items.name`; any of, required)
    - any of: `string`, `null`
  - `status` (`listLicenseActivations.response.200.items.status`; string, required) — `active` counts toward the limit; `inactive` went unseen past the product's inactive days; `deactivated` was freed.
  - `created_at` (`listLicenseActivations.response.200.items.created_at`; string, required)
  - `activated_at` (`listLicenseActivations.response.200.items.activated_at`; string, required)
  - `last_seen_at` (`listLicenseActivations.response.200.items.last_seen_at`; string, required)
  - `deactivated_at` (`listLicenseActivations.response.200.items.deactivated_at`; any of, required)
    - any of: `string`, `null`
  - `deactivated_by` (`listLicenseActivations.response.200.items.deactivated_by`; any of, required) — Who freed it: `customer`, `merchant` or `software`; null while not freed.
    - any of: `string`, `null`
- `cursor` (`listLicenseActivations.response.200.cursor`; any of, required)
  - any of: `string`, `null`
- `total` (`listLicenseActivations.response.200.total`; number, optional)
- `facets` (`listLicenseActivations.response.200.facets`; map<map<number>>, optional)

### default

A problem; see https://api.sherpo.io/merchant/docs/errors.

#### Example

```json
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "context": {},
  "reached_core": true,
  "core_answer": "string"
}
```

- `type` (`listLicenseActivations.response.default.type`; string, required)
  - format `uri`
- `title` (`listLicenseActivations.response.default.title`; string, required)
- `status` (`listLicenseActivations.response.default.status`; integer, required)
- `detail` (`listLicenseActivations.response.default.detail`; string, required)
- `code` (`listLicenseActivations.response.default.code`; string, optional)
- `context` (`listLicenseActivations.response.default.context`; object, optional)
- `reached_core` (`listLicenseActivations.response.default.reached_core`; boolean, optional)
- `core_answer` (`listLicenseActivations.response.default.core_answer`; string, optional)


Source: https://docs.sherpo.io/merchant-api/reference/list-license-activations/index.md
