Activate Bundle (Online Method)
Endpoint
Method:
POSTPath:
/api/v4/activate_bundleDescription: Activates all licenses inside a bundle and returns the activated licenses list.
Authentication
See License API Authorization.
Required headers
Date(string) — RFC7231 GMT date stringAuthorization(string) — signature or bearer token
Recommended headers
Accept: application/jsonContent-Type: application/json
Request
Body parameters
Required:
hardware_id(string) — Unique hardware ID generated for the client deviceproduct(string) — Bundle product short code
One of:
license_key(string) — For key-based bundlesusername+password(string) — For user-based bundlesid_token+customer_account_code(string) — SSO Implicit grantcode+customer_account_code(string) — SSO Authorization Code grant
Optional:
license_id(number)is_vm(boolean)vm_info(string)os_ver(string)hostname(string)os_hostname(string)ip(string)ip_local(string)app_ver(string)sdk_ver(string)mac_address(string)variables(object)
Minimal example (JSON)
Examples
Schema
Request Body
Response Body
See Activate License Online Method for the item schema.
License Authorization Method
There are two types of product licenses based on how the client application authorizes itself to interact with a license:
Key-based product licenses
Each license assigned to the product requires the client to provide a license key in order to activate, check or deactivate the license (property license_key in the request body).
The license response object will contain the license_key property, and the property product_details.authorization_method will be the string license_key.
User-based product licenses
Each license assigned to the product has a corresponding "license user" instead of a license key. There are multiple ways a user-based product license can be accessed when making a request:
By providing the values for
usernameandpasswordfor the license userBy providing the values for
id_tokenandcustomer_account_codeif using single sign-on authentication using Implicit grantBy providing the values for
codeandcustomer_account_codeif using single sign-on authentication using Authorization code grant
In the license response object, product_details.authorization_method will have the string value user and the response object will contain the user object with information on the license user.
License Types
The license_type property defines one of the 4 types of licenses based on their duration and how the license is used:
Perpetual:
perpetualTime-limited:
time-limitedSubscription:
subscriptionConsumption:
consumption
For more information see: License Types
Errors
If an error occurs, the response will have an HTTP status code of 400 or higher, and the response body will contain an error description in the following format:
JSON Schema
List of Exceptions
unknown_product (400): Provided product was not found
product_not_bundle (400): Specified product "code" is not a bundle
license_not_found (400): License with the provided license user not found
license_not_enabled (400): The license is not enabled
vm_not_allowed (400): Virtual machine not allowed
offline_floating_cloud_not_supported (400): Floating cloud licenses cannot be activated offline
license_start_date_error (400): This license cannot be activated before start date: {date}
blacklisted (400): This device is blacklisted
license_activated_max_times (400): This license key has already been activated the maximum number of times
license_user_activated_max_times (400): License user has activated this license max times
license_expired (400): License validity period has expired
license_transferred_max_times (400): This license has already been transferred the maximum number of times
license_device_exists (409): A device matching this hardware_id is already created on the license.
Last updated
Was this helpful?