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
deleteStoredPaymentInstrumentmutation on theCustomerMutationstype deletes a stored payment instrument for the authenticated customer.- Input:
DeleteStoredPaymentInstrumentInputtakes thetokenof the stored payment instrument to delete. - Result:
DeleteStoredPaymentInstrumentResultreturns anerrorslist ofDeleteStoredPaymentInstrumentError; an empty list indicates success.
- Input:
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
updateStoredPaymentInstrumentmutation on theCustomerMutationstype updates a stored payment instrument for the authenticated customer. This mutation is an alpha preview and is not intended for production use.- Input:
UpdateStoredPaymentInstrumentInputtakes the instrumenttoken, an optionalsetAsDefaultflag (promote-only: it cannot un-set an existing default), and an optionalbillingAddressusing the newStoredPaymentInstrumentBillingAddressInputtype. - Result:
UpdateStoredPaymentInstrumentResultreturns the updatedstoredPaymentInstrument, thedefaultStoredPaymentInstrumentTokenafter the update, and anyerrorsreported through the newUpdateStoredPaymentInstrumentErrortype.
- Input:
See the Customers guide for an example mutation, or browse the Storefront GraphQL API reference for schema details.