Create the licenses
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.
YOUR_AUTH_KEY
Contains the data for the license key create form.
The id of the package.
The id of the subscription type
The license code custom. If the license code has value, we create with the license otherwise auto generate license code. Cannot be used when creating multiple licenses.
The amount value of a license to be created.
The currency code in the ISO 4217 format, which is a three-letter uppercase code that identifies a specific currency. This value should strictly follow the ISO 4217 standard.
The start date of the license.
The end date of the license.
The description of the license.
The tags of the license.
The test mode of the license. By default, it is set to false.
The quantity of the license to create. By default, it is 1. This value is must be between 1 and 100.
The user code of the license. If the userCode is empty, we get the current user logged in.
The request was successful.
The user is not authorized to access the requested resource. The request is missing the required Auth-Key header.
The user's access was denied.
The user has exceeded the rate limit.
POST /api/v1/licenses HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 253
{
"packageId": "text",
"subscriptionTypeId": "text",
"code": "text",
"amount": 1,
"currencyCode": "text",
"startDate": "2025-08-11T13:01:54.271Z",
"endDate": "2025-08-11T13:01:54.271Z",
"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?