Skip to main content
Log inSign up
Anchor to discountCodeBxgyUpdate

discountCodeBxgyUpdate

mutation

Requires Apps must have write_discounts access scope.

Updates a buy X get Y discount (BXGY) that's applied on a cart and at checkout when a customer enters a code.


Note

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


•

The input data used to update the BXGY code discount.

•
ID!required

The ID of the BXGY code discount to update.


Was this section helpful?

Anchor to DiscountCodeBxgyUpdatePayload returnsDiscountCodeBxgyUpdatePayload returns

•

The code discount that was updated.

•

The list of errors that occurred from executing the mutation.


Was this section helpful?