It is not possible to set the orderCreate mutation to not allocate the discount to a specific lineItem

I don’t want to apply discounts to certain items, but the interface doesn’t allow me to do that.

Hi @Shota_Yamamoto,

Is it possible for you to change the discount settings to exclude the products that you don’t want to be discounted? You can go to Discounts on the sidebar in Shopify admin. You can set the Applies to field to suit your needs. This is available in Product discount.

At this time, the orderCreate mutation doesn’t support the ability to apply discounts to specific line items. Unfortunately, you’ll have to take the approach described in your other post.