stack

Home > @infiniteobjects/shopify-data-manager > AdminTypes > LineItemMutable > totalDiscount

AdminTypes.LineItemMutable.totalDiscount property

Warning: This API is now obsolete.

Use totalDiscountSet instead.

The total amount of the discount allocated to the line item in the shop currency. This field must be explicitly set using draft orders, Shopify scripts, or the API. Instead of using this field, Shopify recommends using discountAllocations, which provides the same information.

Signature:

totalDiscount: Scalars['Money']['output'];