getMspOrgLicenses

GET https://{{host}}/api/v1/msps/:msp_id/licenses

Get Org Licenses under a MSP

Response Body

NameTypeDescription
licenseslistlist of licenses
typestringsubscription type, SUB-MAN / SUB-LOC / SUB-AST / SUB-VNA / SUB-DATA
start_timelongstart date of the license term
end_timelongend date of the license term
quantityintnumber of devices entitled for this license
entitledobjectcurrently entitled for each license type

RESPONSES

status: OK

"{\n    \"licenses\": [\n        {\n            \"order_id\": \"00000464\",\n            \"subscription_id\": \"SUB-0000144\",\n            \"type\": \"SUB-MAN\",\n            \"start_time\": 1504828800,\n            \"end_time\": 1520380800,\n            \"quantity\": 180\n        },\n        {\n            \"order_id\": \"00000464\",\n            \"subscription_id\": \"SUB-0000145\",\n            \"type\": \"SUB-MAN\",\n            \"start_time\": 1504828800,\n            \"end_time\": 1520380800,\n            \"quantity\": 30\n        }\n        {\n            \"order_id\": \"00000464\",\n            \"subscription_id\": \"SUB-0000146\",\n            \"type\": \"SUB-LOC\",\n            \"start_time\": 1504828800,\n            \"end_time\": 1520380800,\n            \"quantity\": 120\n        }\n    ],\n    \"amendments\": [\n        {\n            \"id\": \"2b9116ab-cd1e-e897-6e08-31fccd88e792\",\n            \"subscription_id\": \"SUB-0000144\",\n            \"type\": \"SUB-MAN\",\n            \"start_time\": 1504828800,\n            \"end_time\": 1520380800,\n            \"quantity\": -30\n        },\n        {\n            \"id\": \"4e974f27-fcbc-03cb-caa4-688e20aa539f\",\n            \"subscription_id\": \"SUB-0000146\",\n            \"type\": \"SUB-LOC\",\n            \"start_time\": 1504828800,\n            \"end_time\": 1520380800,\n            \"quantity\": 75\n        },\n    ],\n    \"entitled\": {\n        \"SUB-MAN\": 180,\n        \"SUB-LOC\": 195\n    }\n}"