APIDelete Membership API - Revoke Access | BotSubscription

Delete Membership - Revoke Subscription Access via API

Terminate a member's subscription and immediately revoke their access to your paid Telegram channel or Discord role. Use this when issuing refunds, handling disputes, or removing access for policy violations. The member's payment history is preserved for your records.

DELETE/v2/projects/{project_id}/memberships/{membership_id}

Authorization

Bearer TokenRequired

Path Parameters

project_idstringRequired

The unique identifier of the project.

membership_idstringRequired

The unique identifier of the membership to delete.

Request
curl -X DELETE "https://api.botsubscription.com/v2/projects/YOUR_PROJECT_ID/memberships/YOUR_MEMBERSHIP_ID" \
  -H "Authorization: Bearer YOUR_TOKEN"
Membership deletedapplication/json

No content is returned on successful deletion.

Last updated: