Key Update: DiscountClasses Field Introduced
The discountClass field in the DraftOrderPlatformDiscount object has been deprecated. Merchants and developers should transition to using the new discountClasses field instead. This change allows for the representation of multiple discount classes tied to the backing price rule of a DraftOrderPlatformDiscount.
Benefits of Using the DiscountClasses Field
- Supports multiple discount classes for more flexible configurations.
- Improves accuracy in identifying price rule associations.
- Enables better alignment with advanced discounting strategies.
Understanding the PresentationLevel Field
It’s important to continue relying on the presentationLevel field to assess the specific impact of a DraftOrderPlatformDiscount on a draft order. The presentationLevel field provides clear representation of discounts visible to the customer.
Action Steps for Developers
- Review integrations and replace all instances of
discountClasswithdiscountClasses. - Ensure compatibility with Shopify’s latest API standards.
- Test the presentation-level impacts in your draft order configurations.
- Refer to the Shopify API documentation for more detailed instructions on this change.
Additional Resources
For more technical details and examples, visit the official Shopify Developer Documentation.