order discount for existing order

Hi, hope all is going well, I have a question, I would like to get the discount value for already existing order so I can show in the order history and summary. I cannot find any AP I for that, Please let know if I can do something about it.

Hi @Tuseef :waving_hand:

Order.currentTotalDiscountsSet should reflect the total amount discounted on the order (after returns) in shop/presentment currencies. It will include both order and line level discounts. The query would look something like this:

{
    order (id: "gid://shopify/Order/4784212148342"){
        id
        currentTotalDiscountsSet {
            presentmentMoney {
                amount
            }
            shopMoney {
                amount
            }
        }
    }
}

Hope that helps!

@Umiko