Skip to content

Remove a card.

DELETE
/billing/payment-methods/{payment_method_id}
curl --request DELETE \
--url https://api.siteqwality.com/billing/payment-methods/example \
--header 'Authorization: Bearer <token>'
payment_method_id
required
string

Stripe payment method id

Card removed

Media type application/json
object
ok
required

Always true. Present because a successful response with an empty body hands the dashboard’s request wrapper a falsy data, which reads as a failure at the call site.

boolean
Example generated
{
"ok": true
}

Missing or invalid authentication

Caller is not a super admin

Removing the only card on a paid subscription

Internal server error