DiscountAutomaticBasic object

Version unstable

An automatic basic discount.

Required access

Apps must have read_discounts access scope.

Fields

  • asyncUsageCount (Int!)

    The number of times the discount has been used. This value is updated asynchronously and can be different than the actual usage count.

  • createdAt (DateTime!)

    The date and time when the discount was created.

  • customerGets (DiscountCustomerGets!)

    The qualifying items in an order, the quantity of each one, and the total value of the discount.

  • endsAt (DateTime)

    The date and time when the discount ends. For open-ended discounts, use null.

  • minimumRequirement (DiscountMinimumRequirement!)

    The minimum subtotal or quantity that's required for the discount to be applied.

  • shortSummary (String!)

    A short summary of the discount.

  • startsAt (DateTime!)

    The date and time when the discount starts.

  • status (DiscountStatus!)

    The status of the discount.

  • summary (String!)

    A detailed summary of the discount.

  • title (String!)

    The title of the discount.

Mutations for DiscountAutomaticBasic

Deprecated fields

  • usageCount (Int!) deprecated

    The number of times that the discount has been used.

    Deprecation warning

    Use asyncUsageCount instead

Version 2021-10 (Release candidate)

An automatic basic discount.

Required access

Apps must have read_discounts access scope.

Fields

  • asyncUsageCount