Questo endpoint consente di disattivare una licenza per l’utente.
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.
Nessuna chiave API richiesta: Questo è un endpoint pubblico che non richiede autenticazione. Puoi chiamarlo direttamente da applicazioni client, software desktop o CLI per disattivare le chiavi di licenza senza esporre le tue credenziali API.
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',});