Zum Hauptinhalt springen
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' });

Autorisierungen

Authorization
string
header
erforderlich

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

Pfadparameter

customer_id
string
erforderlich

Customer Id

payment_method_id
string
erforderlich

Payment Method Id

Antwort

Payment method deleted successfully

Last modified on April 1, 2026