How to manage access rights to your service ? (1/3)
1/ Manage Access Rights
Section titled “1/ Manage Access Rights”Features are the sole resource to consider for managing rights. They represent a variable element that influences the pricing of the subscription and also determine the access rights to your service.
Recall of feature types
Section titled “Recall of feature types”OnOff
- Binary value
- Example: access to a module Module A
Consumption
- Positive integer value
- Represents a consumption: a volume that is reset periodically
- Example: number of monthly sent SMS
Limitation
- Positive integer value
- Represents a persistent volume over time
- Example: number of users
GET /v1/Usages?ReferenceCustomer=cust-123456{ ... "Items": [ { "Id": 5478, "ReferenceFeature": "feat-module-a", "TypeFeature": "OnOff", "ReferenceCustomer": "cust-123456", "IsIncluded": true, "IsEnabled": true }, { "Id": 1797, "ReferenceFeature": "feat-users", "TypeFeature": "Limitation", "ReferenceCustomer": "cust-123456", "QuantityIncluded": 3, "QuantityCurrent": 4 }, { "Id": 1785, "ReferenceFeature": "feat-text-messages-sent", "TypeFeature": "Consumption", "ReferenceCustomer": "cust-123456", "QuantityIncluded": 100, "QuantityCurrent": 357 } ]}The interpretation of the data depends on the type of the feature:
-
OnOff: the API will indicate whether it is enabled or not.
- If multiple subscriptions coexist and you have requested a combined value, the response will be ‘enabled’ if at least one subscription has this feature enabled.
-
Limitation and Consumption: the API will provide the known value.
-
- If the “QuantityCurrent” field is not indicated, it means the quantity is unlimited.
- If multiple subscriptions coexist and you have requested a combined value, the response will be the sum of the values for each subscription. If a subscription is unlimited, the response will be ‘unlimited’.
-
Next chapter: adjusting rights and consumption through the API >