DiscountCodeBasicInput input object

Specifies input field to create or update code basic discount.


Input fields

  • appliesOncePerCustomer ([Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01))
    Whether the discount can be applied only once per customer.
  • code ([String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
    The code to use the discount.
  • customerGets ([DiscountCustomerGetsInput](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountcustomergetsinput))
    The qualifying items in an order, the quantity of each one, and the total value of the discount.
  • customerSelection ([DiscountCustomerSelectionInput](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountcustomerselectioninput))
    The customers that can use the discount.
  • endsAt ([DateTime](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01))
    The date and time when the discount ends. For open-ended discounts, use null.
  • minimumRequirement ([DiscountMinimumRequirementInput](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountminimumrequirementinput))
    The minimum subtotal or quantity that’s required for the discount to be applied.
  • recurringCycleLimit ([Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01))
    The number of times a discount applies on recurring purchases (subscriptions).
  • startsAt ([DateTime](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01))
    The date and time when the discount starts.
  • title ([String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01))
    The title of the discount.
  • usageLimit ([Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01))
    The maximum number of times that the discount can be used. For open-ended discounts, use null.