Passer au contenu principal
DELETE
/
customers
/
{customer_id}
/
payment-methods
/
{payment_method_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.customers.deletePaymentMethod('payment_method_id', { customer_id: 'customer_id' });

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

customer_id
string
requis

Customer Id

payment_method_id
string
requis

Payment Method Id

Réponse

Payment method deleted successfully

Last modified on April 1, 2026