DraftOrderInput now accepts discountCodes and acceptAutomaticDiscounts.
API
Effective April 08, 2024
As of version 2024-07 of the GraphQL Admin API, DraftOrderInput now accepts discountCodes and acceptAutomaticDiscounts. These optional input fields will allow you to apply discount codes to a draft order and decide whether or not to accept automatic discounts during calculation.
Additionally, a new type field named DraftOrderPlatformDiscount has been added that describes details about how the platfom discount has been allocated across the draft order line items, the discount type, its name, and more.
Learn more about DraftOrderPlatformDiscount on Shopify.dev