메인 콘텐츠로 건너뛰기
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' });

Documentation Index

Fetch the complete documentation index at: https://docs.dodopayments.com/llms.txt

Use this file to discover all available pages before exploring further.

고객 계정에서 저장된 결제 수단을 제거합니다. 오래되거나 원하지 않는 결제 수단을 정리할 때 사용하세요.
삭제된 결제 수단이 활성 구독에 유일한 경우 다음 청구 주기에 갱신이 실패할 수 있습니다. 삭제하기 전에 고객이 대체 결제 수단을 가지고 있는지 확인하세요.

사용 사례

  • 고객 요청: 고객이 더 이상 파일에 보관하지 않으려는 결제 수단을 제거
  • 만료된 카드: 카드 정보가 만료된 결제 수단 정리
  • 보안: 손상된 결제 수단을 즉시 제거

인증

Authorization
string
header
필수

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

경로 매개변수

customer_id
string
필수

Customer Id

payment_method_id
string
필수

Payment Method Id

응답

Payment method deleted successfully

Last modified on May 4, 2026