Điểm cuối này cho phép bạn vô hiệu hóa một giấy phép cho người dùng.
POST
/
licenses
/
deactivate
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.licenses.deactivate({ license_key: 'license_key', license_key_instance_id: 'license_key_instance_id',});
Use this file to discover all available pages before exploring further.
Không yêu cầu API Key: Đây là một endpoint công khai không yêu cầu xác thực. Bạn có thể gọi nó trực tiếp từ ứng dụng khách, phần mềm máy tính để bàn, hoặc CLI để hủy kích hoạt các khóa giấy phép mà không cần phải lộ thông tin xác thực API của bạn.
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.licenses.deactivate({ license_key: 'license_key', license_key_instance_id: 'license_key_instance_id',});