GraphQL Schema Updates
Customers can now retrieve their stored payment instruments through the Storefront GraphQL API, plus a new top-level category search filter and a translatable brand URL path resource.
Storefront GraphQL
- Stored payment instruments: new
storedPaymentInstrumentsconnection field on theCustomertype returns an authenticated customer’s saved cards, PayPal accounts, and bank accounts. Filter the results by payment method withStoredPaymentInstrumentsFiltersInput, and read the customer’s default instrument fromdefaultStoredPaymentInstrumentTokenon the connection.- Authentication: the field requires a valid customer JWT. The parent
customerquery resolves tonullfor unauthenticated requests. - Connection types:
StoredPaymentInstrumentConnection,StoredPaymentInstrumentEdge, and theStoredPaymentInstrumentDetailsunion (StoredCard,StoredPaypalAccount,StoredBankAccount). - Instrument types:
StoredCard(withStoredCardExpiryandStoredCardBillingAddress),StoredBankAccount, andStoredPaypalAccount.
- Authentication: the field requires a valid customer JWT. The parent
- Top-level category filter: new
topLevelOnlyboolean onSearchProductsFiltersInputthat returns only visible top-level categories, omitting any reachable only through a hidden or disabled parent
Admin GraphQL
- Brand URL path translations: new
BRAND_URL_PATHSvalue on theTranslationResourceTypeenum