Create the licenses

Create the licenses

post
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
Body

Contains the data for the license key create form.

packageIdstring · min: 1Required

The package Id of the license.

subscriptionTypeIdstring · min: 1Required

The SubscriptionType Id of the license.

typestring · enumRequiredPossible values:
keystring | nullableOptional

The license key custom. If the license key has value, we create with the license otherwise auto generate license code.

startDatestring · date-timeRequired

The start date of the license.

endDatestring · date-timeRequired

The end date of the license.

descriptionstring | nullableOptional

The description of the license.

tagsstring | nullableOptional

The tags of the license.

testModebooleanRequired

The test mode of the license. By default, it is set to false.

quantityinteger · int32Required

The quantity of the license to create. By default, it is 1.

isOneQuantitybooleanRead-onlyOptional

Is the license key for one quantity.

userCodestring · min: 1Required

The user code of the license. If the userCode is empty, we get the current user logged in.

Responses
201
The request was successful.
application/json
post
POST /api/v1/licenses HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 239

{
  "packageId": "text",
  "subscriptionTypeId": "text",
  "type": "1 - Normal",
  "key": "text",
  "startDate": "2025-06-24T12:13:54.068Z",
  "endDate": "2025-06-24T12:13:54.068Z",
  "description": "text",
  "tags": "text",
  "testMode": true,
  "quantity": 1,
  "userCode": "text"
}
{
  "success": true,
  "statusCode": 200,
  "message": "The request was successful.",
  "data": {
    "countSuccess": 1
  },
  "errors": []
}

Last updated

Was this helpful?