Last Updated: 7/7/2021 1:24:24 AM
Use Customers :: Subscription :: Get to get the details of the license information of your customer's subscribed service plan. You can also find here the number of seats in the response data.
Note
Note
The Customer Company ID and Subscription ID are required parameters and you should save these IDS because you will need them when you Create new customer company and subscribe one of your service plans to it.
method = "GET"
request_uri = "/LMPI/v2/customers/%s/subscriptions/%s"\
    %(company_id, subscription_id)

res_status, res_data = send_request(method, request_uri)

print "Response status: %s",  res_status
print "Response data: \n%s", res_data

# Retrieve the number of seats
res_data = json.loads(res_data)
seat_count = res_data["licenses"][0]["units"]
print "Seat count: %s", seat_count
If successful, the results will show as:
Response status: 200
Response data:
{
  "subscription_id": "C6602FD7-2F15-4431-89CD-0355B80E1425",
  "name": "Worry Free Business full version (monthly)",
  "enabled": true,
  "is_auto_renewal" : false,
  "auto_renewal_month" : 0,
  "expiration_notification": 30,
  "service_url": "https://clp.trendmicro.com/?T=9ABIQ",
  "licenses": [
    {
      "ac_code": "WF-WBKG-ZDLB8-TSVW5-DV6MQ-ZTGC5-VHLDP",
      "product_id": "WFSBWXE3X",
      "license_start_date": "2013-05-15T00:00:00Z",
      "license_expiration_date": "2013-06-15T00:00:00Z",
      "start_charge_date": "2013-05-15T00:00:00Z",
      "grace_period": 1,
      "units": 20,
      "enabled": true
    }
  ]
}
Seat count: 20