Hello Shopify Community,
I noticed that in the Shopify Winter '24 edition, support for discount codes in draft orders has been added. In the GraphQL API, there is a field allowDiscountCodesInCheckout that, when set to true, allows the app to accept discount codes.
However, I am unable to find a similar field in the REST API documentation for creating draft orders. Is there an equivalent field or a different method to enable discount codes for draft orders using the REST API?
Any guidance or examples would be greatly appreciated.
Thank you in advance for your help!