MageSmith
QueryVault · Magento 2.4.9

customerPaymentTokens

customerPaymentTokens is a Magento 2 GraphQL query in the Vault module. Return a list of customer payment tokens stored in the vault. It returns CustomerPaymentTokens and requires an Authorization header (Bearer customer token).

Last verified: against Magento 2.4.9.

Returns

CustomerPaymentTokens

Resolver class

\Magento\VaultGraphQl\Model\Resolver\PaymentTokens

Cache

cacheable: no

Example request

Auto-generated from the SDL — paste-ready against your store's /graphql endpoint. Replace the host, store code, and any required values before running.

Headers

Content-Type
application/json
Store
default store view code; use 'default' for the single-store baseline
Authorization
Bearer <CUSTOMER_TOKEN> obtain from generateCustomerToken mutation

Query

query {
  customerPaymentTokens {
    items {
      public_hash
      payment_method_code
      type
      details
    }
  }
}

Variables

{}

Every Magento dev tool, in one hosted workspace.

Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.