--- title: customerPaymentMethod - GraphQL Admin description: Returns a CustomerPaymentMethod resource by its ID. api_version: 2025-10 api_name: admin type: query api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/queries/customerpaymentmethod md: https://shopify.dev/docs/api/admin-graphql/latest/queries/customerpaymentmethod.md --- # customer​Payment​Method query Returns a CustomerPaymentMethod resource by its ID. ## Arguments * id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The ID of the CustomerPaymentMethod to return. * show​Revoked [Boolean](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Boolean) Default:false Whether to show the customer's revoked payment method. *** ## Possible returns * Customer​Payment​Method [Customer​Payment​Method](https://shopify.dev/docs/api/admin-graphql/latest/objects/CustomerPaymentMethod) A customer's payment method. *** ## Examples * ### customerPaymentMethod reference ## Query Reference ```graphql { customerPaymentMethod(id) { # customerPaymentMethod fields } } ```