License API
Consumption
Adding Feature Consumption
7min
Only for consumption feature licenses. Adds 1 or more consumptions to the feature usage.
POST
Params
Header Parameters
Date
required
String
eq. Thu, 17 Nov 2022 20:51:35 GMT
Authorization
required
String
See signing of the License API calls article.
Body Parameters
hardware_id
required
String
Unique hardware ID generated for some device
product
required
String
Product short code
feature
required
String
Feature short code
license_key
optional
String
Required if product is key_based. Attach the license key (eq. 1111-2222-3333-4444)
username
optional
String
Required if product is user based. Attach the assigned license user email (eq. user@example.com)
consumptions
optional
Number
number of consumptions on certain feature (this is optional, if not provided "1" is default)
Curl
Node.js
JS
Python
Ruby
|
RESPONSES
200
400
|
unknown_product (400): Provided product was not found
license_not_found (400): License with the provided license user not found
license_not_active (400): The license is not active
license_not_enabled (400): The license is not enabled
unsupported_product_feature (400): One or more of requested product features do not exists or they are not enabled on the product
feature_not_enough_consumptions (400): Not enough consumptions left
device_not_found (400): An active device matching the hardware_id not found
blacklisted (400): This device is blacklisted



Updated 22 Sep 2023
Did this page help you?