Replies: 4 comments
-
The NetLicensing RESTful API allows for the programmatic creation and updating of licenses. It provides full control over all existing licensing entities, enabling easy integration into various business processes, ERP, CRM, e-Commerce. The API is based on open standards, allowing access via any programming language and offering pre-built client libraries for interaction. It supports JSON or XML as its response format and standard HTTP methods like GET, PUT, POST, and DELETE. The API can be accessed using a valid NetLicensing vendor account, and the recommended way to access API services is via an 'API Key'. |
Beta Was this translation helpful? Give feedback.
-
Create LicenseTo assign a new license to a customer using the NetLicensing RESTful API, you can utilize the LicenseService.create() method with the essential parameters outlined below:
Request example curl -X POST --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: application/xml' --header 'Authorization: Basic ZGVtbzpkZW1v' \
-d 'licenseeNumber=IE4CIYPYU&licenseTemplateNumber=EFPHZY5FK&active=true&timeVolume=1&timeVolumePeriod=YEAR&startDate=now' \
'https://go.netlicensing.io/core/v2/rest/license' Response example <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:netlicensing xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:ns2="http://netlicensing.labs64.com/schema/context">
<ns2:infos />
<ns2:items>
<ns2:item type="License">
<ns2:property name="number">LGCMFG69U</ns2:property>
<ns2:property name="active">true</ns2:property>
<ns2:property name="name">100 days</ns2:property>
<ns2:property name="price">0.00</ns2:property>
<ns2:property name="currency">EUR</ns2:property>
<ns2:property name="hidden">false</ns2:property>
<ns2:property name="licenseeNumber">IE4CIYPYU</ns2:property>
<ns2:property name="licenseTemplateNumber">EFPHZY5FK</ns2:property>
<ns2:property name="productModuleNumber">MNERNGP45</ns2:property>
<ns2:property name="gracePeriod">false</ns2:property>
<ns2:property name="timeVolumePeriod">YEAR</ns2:property>
<ns2:property name="timeVolume">1</ns2:property>
<ns2:property name="startDate">2024-01-11T05:39:45.986Z</ns2:property>
</ns2:item>
</ns2:items>
</ns2:netlicensing> |
Beta Was this translation helpful? Give feedback.
-
Update LicenseTo update an existing license to a customer using the NetLicensing RESTful API, you can utilize the LicenseService.update() method with the essential parameters outlined below: Path params
Form params
Request example curl -X POST --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: application/xml' --header 'Authorization: Basic ZGVtbzpkZW1v' \
-d 'startDate=2024-01-01T00%3A00%3A00Z&timeVolume=14&timeVolumePeriod=MONTH&key1=value1' \
'https://go.netlicensing.io/core/v2/rest/license/LGCMFG69U' Response example <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:netlicensing xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:ns2="http://netlicensing.labs64.com/schema/context">
<ns2:infos />
<ns2:items>
<ns2:item type="License">
<ns2:property name="number">LGCMFG69U</ns2:property>
<ns2:property name="active">true</ns2:property>
<ns2:property name="name">100 days</ns2:property>
<ns2:property name="price">0.00</ns2:property>
<ns2:property name="currency">EUR</ns2:property>
<ns2:property name="hidden">false</ns2:property>
<ns2:property name="licenseeNumber">IE4CIYPYU</ns2:property>
<ns2:property name="licenseTemplateNumber">EFPHZY5FK</ns2:property>
<ns2:property name="productModuleNumber">MNERNGP45</ns2:property>
<ns2:property name="key1">value1</ns2:property>
<ns2:property name="gracePeriod">false</ns2:property>
<ns2:property name="timeVolumePeriod">MONTH</ns2:property>
<ns2:property name="timeVolume">14</ns2:property>
<ns2:property name="startDate">2024-01-01T00:00:00Z</ns2:property>
</ns2:item>
</ns2:items>
</ns2:netlicensing> |
Beta Was this translation helpful? Give feedback.
-
Deactivate LicenseTo deactivate a license, set its Form params
curl -X POST --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: application/xml' --header 'Authorization: Basic ZGVtbzpkZW1v' \
-d 'active=false' \
'https://go.netlicensing.io/core/v2/rest/license/LGCMFG69U' <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:netlicensing xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:ns2="http://netlicensing.labs64.com/schema/context">
<ns2:infos />
<ns2:items>
<ns2:item type="License">
<ns2:property name="number">LGCMFG69U</ns2:property>
<ns2:property name="active">false</ns2:property>
<ns2:property name="name">100 days</ns2:property>
<ns2:property name="price">0.00</ns2:property>
<ns2:property name="currency">EUR</ns2:property>
<ns2:property name="hidden">false</ns2:property>
<ns2:property name="licenseeNumber">IE4CIYPYU</ns2:property>
<ns2:property name="licenseTemplateNumber">EFPHZY5FK</ns2:property>
<ns2:property name="productModuleNumber">MNERNGP45</ns2:property>
<ns2:property name="key1">value1</ns2:property>
<ns2:property name="gracePeriod">false</ns2:property>
<ns2:property name="timeVolumePeriod">MONTH</ns2:property>
<ns2:property name="timeVolume">14</ns2:property>
<ns2:property name="startDate">2024-01-01T00:00:00Z</ns2:property>
</ns2:item>
</ns2:items>
</ns2:netlicensing> |
Beta Was this translation helpful? Give feedback.
-
How to create and update Licenses using NetLicensing RESTful API
Beta Was this translation helpful? Give feedback.
All reactions