--- title: customerPaymentMethodRevoke - GraphQL Admin description: Revokes a customer's payment method. api_version: 2025-10 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/customerpaymentmethodrevoke md: https://shopify.dev/docs/api/admin-graphql/latest/mutations/customerpaymentmethodrevoke.md --- # customer​Payment​Method​Revoke mutation Requires `write_customers` access scope. Also: Requires `write_customer_payment_methods` scope. Revokes a customer's payment method. ## Arguments * customer​Payment​Method​Id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The ID of the customer payment method to be revoked. *** ## Customer​Payment​Method​Revoke​Payload returns * revoked​Customer​Payment​Method​Id [ID](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) The ID of the revoked customer payment method. * user​Errors [\[User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/UserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### customerPaymentMethodRevoke reference ## Mutation Reference ```graphql mutation customerPaymentMethodRevoke($customerPaymentMethodId: ID!) { customerPaymentMethodRevoke(customerPaymentMethodId: $customerPaymentMethodId) { revokedCustomerPaymentMethodId userErrors { field message } } } ``` ## Input ```json { "customerPaymentMethodId": "gid://shopify//10079785100" } ``` ##### Variables ``` { "customerPaymentMethodId": "gid://shopify//10079785100" } ```