Discussing APIs and development related to customers, discounts, and order management.
According to the documentation : https://shopify.dev/docs/api/admin-graphql/unstable/mutations/draftOrderUpdate#argument-input
I have set the allowDiscountCodesInCheckout boolean to true , but I still do not see the discount code field being available in the checkout page of a draft order, is this a bug?
Can confirm the same issue with this flag, and the other one - acceptAutomaticDiscounts.
Both do not work.
However, interestingly, it seems like it was only released for the API version 2024-07 - https://shopify.dev/docs/api/release-notes/2024-07 and is in 'highlights' for major features for that release.
EDIT: i guess, i figured this out myself. I was using the Admin APIs for the draft creation (rookie mistake :)), which still doesn't have a discount flags. Reworked this to be 2024-07 GQL client - and it works as expected.