License API
Consumption

Adding Feature Consumption

5min
Only for consumption feature licenses. Adds 1 or more consumptions to the feature usage.
POST
Request
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. [email protected])
license_id
optional
Number
Ensures that the action affects only the license with the specified ID. This is useful if e.g. you have multiple licenses for the same product assigned to the same user. For obtaining a list of licenses assigned to a user, see "User Licenses"
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


List of exceptions

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 14 Nov 2024
Doc contributor
Doc contributor
Doc contributor
Doc contributor
Doc contributor
Did this page help you?