Skip to main content
Anchor to discountAutomaticFreeShippingCreate

discountAutomaticFreeShippingCreate

mutation

Requires Apps must have write_discounts access scope.

Creates a free shipping discount that's automatically applied on a cart and at checkout.


Note

To create code discounts, use the discountCodeFreeShippingCreate mutation.


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?
OSZAR »