Skip to main content
Log inSign up
Anchor to discountAutomaticBxgyCreate

discountAutomaticBxgyCreate

mutation

Requires Apps must have write_discounts access scope.

Creates a buy X get Y discount (BXGY) that's automatically applied on a cart and at checkout.


Note

To create code discounts, use the discountCodeBxgyCreate mutation.


Anchor to automaticBxgyDiscountautomaticBxgyDiscount
•

The input data used to create the automatic BXGY discount.


Was this section helpful?

Anchor to DiscountAutomaticBxgyCreatePayload returnsDiscountAutomaticBxgyCreatePayload returns

Anchor to automaticDiscountNodeautomaticDiscountNode
•

The automatic discount that was created.

•

The list of errors that occurred from executing the mutation.


Was this section helpful?