User Licences Count
Get User Licences Count
Purpose
To retrieve the count of purchased, active and available user licences in your organization.
Endpoints
Request Details
Request URL
{api-domain}/crm/{version}/__features/user_licenses
Header
Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52
Scope
scope=ZohoCRM.features.READ
Sample Request
Copiedcurl "https://www.zohoapis.com/crm/v7/__features/user_licenses"
-H "Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf"
-X GET
Response JSON Keys
- detailsJSON object
Represents the details of user licences
- available_countJSON object
Indicates the number of user licenes that are available.
- used_countJSON object
Indicates the number of user licenes that are active.
- limitJSON object
Indicates the total purchased of number of user licenes.
- componentsJSON object
Represents the details of the components inside a feature. This key is not applicable for user licences. It will be used by other features in the future.
- api_namestring
Represents the api name of the feature.
- parent_featurestring
Represents the parent feature of the feature if applicable.
- module_supportedboolean
Indicates whether the feature is specific to a module.
- feature_labelstring
Represents the feature name. This will be translated to a user's language.
Sample Response
Copied{
"__features": [
{
"components": null,
"api_name": "user_licenses",
"parent_feature": null,
"module_supported": false,
"details": {
"available_count": {
"total": 3
},
"used_count": {
"total": 7
},
"limits": {
"total": 10
}
},
"feature_label": "UserLicenses"
}
]
}
Possible Errors
- INVALID_URL_PATTERNHTTP 404
Please check if the URL trying to access is a correct one
Resolution: The request URL specified is incorrect. Specify a valid request URL. Refer to request URL section above. - OAUTH_SCOPE_MISMATCHHTTP 401
Unauthorized
Resolution:Refer to scope section above.