---
title: "Reads one of the customer's licenses with its key, status, end and activation limit."
---

> 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 customer API › license

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

## Authentication

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

## Path parameters

- `store` (`getLicense.path.store`; string, required) — A hostname of the store.
- `product` (`getLicense.path.product`; string, required) — An id, or `slug:<slug>`.
  - minLength 1
- `license` (`getLicense.path.license`; string, required)
  - minLength 1

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://api.sherpo.io/customer/v1/stores/<store>/products/<product>/licenses/<license>';
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/customer/v1/stores/<store>/products/<product>/licenses/<license>"

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

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

print(response.text)
```

## Responses

### 200

Reads one of the customer's licenses with its key, status, end and activation limit.

#### Example

```json
{
  "id": "string",
  "product_id": "string",
  "key": "string",
  "status": "string",
  "expires_at": "string",
  "activation_limit": 0,
  "activations": {
    "count": 0,
    "limit": 0
  },
  "replaced_by": "string",
  "created_at": "string"
}
```

- `id` (`getLicense.response.200.id`; string, required)
- `product_id` (`getLicense.response.200.product_id`; string, required)
- `key` (`getLicense.response.200.key`; any of, required) — The key the customer enters in the software; null to staff acting as the customer.
  - any of: `string`, `null`
- `status` (`getLicense.response.200.status`; string, required)
- `expires_at` (`getLicense.response.200.expires_at`; any of, required) — When access ends, or ended; null for lifetime access.
  - any of: `string`, `null`
- `activation_limit` (`getLicense.response.200.activation_limit`; any of, required) — How many devices it activates at once: its own limit, else its tier's, else its product's; null for no limit.
  - any of: `number`, `null`
- `activations` (`getLicense.response.200.activations`; object, required) — The devices it counts now and the most it may hold.
  - `count` (`getLicense.response.200.activations.count`; number, required)
  - `limit` (`getLicense.response.200.activations.limit`; any of, required)
    - any of: `number`, `null`
- `replaced_by` (`getLicense.response.200.replaced_by`; any of, required) — The license whose key took this one's place; null until it is replaced.
  - any of: `string`, `null`
- `created_at` (`getLicense.response.200.created_at`; string, required)

### default

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

#### Example

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

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


Source: https://docs.sherpo.io/customer-api/reference/get-license/index.md
