Management API
License
Retrieve License
1min
Retrieves a single license, if requesting manager has access permissions to it.
URL: /api/v1/licenses/{id}/
Method: GET
Code: 200 OK
Content Examples:
JSON
1{
2 "id": 1593781720493289,
3 "status": "Inactive",
4 "floating_in_use_devices": 0,
5 "customer": {
6 "id": 620,
7 "total_orders": 14,
8 "total_licenses": 45,
9 "labels": [
10 {
11 "id": 3,
12 "label_id": 8,
13 "label": "Customer",
14 "color": "#ff9f43"
15 },
16 {
17 "id": 53,
18 "label_id": 34,
19 "label": "Loyal",
20 "color": "#3a0cd4"
21 }
22 ],
23 "email": "[email protected]",
24 "first_name": "",
25 "last_name": "",
26 "company_name": "",
27 "phone": "",
28 "reference": "",
29 "address": "",
30 "postcode": "",
31 "city": "",
32 "country": "",
33 "state": "",
34 "clabels_all": "customerloyal",
35 "cognito_user_pool_id": "",
36 "metadata": {},
37 "company": 277,
38 "license_user": null,
39 "clabels": [
40 8,
41 34
42 ]
43 },
44 "product_features": [
45 {
46 "id": 1596179495925542,
47 "product_feature": {
48 "id": 173,
49 "created_at": "2020-09-14T11:17:43Z",
50 "updated_at": "2020-09-14T11:17:43Z",
51 "name": "Feature 3",
52 "code": "f3",
53 "is_deleted": false,
54 "feature_type": "consumption",
55 "max_consumption": 2,
56 "allow_overages": false,
57 "max_overages": 0,
58 "reset_consumption": false,
59 "consumption_period": null,
60 "metadata": {}
61 },
62 "max_consumption": 30,
63 "total_consumptions": 0,
64 "expiry_date": null,
65 "allow_overages": false,
66 "max_overages": 99,
67 "reset_consumption": false,
68 "consumption_period": null,
69 "metadata": {}
70 }
71 ],
72 "product_custom_fields": [],
73 "license_users": [
74 {
75 "id": 1240,
76 "last_login": null,
77 "email": "[email protected]|uss1",
78 "true_email": "[email protected]",
79 "created_at": "2020-08-12T08:52:32Z",
80 "updated_at": "2020-08-12T09:01:24Z",
81 "is_admin": {},
82 "is_active": true,
83 "is_staff": false,
84 "first_name": "John",
85 "last_name": "Doe",
86 "phone_number": "00385913109161",
87 "subscribed_to_email": false,
88 "acquired_consent": null,
89 "is_manager": false,
90 "initial_password": "4q3dg7!_",
91 "is_initial_password": true,
92 "max_activations": 1,
93 "total_activations": 5
94 }
95 ],
96 "order_store_id": "d2d2dce02c844d4492c9d48758aa143a",
97 "active_up_to_date_devices": 0,
98 "total_active_devices": 0,
99 "product": {
100 "id": 1584723961091234,
101 "product_name": "mch",
102 "custom_fields": [
103 {
104 "id": 239,
105 "name": "t1",
106 "data_type": null,
107 "default_value": "333",
108 "description": null,
109 "product": 1584723961091234
110 }
111 ]
112 },
113 "created_at": "2020-07-03T13:08:40Z",
114 "updated_at": "2020-10-15T13:40:26Z",
115 "license_key": null,
116 "active": false,
117 "enabled": true,
118 "time_activated": "2020-10-10T14:42:16Z",
119 "time_disabled": "2020-08-14T07:26:27Z",
120 "max_activations": 6,
121 "times_activated": 0,
122 "valid_duration": null,
123 "validity_period": "2020-09-30",
124 "license_type": "perpetual",
125 "enable_maintenance_period": true,
126 "maintenance_duration": "3m",
127 "maintenance_period": "2021-01-10",
128 "is_trial": true,
129 "max_consumptions": 0,
130 "total_consumptions": 0,
131 "subscription_id": null,
132 "last_check": null,
133 "prevent_vm": true,
134 "allow_overages": false,
135 "max_overages": 0,
136 "reset_consumption": false,
137 "consumption_period": null,
138 "trial_days": 0,
139 "is_floating": false,
140 "is_floating_cloud": true,
141 "floating_users": 1,
142 "note": null,
143 "max_license_users": 0,
144 "transfer_count": 0,
145 "floating_timeout": null,
146 "max_transfers": 0,
147 "is_air_gapped": false,
148 "can_borrow": false,
149 "max_borrow_time": 0,
150 "is_bundle": false,
151 "metadata": {},
152 "order": 1593781720493279,
153 "order_item": 1593781720493299,
154 "disabled_user": null,
155 "last_activation_device": null
156}
Updated 21 Oct 2024
Did this page help you?