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
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
Query
query {
customerPaymentTokens {
items {
public_hash
payment_method_code
type
details
}
}
}Variables
{}Related in VaultGraphQl
Other fields shipped by the same module.
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.