Deactivate a license

Deactivate a license.

put

This method sets the license's status to Inactive only if its current status is Active. No changes are made if the license is already in any other state (e.g., NotStarted, Used, Expired).

You might use this when you want to temporarily suspend a license without permanently using or expiring it.

Path parameters
idstringRequired

The id of the license.

Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.

Example: YOUR_AUTH_KEY
Responses
200

The request was successful.

application/json
put
PUT /api/v1/licenses/{id}/deactivate HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Accept: */*
{
  "success": true,
  "statusCode": 200,
  "message": "The request was successful.",
  "data": {
    "id": "sApKpllz4sAplsmzha",
    "packageId": "sApKpllz4sAplsmzha",
    "subscriptionTypeId": "sApKpllz4sAplsmzha",
    "code": "JFWCODELICENSE",
    "type": "Normal",
    "amount": 1,
    "currencyCode": "USD",
    "description": "This is a trial license",
    "startDate": "2025-08-19T10:03:56.08846+07:00",
    "endDate": "2025-09-18T10:03:56.088461+07:00",
    "tags": "#tag1, #tag2",
    "status": "Active",
    "usedByUserId": "aPlasizhyPls",
    "usedDate": "2025-09-19T10:03:56.088461+07:00",
    "testMode": false,
    "modifiedDate": "2025-08-19T10:03:56.088461+07:00"
  },
  "errors": []
}

Last updated

Was this helpful?