Skip to main content
Anchor to discountCodeBxgyCreate

discountCodeBxgyCreate

mutation

Requires Apps must have write_discounts access scope.

Creates a buy X get Y discount (BXGY) 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 discountAutomaticBxgyCreate mutation.


•DiscountCodeBxgyInput!required

The input data used to create the BXGY code discount.


Was this section helpful?

Anchor to DiscountCodeBxgyCreatePayload returnsDiscountCodeBxgyCreatePayload returns

•DiscountCodeNode

The code discount that was created.

•[DiscountUserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?