Entitlements
List subject entitlement grants
List all grants issued for an entitlement. The entitlement can be defined either by its id or featureKey.
⚠️ Deprecated: Use GET /api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/grants instead.
get/api/v1/subjects/{subjectIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/grants
Path parameters
subjectIdOrKeystring required
entitlementIdOrFeatureKeystring required
Query parameters
includeDeletedboolean
orderBy'id' | 'createdAt' | 'updatedAt'
Order by options for grants.
Response
The request has succeeded.
Example response
[
{
"createdAt": "2024-01-01T01:01:01.001Z",
"updatedAt": "2024-01-01T01:01:01.001Z",
"deletedAt": "2024-01-01T01:01:01.001Z",
"amount": 100,
"priority": 1,
"effectiveAt": "2023-01-01T01:01:01.001Z",
"expiration": {
"count": 12
},
"maxRolloverAmount": 100,
"minRolloverAmount": 100,
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"entitlementId": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"nextRecurrence": "2023-01-01T01:01:01.001Z",
"expiresAt": "2023-01-01T01:01:01.001Z",
"voidedAt": "2023-01-01T01:01:01.001Z",
"recurrence": {
"interval": "DAY",
"intervalISO": "P1D",
"anchor": "2023-01-01T01:01:01.001Z"
},
"annotations": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
}
}
]