removePaymentMethodMutation
Detach one of the viewer's saved cards. Returns a friendly error when the card backs an active membership subscription — the caller should swap the subscription's payment method via the billing portal first.
Arguments
paymentMethodID!Returns
See RemovePaymentMethodResult for the full shape.
Try it
Example
Query
mutation RemovePaymentMethod($paymentMethod: ID!) {
removePaymentMethod(paymentMethod: $paymentMethod) {
__typename
}
}
Variables
{}
POST
https://go.sessions.website/api/graphqlremovePaymentMethod