---
title: "Deactivate license"
method: POST
path: "/licenses/{license_id}/deactivate"
tags: ["License"]
---

# Deactivate license

`POST /licenses/{license_id}/deactivate`

This endpoint is used to deactivate an existing license.

If an end date is provided, the license will be deactivated at the **start** of the specified date in the customer's timezone.
Otherwise, the deactivation time will default to the **end** of the current day in the customer's timezone.

## Path parameters

- `license_id` string, required

## Request body

- DeactivateLicense
  - `end_date` string, date, nullable — The date to deactivate the license. If not provided, defaults to end of day today in the customer's timezone.

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