Home > @infiniteobjects/shopify-data-manager > AdminTypes > DraftOrderAppliedDiscountInput
The input fields for applying an order-level discount to a draft order.
Signature:
export interface DraftOrderAppliedDiscountInput
Property | Modifiers | Type | Description |
---|---|---|---|
amount? | InputMaybe<Scalars[‘Money’][‘input’]> | (Optional) The applied amount of the discount. If the type of the discount is fixed amount, then this is the fixed dollar amount. If the type is percentage, then this is the subtotal multiplied by the percentage. | |
description? | InputMaybe<Scalars[‘String’][‘input’]> | (Optional) Reason for the discount. | |
title? | InputMaybe<Scalars[‘String’][‘input’]> | (Optional) Title of the discount. | |
value | Scalars[‘Float’][‘input’] | The value of the discount. If the type of the discount is fixed amount, then this is a fixed dollar amount. If the type is percentage, then this is the percentage. | |
valueType | DraftOrderAppliedDiscountType | `${DraftOrderAppliedDiscountType}` | The type of discount. |