跳转到主要内容
DELETE
/
entitlements
/
{id}
JavaScript
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});

await client.entitlements.delete('id');

Documentation Index

Fetch the complete documentation index at: https://docs.dodopayments.com/llms.txt

Use this file to discover all available pages before exploring further.

删除权限是一个软删除操作,它会隐藏客户门户中的现有权限授予。它不会撤销平台端的访问:
  • 与权限相关联的授予仍保留在数据库中,并保持当前的status
  • Discord角色、GitHub协作者访问、Notion访问、Telegram会员、许可证密钥和数字文件URL仍然有效。
  • 不会触发entitlement_grant.revoked webhook,也不会设置revoked_at / revocation_reason
用户将不再在GET /customer-portal/entitlements中看到这些授予,但在基础平台上的访问将继续,直到订阅/付款生命周期撤销访问(取消、退款)或您通过DELETE /entitlements/{id}/grants/{grant_id}手动撤销每个授予。如果需要完全切断访问,请先撤销授予,然后删除权限。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

id
string
必填

Entitlement ID

响应

Entitlement deactivated

Last modified on May 14, 2026