Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to discountAutomaticBxgyUpdate

discountAutomaticBxgyUpdate

mutation

Requires Apps must have write_discounts access scope.

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


Note

To update code discounts, use the discountCodeBxgyUpdate mutation instead.


Anchor to automaticBxgyDiscountautomaticBxgyDiscount

The input data used to update the automatic BXGY discount.

ID!required

The ID of the automatic BXGY discount to update.


Was this section helpful?

Anchor to DiscountAutomaticBxgyUpdatePayload returnsDiscountAutomaticBxgyUpdatePayload returns

Anchor to automaticDiscountNodeautomaticDiscountNode

The automatic discount that was updated.

The list of errors that occurred from executing the mutation.


Was this section helpful?