facing issue in orderEditAddLineItemDiscount mutation

New Member
2 0 0

mutation

mutation orderEditAddLineItemDiscount($idID!, $lineItemIdID!, $discountOrderEditAppliedDiscountInput!) {
  orderEditAddLineItemDiscount(id$idlineItemId$lineItemIddiscount$discount) {
    addedDiscountStagedChange {
      id
    }
    calculatedLineItem {
      id
    }
    calculatedOrder {
      id
    }
    userErrors {
      field
      message
    }
  }
}
 
getting error
 {
                    "field": [
                        "lineItemId"
                    ],
                    "message""Only items added during the current edit may be discounted."
                }
0 Likes