---
title: "Fetch license by external license id"
method: GET
path: "/licenses/external_license_id/{external_license_id}"
tags: ["License"]
---

# Fetch license by external license id

`GET /licenses/external_license_id/{external_license_id}`

This endpoint is used to fetch a license given an external license identifier.

## Path parameters

- `external_license_id` string, required

## Query parameters

- `subscription_id` string, required — The ID of the subscription to fetch the license for.
- `license_type_id` string, required — The ID of the license type to fetch the license for.

## Response `200`

OK

- LicenseApiResource
  - `id` string, required
  - `subscription_id` string, required
  - `license_type_id` string, required
  - `external_license_id` string, required
  - `status` 'active' | 'inactive', required
  - `start_date` string, date-time, required
  - `end_date` string, date-time, nullable, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `409` — Conflict
- `413` — Content Too Large
- `429` — Too Many Requests
- `500` — Internal Server Error

---

[API](https://skmtc.dev/withorb/apis/api-reference.md) · [All operations](https://skmtc.dev/withorb/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/withorb/api-reference/revisions/816dfe734e2e/schema)
