Skip to main content
Anchor to DiscountAutomaticBasicInput

DiscountAutomaticBasicInput

input_object

The input fields for creating or updating an amount off discount that's automatically applied on a cart and at checkout.

•DiscountCombinesWithInput

The discount class that you can use in combination with Shopify discount types.

•DiscountCustomerGetsInput

Information about the qualifying items and their discount.

•DateTime

The date and time when the discount expires and is no longer available to customers. For discounts without a fixed expiration date, specify null.

•DiscountMinimumRequirementInput

The minimum subtotal or quantity of items that are required for the discount to be applied.

•Int

The number of billing cycles for which the discount can be applied, which is useful for subscription-based discounts. For example, if you set this field to 3, then the discount only applies to the first three billing cycles of a subscription. If you specify 0, then the discount applies indefinitely.

•DateTime

The date and time when the discount becomes active and is available to customers.

•String

The discount's name that displays to merchants in the Shopify admin and to customers.


Was this section helpful?