Skip to main content
DELETE
JavaScript
从客户账户中移除已保存的支付方式。用于清理过时或不需要的支付方式。
不能删除正在被活跃订阅使用的支付方式。API 返回 409 Conflict,并显示 Payment method is in use by an active subscription。请先使用 更新支付方式 将订阅迁移到其他支付方式,然后再删除旧的支付方式。
删除成功后会返回 204 No Content

使用场景

  • 客户请求:移除客户不再希望保留的支付方式
  • 已过期的卡片:清理卡片信息已过期的支付方式
  • 安全性:立即移除已遭泄露的支付方式

授权

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

最后修改于 2026年8月6日