GraphQL Schema Updates

Authenticated customers can now delete a stored payment instrument through the Storefront GraphQL API. This mutation is an alpha release: the schema marks it deprecated with the reason “Alpha version. Do not use in production.”

Storefront GraphQL

  • Delete stored payment instruments: new deleteStoredPaymentInstrument mutation on the CustomerMutations type deletes a stored payment instrument for the authenticated customer.
    • Input: DeleteStoredPaymentInstrumentInput takes the token of the stored payment instrument to delete.
    • Result: DeleteStoredPaymentInstrumentResult returns an errors list of DeleteStoredPaymentInstrumentError; an empty list indicates success.

See the Customers guide for an example mutation, or browse the Storefront GraphQL API reference for schema details.


GraphQL Schema Updates

Authenticated customers can now update a stored payment instrument through the Storefront GraphQL API.

Storefront GraphQL

  • Update stored payment instruments: a new updateStoredPaymentInstrument mutation on the CustomerMutations type updates a stored payment instrument for the authenticated customer. This mutation is an alpha preview and is not intended for production use.
    • Input: UpdateStoredPaymentInstrumentInput takes the instrument token, an optional setAsDefault flag (promote-only: it cannot un-set an existing default), and an optional billingAddress using the new StoredPaymentInstrumentBillingAddressInput type.
    • Result: UpdateStoredPaymentInstrumentResult returns the updated storedPaymentInstrument, the defaultStoredPaymentInstrumentToken after the update, and any errors reported through the new UpdateStoredPaymentInstrumentError type.

See the Customers guide for an example mutation, or browse the Storefront GraphQL API reference for schema details.