Skip to main content
Anchor to discountCodeFreeShippingCreate

discountCodeFreeShippingCreate

mutation

Requires Apps must have write_discounts access scope.

Creates an free shipping discount that's applied on a cart and at checkout when a customer enters a code.


Note

To create discounts that are automatically applied on a cart and at checkout, use the discountAutomaticFreeShippingCreate mutation.


Anchor to freeShippingCodeDiscountfreeShippingCodeDiscount
•

The input data used to create the discount code.


Was this section helpful?

Anchor to DiscountCodeFreeShippingCreatePayload returnsDiscountCodeFreeShippingCreatePayload returns

•

The discount code that was created.

•

The list of errors that occurred from executing the mutation.


Was this section helpful?