Api reference
Revoke entitlement by ID
Revoke a specific entitlement from a customer by entitlement ID. Emits an entitlement.revoked webhook event.
Related endpoints
GET /customers/{customerId}/entitlements— List customer entitlementsPOST /customers/{customerId}/entitlements— Grant entitlement to customerDELETE /customers/{customerId}/entitlements— Revoke entitlement by benefit keyGET /customers/{customerId}/entitlements/check— Check customer entitlementGET /entitlements— List entitlementsGET /entitlements/check— Check entitlement access
Common errors
401 unauthenticated— missing, malformed, or revoked API key.404 resource_missing— the referenced resource does not exist or is not visible to your key.
Idempotency
Pass an Idempotency-Key header (UUID v4 recommended) to make retries safe. Keys are valid for 24 hours; see the idempotency guide.
x-api-key<token>
Your RevKeen API key (powered by Unkey). Get it from Dashboard > Settings > API Keys. Use rk_sandbox_* for test mode and rk_live_* for production.
In: header
Path Parameters
customerId*string
Customer UUID
Format
uuidentitlementId*string
Entitlement UUID
Format
uuidResponse Body
application/json
curl -X DELETE "https://api.revkeen.com/v2/customers/00000000-0000-0000-0000-000000000000/entitlements/00000000-0000-0000-0000-000000000000" \ -H "x-api-key: $REVKEEN_API_KEY"{
"data": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
"benefitId": "551f0400-d5b0-411f-b487-14e33a04c610",
"benefit": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"description": "string",
"benefitType": "string",
"benefitKey": "string",
"category": "string",
"iconUrl": "string",
"displayOrder": "string",
"isActive": true,
"defaultValue": null,
"config": null
},
"grantedAt": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"metadata": {},
"status": "active",
"hasAccess": true,
"accessLevel": "full",
"subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f",
"subscriptionStatus": "string"
},
"message": "string"
}Empty
Empty