---
title: "Get licenses for a customer"
method: GET
path: "/v1/license/customer/{customerId}"
tags: ["License"]
---

# Get licenses for a customer

`GET /v1/license/customer/{customerId}`

Retrieve all licenses associated with a customer through their orders

## Path parameters

- `customerId` string, uuid, required

## Query parameters

- `includeDatalinks` boolean

## Response `200`

List of licenses for the customer

- object
  - `licenses` object[]
    - `id` string, uuid
    - `key` string
    - `gridKw` integer, nullable
    - `solarKw` integer, nullable
    - `batteryKw` integer, nullable
    - `evKw` integer, nullable
    - `creationDate` string, date-time
    - `activationDate` string, date-time, nullable
    - `duration` integer
    - `deactivationDate` string, date-time, nullable
    - `type` 'residential' | 'commercial'
    - `datalinks` string[]

## Other responses

- `401` — Authentication required or invalid token
- `403` — User does not have access to this customer
- `404` — Customer not found

---

[API](https://skmtc.dev/eniris/apis/eniris-metadata-telemetry-query-api.md) · [All operations](https://skmtc.dev/eniris/apis/eniris-metadata-telemetry-query-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eniris/eniris-metadata-telemetry-query-api/revisions/fe3723575e19/schema)
