GraphQL Schema Updates

New fields, types, and enums across the Admin, B2B, and Storefront GraphQL schemas.

Storefront GraphQL

  • Built-in form field IDs — new BuiltInFormFieldId enum and builtInFieldId field on all form field types
  • Coupon staging — new CouponStatus enum (APPLIED, STAGED) and coupon fields on CheckoutCoupon
  • Checkout coupon inputs — coupons field on CreateCheckoutInput and UpdateCheckoutDataInput
  • Shipping discounts — costAfterDiscount on shipping options; OrderAutomaticShippingDiscount type and nonCouponDiscounts on consignments
  • Shipment line items — new OrderShipmentLineItem type and items field on OrderShipment
  • Inventory settings — showDefaultShippingExpectationPrompt and defaultShippingExpectationPrompt fields
  • Store country code — storeCountryCode field on Settings

B2B GraphQL

  • Backorder display settings — new storefrontSettings query with BackorderDisplaySettingsType
  • Product backorder fields — backorderMessage, totalOnHand, quantityBackordered on ProductType and ProductInfoType
  • Order backorder snapshot — backorderSnapshot field on OrderType
  • Country state required — stateRequired field on CountryType

Admin GraphQL

  • Translation resource types — INVENTORY_BACKORDER_AVAILABILITY_PROMPT, INVENTORY_DEFAULT_SHIPPING_EXPECTATION_PROMPT, and PRODUCT_URL_PATHS