Last Modified October 1, 2026

WEB_Query() API

For an Application using the Custom Activation method, use the WEB_QUERY API to get the status of the License Code provided by the User, and to determine the license type of the License Code and if it needs to be Activated or Re-Activated.

Results from WEB_QUERY API:

errNo = 8 (ERR_ACTIVATION_EXPECTED)

This is the initial activation of the following license types:

  • a Single-User / Multi-Computer license with the "Roll-Over Re-Activation
errNo = 9 (ERR_REACTIVATION_EXPECTED)

This is the activation of an additional device or re-activation of a device for the following license types:

  • a Single-User / Multi-Computer license with the "Roll-Over Re-Activation
errNo = 19 (ERR_ACTIVATION_EXPECTED_MU)

This is the initial activation of the following license types:

  • a Single-User / Multi-Computer license without the "Roll-Over Re-Activation
  • Multi-User License
  • Floating License
errNo = 20 (ERR_REACTIVATION_EXPECTED_MU)

This is the activation of an additional device / seat or re-activation of a device / seat for the following license types:

  • a Single-User / Multi-Computer license without the "Roll-Over Re-Activation
  • Multi-User License
  • Floating License

Based on the result of the WEB_QUERY code, additional information will be required from the User.

 

WEB_QUERY POST Parameters

API
"API": "WEB_QUERY"
DNA_KEY1
"DNA_KEY1": "<encoded key1>"
DNA_KEY2
"DNA_KEY2": "<encoded key2>"
PRODUCT_ID
"PRODUCT_ID": "P0000000"

The DNA Product ID.

ACTIVATION_CODE
"ACTIVATION_CODE": "XX012345ABCDEF"

License Code to be activated

DEVICE_ID
(Device Application)
"DEVICE_ID": "<deviceID>"

When node-locking used, the device ID to be used

USERAGENT
(SAAS Application)
"USERAGENT": "<HTTP User Agent>"

The value of Request.ServerVariables["HTTP_USER_AGENT"]. Will be used to determine DNA_Platform and DNA_ComputerName.

USERAGENT
(Device Application)
"USERAGENT": "<device>"

The device OS platform used for display in the DNA Control Panel, from the following:

WINDOWS Windows 32-bit
WINDOWS64 Windows 64-bit
MACINTOSH Mac OSX 32-bit
MACINTOSH64 Mac OSX 64-bit
LINUX Linux
ANDROID Android Phone
IPHONE iPhone
IPAD iPad
COMPUTER_NAME
(Device Application)
"COMPUTER_NAME": "<device name>"

If available, the assigned device name used for display in the License Manager and the DNA Control Panel

DATE
"DATE": "22-12-07 15:37:47"

String representation of current date in any format. Used only to create / validate SIGNATURE

SIGNATURE
"SIGNATURE": "<HMAC256 Hash>"

HMAC256 Signature for the Request

 

WEB_QUERY Request example for a device App in JSON format

            
             
            {
                "API": "WEB_QUERY", 
                "DNA_KEY1": "", 
                "DNA_KEY2": "", 
                "PRODUCT_ID": "P0002964", 
                "ACTIVATION_CODE": "XX012345ABCDEF", 
                "DEVICE_ID":"8c9c72719398508a",
                "USERAGENT": "ANDROID", 
                "COMPUTER_NAME":"Joe-Samsung",
                "DATE":"22-12-07 15:37:47",
                "SIGNATURE": "eD9S9vqX7qFhpddJvQeLwRxfwHYByv5;fAMwb0LEnDE=" 
            }