Skip to main content
Anchor to DiscountCodeFreeShippingCreatePayload

DiscountCodeFreeShippingCreatePayload

payload

Return type for discountCodeFreeShippingCreate mutation.

•DiscountCodeNode

The discount code that was created.

Show fields
•[DiscountUserError!]!
non-null

The list of errors that occurred from executing the mutation.

Show fields

Was this section helpful?

Anchor to Mutations with this payloadMutations with this payload

•mutation

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.


Show payload

Arguments

Anchor to freeShippingCodeDiscountfreeShippingCodeDiscount
•DiscountCodeFreeShippingInput!
required

The input data used to create the discount code.

Show input fields


Was this section helpful?