Skip to main content
POST
/
license
/
activate
Activate a software license
curl --request POST \
  --url https://demo.onlinebillingform.com/api/v2/license/activate \
  --header 'Content-Type: application/json' \
  --data '
{
  "license_key": "<string>",
  "instance": "<string>",
  "domain": "<string>",
  "installation_path": "<string>",
  "device_name": "<string>",
  "operating_system": "<string>",
  "application_version": "<string>"
}
'
import requests

url = "https://demo.onlinebillingform.com/api/v2/license/activate"

payload = {
"license_key": "<string>",
"instance": "<string>",
"domain": "<string>",
"installation_path": "<string>",
"device_name": "<string>",
"operating_system": "<string>",
"application_version": "<string>"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
license_key: '<string>',
instance: '<string>',
domain: '<string>',
installation_path: '<string>',
device_name: '<string>',
operating_system: '<string>',
application_version: '<string>'
})
};

fetch('https://demo.onlinebillingform.com/api/v2/license/activate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://demo.onlinebillingform.com/api/v2/license/activate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'license_key' => '<string>',
'instance' => '<string>',
'domain' => '<string>',
'installation_path' => '<string>',
'device_name' => '<string>',
'operating_system' => '<string>',
'application_version' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://demo.onlinebillingform.com/api/v2/license/activate"

payload := strings.NewReader("{\n \"license_key\": \"<string>\",\n \"instance\": \"<string>\",\n \"domain\": \"<string>\",\n \"installation_path\": \"<string>\",\n \"device_name\": \"<string>\",\n \"operating_system\": \"<string>\",\n \"application_version\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://demo.onlinebillingform.com/api/v2/license/activate")
.header("Content-Type", "application/json")
.body("{\n \"license_key\": \"<string>\",\n \"instance\": \"<string>\",\n \"domain\": \"<string>\",\n \"installation_path\": \"<string>\",\n \"device_name\": \"<string>\",\n \"operating_system\": \"<string>\",\n \"application_version\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://demo.onlinebillingform.com/api/v2/license/activate")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"license_key\": \"<string>\",\n \"instance\": \"<string>\",\n \"domain\": \"<string>\",\n \"installation_path\": \"<string>\",\n \"device_name\": \"<string>\",\n \"operating_system\": \"<string>\",\n \"application_version\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "success": true,
  "activated": true,
  "instance": "<string>",
  "domain": "<string>",
  "activations_used": 1,
  "activation_limit": 2
}
{
"success": true,
"error": "<string>",
"code": "<string>"
}
{
"success": true,
"error": "<string>",
"code": "<string>"
}
{
"success": true,
"error": "<string>",
"code": "<string>"
}

Body

application/json
license_key
string
required
instance
string
required

Stable device UUID or server installation identifier.

Maximum string length: 255
instance_type
enum<string>
required
Available options:
device,
server
domain
string | null

Required for server activations.

Maximum string length: 255
installation_path
string | null

Required for server activations.

Maximum string length: 2048
device_name
string | null
Maximum string length: 255
operating_system
string | null
Maximum string length: 255
application_version
string | null
Maximum string length: 100

Response

License activated or existing activation refreshed

success
boolean
required
activated
boolean
required
instance
string
required
instance_type
enum<string> | null
required
Available options:
device,
server,
null
domain
string | null
required
activations_used
integer
required
Required range: x >= 0
activation_limit
integer | null
required
Required range: x >= 1