Skip to main content

Revoke Single Entitlement

Overview​

The Tenant Entitlement Revoke API allows a tenant administrator to revoke a user's NFT-based entitlement.

To end a subscription, use Update Subscription (for example status: expired or status: refunded) rather than this API. This API removes the token but leaves the subscription active, so a later renewal would succeed for a user who no longer holds the token.


Endpoint​

POST /tnt/:tid/entitlement/revoke

Authentication​

This API requires TenantAuth authorization -- a Tenant or Content admin CSAT.

Include the bearer token in the request header:

Authorization: Bearer <token>

Path Parameters​

NameTypeRequiredDescription
tidstringYesYour tenant identifier

Required Headers​

HeaderValue
Content-Typeapplication/json
Acceptapplication/json
AuthorizationBearer <token>

Request Body​

Required Fields​

FieldTypeRequiredDescription
nft_addrstringYesContract address of the NFT
token_idstringYesToken ID of the NFT to transfer
from_addrstringYesCurrent owner address (must be the actual owner)

Curl Example​

curl -X POST "https://<fabric-authority-url>/tnt/<tenantId>/entitlement/revoke" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"nft_addr": "0xcontract123...",
"token_id": "777",
"from_addr": "0xowner123..."
}'

Response​

Success Response (HTTP 200)​

Returned when the token transfer is completed successfully.

Fields​

FieldTypeDescription
successbooleantrue when the transfer completed successfully
requestobjectEcho of the original request parameters
request.nft_addrstringContract address of the NFT
request.token_idstringToken ID that was transferred
request.from_addrstringAddress the token was transferred from
request.to_addrstringAddress the token was transferred to

Example Success Response​

{
"success": true,
"request": {
"nft_addr": "0xcontract123...",
"token_id": "78",
"from_addr": "0xowner123..."
}
}

Error Response​

Returned when the transfer cannot be completed.

Fields​

FieldTypeDescription
successbooleanfalse when the transfer failed
errorstringDescription of what went wrong

Common Error Messages​

MessageMeaning
cannot find minter keys configThe tenant does not have a configured minter/proxy owner setup
cannot find proxyOwner ikmskeyThe tenant configuration exists but does not define a proxy owner
invalid request body: <details>The JSON request body is malformed or missing required fields
invalid 'from' addressThe provided from_addr is not a valid Ethereum address
invalid 'to' addressThe internally assigned burn address failed validation (unexpected)
invalid NFT addressThe provided nft_addr is not a valid Ethereum contract address
error transferring nft tokenId: <details>The blockchain transfer execution failed (permission, ownership, etc.)