POST /service/api/ecom/shop/trials
Creates a trial license for a given product.
Request Information
URI Parameters
None.
URI Sample(s)
|
POST
|
https://unityapi.webrootcloudav.com/service/api/ecom/shop/trials
|
Body Parameters
Information about the product trial to process.
| Name | Description | Type | Additional Information |
|---|---|---|---|
| LicenseSeats |
The number of seats the trial license should have. |
integer |
Required |
| LicenseCategoryName |
License category associated to this item. Possible values are for example: OTSF, CBEP, WSAV, WSAI, WSAC, SAEP, SDNS, SECA, OTEDR, OTMDR |
string |
Required |
| LicenseKeycodeTypeId |
The identifier of a license's keycode type. Possible values are: 1 = standard license, 3 = parent license. If not specified, a default of 1 is assumed. |
integer |
None. |
| FirstName |
The first name of the customer. |
string |
Required (for business products) |
| LastName |
The last name of the customer. |
string |
Required (for business products) |
| Address1 |
Address line. |
string |
Required (for business products) |
| City |
The city of the customer. |
string |
Required (for business products) |
| PostalCode |
The postal code of the customer. |
string |
Required (for business products) |
| State |
The ISO two-letter or three-letter code for the state. |
string |
Required (for business products and certain countries like US, CA, AU, NZ, ZA) |
| Country |
The ISO two-letter code for the country. |
string |
Required (for business products) |
| CustomerEmail |
The email address of the customer. |
string |
Required |
| CompanyName |
The name of the customer's company. |
string |
Required (for business products) |
| VendorCustomerCode |
An arbitrary value that can be assigned to identify the recipient of the license. |
string |
None. |
| VaultId |
Defines which data center vault to use (applicable to OTSF, CBEP, OTEDR and OTMDR). Ids are associated with license categories. As an example, a value of '1' defines a data center in US2 for CBEP. Note: For the license categories OTEDR and OTMDR the field VaultId is mandatory. Supported values are:
|
integer |
None. |
| ProductPlatformId |
Platform to use for this item (applicable to CBEP only). If nothing is provided, a default value of 1 is assumed. Currently supported values are:
|
integer |
None. |
| Modules |
The modules to be added to this trial product. |
Collection of CreateTrialProductRequestServiceModel_Module |
None. |
Sample Request
{
"LicenseSeats": 317,
"LicenseCategoryName": "SAEP",
"LicenseKeycodeTypeId": 3,
"FirstName": "John",
"LastName": "Doe",
"Address1": "Webroot Way 21",
"City": "Broomfield",
"PostalCode": "80021",
"State": "CO",
"Country": "US",
"CustomerEmail": "jdoe@webroot.com",
"CompanyName": "ACME, Inc.",
"VendorCustomerCode": "E000280779",
"VaultId": null,
"ProductPlatformId": null,
"Modules": [
{
"LicenseSeats": 273,
"LicenseCategoryName": "SDNS",
"VaultId": null,
"ProductPlatformId": null
},
{
"LicenseSeats": 913,
"LicenseCategoryName": "SECA",
"VaultId": null,
"ProductPlatformId": null
}
]
}
<CreateTrialProductRequestServiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.ECom.Models">
<Address1>Webroot Way 21</Address1>
<City>Broomfield</City>
<CompanyName>ACME, Inc.</CompanyName>
<Country>US</Country>
<CustomerEmail>jdoe@webroot.com</CustomerEmail>
<FirstName>John</FirstName>
<LastName>Doe</LastName>
<LicenseCategoryName>SAEP</LicenseCategoryName>
<LicenseKeycodeTypeId>3</LicenseKeycodeTypeId>
<LicenseSeats>317</LicenseSeats>
<Modules>
<CreateTrialProductRequestServiceModel_Module>
<LicenseCategoryName>SDNS</LicenseCategoryName>
<LicenseSeats>273</LicenseSeats>
<ProductPlatformId i:nil="true" />
<VaultId i:nil="true" />
</CreateTrialProductRequestServiceModel_Module>
<CreateTrialProductRequestServiceModel_Module>
<LicenseCategoryName>SECA</LicenseCategoryName>
<LicenseSeats>913</LicenseSeats>
<ProductPlatformId i:nil="true" />
<VaultId i:nil="true" />
</CreateTrialProductRequestServiceModel_Module>
</Modules>
<PostalCode>80021</PostalCode>
<ProductPlatformId i:nil="true" />
<State>CO</State>
<VaultId i:nil="true" />
<VendorCustomerCode>E000280779</VendorCustomerCode>
</CreateTrialProductRequestServiceModel>
Response Information
Resource Description
Details about the newly created product trial.
CreateTrialProductResponseServiceModel| Name | Description | Type | Additional Information |
|---|---|---|---|
| Message |
Specifies if the user has duplicate registration. |
string |
None. |
| LicenseId |
A unique identifier for the license that was queried. |
integer |
None. |
| Keycode |
Keycode identifying the license. |
string |
None. |
| ProductLineDescription |
Description of the associated product line. |
string |
None. |
| Profile |
A dictionary of profiles. |
Dictionary of string [key] and CreateTrialProductResponseServiceModel_LicenseProfile [value] |
None. |
| Customer |
The customer associated to this license. |
CreateTrialProductResponseServiceModel_Customer |
None. |
Sample Response
{
"Message": null,
"LicenseId": 149701025,
"Keycode": "50F73E12319D4DED88C1",
"ProductLineDescription": "Webroot Business",
"Profile": {
"SAEP": {
"LicenseCategoryName": "SAEP",
"LicenseCategoryDescription": "Webroot Endpoint Protection",
"LicenseSeats": 955,
"LicenseKeycodeTypeId": 3,
"StartDate": "2025-11-03T06:37:39",
"ExpirationDate": "2028-02-15T23:43:59",
"LicenseAttributeValue": 1,
"LicenseAttributeValueDescription": "",
"LicenseAttributeDescription": "",
"CategoryTypeName": "full",
"ItemHierarchyId": 1,
"ItemHierarchyName": "primary",
"LicenseStatusId": 3,
"LicenseStatusDescription": "manually disabled",
"UsagePricingModelId": null,
"UsagePricingModelName": null,
"UsageCheckDay": null,
"VaultId": null,
"VaultName": null,
"Vaults": null,
"ProductPlatformId": null,
"ProductPlatformName": null,
"RetentionModelId": null,
"RetentionModelName": null
},
"SDNS": {
"LicenseCategoryName": "SDNS",
"LicenseCategoryDescription": "Webroot DNS Protection",
"LicenseSeats": 118,
"LicenseKeycodeTypeId": 3,
"StartDate": "2025-11-03T07:07:22",
"ExpirationDate": "2026-10-23T22:41:33",
"LicenseAttributeValue": 1,
"LicenseAttributeValueDescription": "",
"LicenseAttributeDescription": "",
"CategoryTypeName": "full",
"ItemHierarchyId": 2,
"ItemHierarchyName": "secondary",
"LicenseStatusId": 0,
"LicenseStatusDescription": "inactive",
"UsagePricingModelId": null,
"UsagePricingModelName": null,
"UsageCheckDay": null,
"VaultId": null,
"VaultName": null,
"Vaults": null,
"ProductPlatformId": null,
"ProductPlatformName": null,
"RetentionModelId": null,
"RetentionModelName": null
}
},
"Customer": {
"VendorCustomerCode": "8517",
"FirstName": "John",
"LastName": "Doe",
"Address1": "Webroot Way 21",
"City": "Broomfield",
"PostalCode": "80021",
"State": "CO",
"Country": "US",
"CustomerEmail": "jdoe@webroot.com",
"CompanyName": "ACME, Inc."
}
}
<CreateTrialProductResponseServiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.ECom.Models">
<Customer>
<Address1>Webroot Way 21</Address1>
<City>Broomfield</City>
<CompanyName>ACME, Inc.</CompanyName>
<Country>US</Country>
<CustomerEmail>jdoe@webroot.com</CustomerEmail>
<FirstName>John</FirstName>
<LastName>Doe</LastName>
<PostalCode>80021</PostalCode>
<State>CO</State>
<VendorCustomerCode>8517</VendorCustomerCode>
</Customer>
<Keycode>50F73E12319D4DED88C1</Keycode>
<LicenseId>149701025</LicenseId>
<Message i:nil="true" />
<ProductLineDescription>Webroot Business</ProductLineDescription>
<Profile xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringCreateTrialProductResponseServiceModel_LicenseProfilefLvholdK>
<d2p1:Key>SAEP</d2p1:Key>
<d2p1:Value>
<CategoryTypeName>full</CategoryTypeName>
<ExpirationDate>2028-02-15T23:43:59</ExpirationDate>
<ItemHierarchyId>1</ItemHierarchyId>
<ItemHierarchyName>primary</ItemHierarchyName>
<LicenseAttributeDescription></LicenseAttributeDescription>
<LicenseAttributeValue>1</LicenseAttributeValue>
<LicenseAttributeValueDescription></LicenseAttributeValueDescription>
<LicenseCategoryDescription>Webroot Endpoint Protection</LicenseCategoryDescription>
<LicenseCategoryName>SAEP</LicenseCategoryName>
<LicenseKeycodeTypeId>3</LicenseKeycodeTypeId>
<LicenseSeats>955</LicenseSeats>
<LicenseStatusDescription>manually disabled</LicenseStatusDescription>
<LicenseStatusId>3</LicenseStatusId>
<ProductPlatformId i:nil="true" />
<ProductPlatformName i:nil="true" />
<RetentionModelId i:nil="true" />
<RetentionModelName i:nil="true" />
<StartDate>2025-11-03T06:37:39</StartDate>
<UsageCheckDay i:nil="true" />
<UsagePricingModelId i:nil="true" />
<UsagePricingModelName i:nil="true" />
<VaultId i:nil="true" />
<VaultName i:nil="true" />
<Vaults i:nil="true" />
</d2p1:Value>
</d2p1:KeyValueOfstringCreateTrialProductResponseServiceModel_LicenseProfilefLvholdK>
<d2p1:KeyValueOfstringCreateTrialProductResponseServiceModel_LicenseProfilefLvholdK>
<d2p1:Key>SDNS</d2p1:Key>
<d2p1:Value>
<CategoryTypeName>full</CategoryTypeName>
<ExpirationDate>2026-10-23T22:41:33</ExpirationDate>
<ItemHierarchyId>2</ItemHierarchyId>
<ItemHierarchyName>secondary</ItemHierarchyName>
<LicenseAttributeDescription></LicenseAttributeDescription>
<LicenseAttributeValue>1</LicenseAttributeValue>
<LicenseAttributeValueDescription></LicenseAttributeValueDescription>
<LicenseCategoryDescription>Webroot DNS Protection</LicenseCategoryDescription>
<LicenseCategoryName>SDNS</LicenseCategoryName>
<LicenseKeycodeTypeId>3</LicenseKeycodeTypeId>
<LicenseSeats>118</LicenseSeats>
<LicenseStatusDescription>inactive</LicenseStatusDescription>
<LicenseStatusId>0</LicenseStatusId>
<ProductPlatformId i:nil="true" />
<ProductPlatformName i:nil="true" />
<RetentionModelId i:nil="true" />
<RetentionModelName i:nil="true" />
<StartDate>2025-11-03T07:07:22</StartDate>
<UsageCheckDay i:nil="true" />
<UsagePricingModelId i:nil="true" />
<UsagePricingModelName i:nil="true" />
<VaultId i:nil="true" />
<VaultName i:nil="true" />
<Vaults i:nil="true" />
</d2p1:Value>
</d2p1:KeyValueOfstringCreateTrialProductResponseServiceModel_LicenseProfilefLvholdK>
</Profile>
</CreateTrialProductResponseServiceModel>