This endpoint allows you to deactivate a license for the user.
POST
/
licenses
/
deactivate
JavaScript
Copy
Ask AI
import DodoPayments from 'dodopayments';const client = new DodoPayments({ bearerToken: 'My Bearer Token',});await client.licenses.deactivate({ license_key: 'license_key', license_key_instance_id: 'license_key_instance_id',});
No API Key Required: This is a public endpoint that does not require authentication. You can call it directly from client applications, desktop software, or CLIs to deactivate license keys without exposing your API credentials.