Import Licenses From CSV
Import licenses from CSV, if the requesting manager has access permissions to it.
Ensure that all text fields in your CSV use ASCII characters. Non-ASCII characters (such as “ä”, “ñ”, or other special symbols) can cause import errors. To avoid issues, remove or replace these characters before uploading your file.
URL: /api/v1/licenses/import_from_csv/
Method: POST
Content-Type Required Content-Type is multipart/form-data with the following single key value pair:
Key:
fileValue:
{csv file from which to import}
Required CSV Headers
license__license_keyproduct__short_code
Possible CSV Headers
customer__last_name- last name of the customercustomer__company_name- name of the company the customer is associated withcustomer__phone- phone number of the customercustomer__reference- unique identifier or reference number for the customercustomer__address- address of the customercustomer__postcode- postal code associated with the customer's addresscustomer__state- state or region of the customer's addresscustomer__city- city of the customer's addresscustomer__country- country of the customer's addressorder__store_id- unique identifier for the store from which the order was madeorder__type- type of orderorder__is_test- boolean flag indicating whether the order is a test orderorder__is_trial- boolean flag indicating whether the order is for a trial productorder__download_id- unique identifier for any digital products that may need to be downloaded as part of the orderorder__language- language preference for the orderorder__campaign_params- parameters related to any marketing campaign associated with the orderlicense__license_key- unique license keylicense__enabled- boolean flag indicating whether the license is active and validlicense__max_activations- maximum number of activations permitted for the licenselicense__allow_unlimited_activations- permits unlimited activations for the licenselicense__validity_period- period during which the license is validlicense__valid_duration- the exact duration the license is valid forlicense__license_type- the type of license (perpetual, time-limited, subscription, consumption)license__enable_maintenance_period- boolean flag indicating whether a maintenance period is enabled for the licenselicense__maintenance_period- the duration of the maintenance period for the licenseused to set the date when maintenance will end for this license;
license__enable_maintenance_periodmust also be set for it to take effectformat:
YYYY-MM-DDexample:
2023-09-15
license__maintenance_duration- the duration of the maintenance period for the licenselicense__is_trial- boolean flag indicating whether the license is a trial licenselicense__max_consumptions- maximum number of uses allowedlicense__subscription_id- identifier for any subscription plan associated with the licenselicense__prevent_vm- boolean flag indicating whether the license prevents use in virtual machineslicense__allow_overages- boolean flag indicating whether overages are allowedlicense__max_overages- maximum allowable overages for the licenselicense__reset_consumption- boolean flag indicating whether the consumption count for the license resets after a certain periodlicense__consumption_period- period after which the consumption count resetslicense__trial_days- number of days for which the trial license is validlicense__is_floating- boolean flag indicating whether the license is a floating licenselicense__is_floating_cloud- boolean flag indicating whether the license is a cloud-based floating licenselicense__floating_users- maximum number of concurrent users allowed under a floating licenselicense__note- additional notes or information about the licenselicense__max_license_users- maximum number of users who can use a single licenselicense__floating_timeout- period of inactivity after which a floating license is released for use by another userproduct__short_code- short identifier or code for the product associated with the license
Data example
Success Response
Code: 200 OK
Content example:
job_id from the response can be used to query the import result.
Was this helpful?