Skip to main content
Anchor to discountAutomaticFreeShippingCreate

discountAutomaticFreeShippingCreate

mutation

Requires Apps must have write_discounts access scope.

Creates automatic free shipping discounts that apply to qualifying orders without requiring discount codes. These promotions automatically activate when customers meet specified criteria, streamlining the checkout experience.

For example, a store might create an automatic free shipping discount for orders over variable pricing to encourage larger purchases, or offer free shipping to specific customer segments during promotional periods.

Use DiscountAutomaticFreeShippingCreate to:

  • Set up code-free shipping promotions
  • Create order value-based shipping incentives
  • Target specific customer groups with shipping benefits
  • Establish location-based shipping discounts

The mutation validates discount configuration and returns the created automatic discount node along with any configuration errors that need resolution.

Learn more about automatic discounts.

Anchor to freeShippingAutomaticDiscountfreeShippingAutomaticDiscount
•DiscountAutomaticFreeShippingInput!
required

The input data used to create the automatic free shipping discount.


Was this section helpful?

Anchor to DiscountAutomaticFreeShippingCreatePayload returnsDiscountAutomaticFreeShippingCreatePayload returns

Anchor to automaticDiscountNodeautomaticDiscountNode
•DiscountAutomaticNode

The automatic free shipping discount that was created.

•[DiscountUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?