Skip to content
removePaymentMethodMutation
removePaymentMethod(paymentMethod: ID!): RemovePaymentMethodResult!

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

RemovePaymentMethodResult!

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/graphql
removePaymentMethod