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:
For schema details, browse the Storefront GraphQL API reference.
Tax Provider API document requests include delivery type
Quote requests sent to tax providers now identify how each consignment is delivered, so providers can apply delivery-specific tax rules.
delivery_type— a required field on each DocumentRequest, with the valuesdigital,pickup,courier, andpostal. It applies to the estimate, commit, and adjust operations.
For details, see Estimate taxes.