curl -X POST \
/subscription-items/{subscriptionItemId}/entitlements \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"feature": "https:\/\/example.com\/",
"value": "",
"validFrom": "",
"validUntil": ""
}'
{
"id": "<string>",
"subscriptionItem": {
"id": "01F9ZQZJZJQZJZJZJZJZJZJZJZ",
"name": "Fitness M",
"description": "Everything included",
"furtherInformation": "Additional agreements: The contract includes a free drink flatrate.",
"status": "active",
"subscriptionId": "<string>"
},
"feature": {
"id": "feature-1",
"name": "number of users",
"description": "This feature allows you to manage the number of users in your account.",
"status": "active",
"type": "switch",
"config": [
{
"value": "<string>",
"label": "<string>"
}
],
"unit": "<string>"
},
"value": "true",
"validFrom": "2023-11-07T05:31:56Z",
"validUntil": "2023-11-07T05:31:56Z",
"active": true
}
Creates a Entitlement resource.
curl -X POST \
/subscription-items/{subscriptionItemId}/entitlements \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"feature": "https:\/\/example.com\/",
"value": "",
"validFrom": "",
"validUntil": ""
}'
{
"id": "<string>",
"subscriptionItem": {
"id": "01F9ZQZJZJQZJZJZJZJZJZJZJZ",
"name": "Fitness M",
"description": "Everything included",
"furtherInformation": "Additional agreements: The contract includes a free drink flatrate.",
"status": "active",
"subscriptionId": "<string>"
},
"feature": {
"id": "feature-1",
"name": "number of users",
"description": "This feature allows you to manage the number of users in your account.",
"status": "active",
"type": "switch",
"config": [
{
"value": "<string>",
"label": "<string>"
}
],
"unit": "<string>"
},
"value": "true",
"validFrom": "2023-11-07T05:31:56Z",
"validUntil": "2023-11-07T05:31:56Z",
"active": true
}
Value for the Authorization header parameter.
Entitlement identifier
The new Entitlement resource
Entitlement resource created
Get all entitlements of a subscription
Was this page helpful?